From e39e93ead4f1da2504435e653a8d3e404c511c9e Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Tue, 9 Jul 2024 09:56:15 +0200 Subject: [PATCH] Improve use of CS --- embassy-stm32/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 88683bfe4..03c0eda1d 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs @@ -375,9 +375,9 @@ mod dual_core { rcc::set_freqs_ptr(&shared_data.clocks); // We use different timers on the different cores, so we have to still initialize one here + #[cfg(feature = "_time-driver")] critical_section::with(|cs| { // must be after rcc init - #[cfg(feature = "_time-driver")] time_driver::init(cs); });