stm32: remove atomic-polyfill.

This commit is contained in:
Dario Nieuwenhuis
2023-10-12 01:16:42 +02:00
parent 32b89eeba1
commit 70a91945fc
8 changed files with 69 additions and 29 deletions

View File

@ -225,7 +225,9 @@ pub fn init(config: Config) -> Peripherals {
#[cfg(feature = "low-power")]
while !crate::rcc::low_power_ready() {
crate::rcc::clock_refcount_sub();
critical_section::with(|cs| {
crate::rcc::clock_refcount_sub(cs);
});
}
}