adc/f3: fix startup bug
This commit is contained in:
parent
b9889ad3b5
commit
44a5c32ea4
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ impl<'d, T: Instance> Adc<'d, T> {
|
|||
|
||||
while T::regs().cr().read().adcal() {}
|
||||
|
||||
// Wait more than 4 clock cycles after adcal is cleared (RM0364 p. 223)
|
||||
delay.delay_us(6 * Self::freq().0 / 1_000_000);
|
||||
|
||||
// Enable the adc
|
||||
T::regs().cr().modify(|w| w.set_aden(true));
|
||||
|
||||
|
|
Loading…
Reference in a new issue