diff options
| author | pbert <[email protected]> | 2023-10-12 10:50:47 +0200 |
|---|---|---|
| committer | pbert <[email protected]> | 2023-10-12 11:04:45 +0200 |
| commit | 65f81a1f577f2f1b9de78246f2f8fd495a3b4354 (patch) | |
| tree | 8a63ac4762aeba26b98dc202b57e40abb096de1e | |
| parent | ecdd7c0e2f9dcc07e53e136557140d3ccc6a5ee1 (diff) | |
Remove critical section for reset
| -rw-r--r-- | embassy-stm32/build.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 63cf6b21f..bbdb1250c 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs | |||
| @@ -452,10 +452,8 @@ fn main() { | |||
| 452 | let rst_reg = format_ident!("{}", rst.register.to_ascii_lowercase()); | 452 | let rst_reg = format_ident!("{}", rst.register.to_ascii_lowercase()); |
| 453 | let set_rst_field = format_ident!("set_{}", rst.field.to_ascii_lowercase()); | 453 | let set_rst_field = format_ident!("set_{}", rst.field.to_ascii_lowercase()); |
| 454 | quote! { | 454 | quote! { |
| 455 | critical_section::with(|_| { | 455 | crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(true)); |
| 456 | crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(true)); | 456 | crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(false)); |
| 457 | crate::pac::RCC.#rst_reg().modify(|w| w.#set_rst_field(false)); | ||
| 458 | }); | ||
| 459 | } | 457 | } |
| 460 | } | 458 | } |
| 461 | None => TokenStream::new(), | 459 | None => TokenStream::new(), |
