mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Improve use of CS
This commit is contained in:
parent
6db0daf79b
commit
e39e93ead4
@ -375,9 +375,9 @@ mod dual_core {
|
|||||||
rcc::set_freqs_ptr(&shared_data.clocks);
|
rcc::set_freqs_ptr(&shared_data.clocks);
|
||||||
|
|
||||||
// We use different timers on the different cores, so we have to still initialize one here
|
// We use different timers on the different cores, so we have to still initialize one here
|
||||||
|
#[cfg(feature = "_time-driver")]
|
||||||
critical_section::with(|cs| {
|
critical_section::with(|cs| {
|
||||||
// must be after rcc init
|
// must be after rcc init
|
||||||
#[cfg(feature = "_time-driver")]
|
|
||||||
time_driver::init(cs);
|
time_driver::init(cs);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user