[UCPD] Disable RCC clock on drop
This commit is contained in:
parent
89504f5162
commit
eeb033caf0
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue