diff options
| -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(), |
