[UCPD] Disable RCC clock on drop

This commit is contained in:
Timo Kröger 2024-03-09 15:52:20 +01:00 committed by Timo Kröger
parent 89504f5162
commit eeb033caf0

View file

@ -172,6 +172,7 @@ impl<'d, T: Instance> Drop for CcPhy<'d, T> {
drop_not_ready.store(true, Ordering::Relaxed);
} else {
r.cfgr1().write(|w| w.set_ucpden(false));
T::disable();
}
}
}
@ -287,6 +288,7 @@ impl<'d, T: Instance> Drop for PdPhy<'d, T> {
drop_not_ready.store(true, Ordering::Relaxed);
} else {
r.cfgr1().write(|w| w.set_ucpden(false));
T::disable();
}
}
}