Fixed for cs not always used
This commit is contained in:
parent
f67f11534f
commit
6842ced7cb
@ -627,13 +627,13 @@ fn init_hw(config: Config) -> Peripherals {
|
|||||||
/// This should only be called after `init`.
|
/// This should only be called after `init`.
|
||||||
#[cfg(not(feature = "_dual-core"))]
|
#[cfg(not(feature = "_dual-core"))]
|
||||||
pub fn reinitialize_rcc(config: Config) {
|
pub fn reinitialize_rcc(config: Config) {
|
||||||
critical_section::with(|cs| {
|
critical_section::with(|_cs| {
|
||||||
unsafe {
|
unsafe {
|
||||||
rcc::init(config.rcc);
|
rcc::init(config.rcc);
|
||||||
|
|
||||||
// must be after rcc init
|
// must be after rcc init
|
||||||
#[cfg(feature = "_time-driver")]
|
#[cfg(feature = "_time-driver")]
|
||||||
time_driver::init(cs);
|
time_driver::init(_cs);
|
||||||
|
|
||||||
#[cfg(feature = "low-power")]
|
#[cfg(feature = "low-power")]
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user