Skip to content

Commit

Permalink
Remove critical section for reset
Browse files Browse the repository at this point in the history
  • Loading branch information
pbert519 committed Oct 12, 2023
1 parent ecdd7c0 commit 65f81a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions embassy-stm32/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,8 @@ fn main() {
let rst_reg = format_ident!("{}", rst.register.to_ascii_lowercase());
let set_rst_field = format_ident!("set_{}", rst.field.to_ascii_lowercase());
quote! {
critical_section::with(|_| {
crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(true));
crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(false));
});
crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(true));
crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(false));
}
}
None => TokenStream::new(),
Expand Down

0 comments on commit 65f81a1

Please sign in to comment.