mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
stm32_common:adc read & clear EOC on init
This commit is contained in:
committed by
Daniel Agar
parent
37c1837ceb
commit
2c9a522f71
@@ -183,6 +183,10 @@ int px4_arch_adc_init(uint32_t base_address)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Read out result, clear EOC */
|
||||||
|
|
||||||
|
(void) rDR(base_address);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user