Reset inited flag to allow re-enabling
This commit is contained in:
parent
50aefb4174
commit
7ce2594eb7
@ -245,6 +245,7 @@ impl<'d, T: Instance> Bus<'d, T> {
|
|||||||
T::Interrupt::disable();
|
T::Interrupt::disable();
|
||||||
|
|
||||||
<T as SealedRccPeripheral>::disable();
|
<T as SealedRccPeripheral>::disable();
|
||||||
|
self.inited = false;
|
||||||
|
|
||||||
#[cfg(stm32l4)]
|
#[cfg(stm32l4)]
|
||||||
crate::pac::PWR.cr2().modify(|w| w.set_usv(false));
|
crate::pac::PWR.cr2().modify(|w| w.set_usv(false));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user