Improve use of CS

This commit is contained in:
Dion Dokter 2024-07-09 09:56:15 +02:00
parent 6db0daf79b
commit e39e93ead4

View File

@ -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);
});