diff options
| author | pbert <[email protected]> | 2023-10-11 21:38:41 +0200 |
|---|---|---|
| committer | pbert <[email protected]> | 2023-10-12 11:04:44 +0200 |
| commit | ecdd7c0e2f9dcc07e53e136557140d3ccc6a5ee1 (patch) | |
| tree | 6db9bf875d3e83d94f6bf8e8a2e7ff03a83c5bb4 /embassy-stm32/src/adc/v1.rs | |
| parent | d7d79f3068a4a2d883b078b8900ad194f7c98203 (diff) | |
enable clock first
Diffstat (limited to 'embassy-stm32/src/adc/v1.rs')
| -rw-r--r-- | embassy-stm32/src/adc/v1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/v1.rs b/embassy-stm32/src/adc/v1.rs index f03acdcf4..852b027df 100644 --- a/embassy-stm32/src/adc/v1.rs +++ b/embassy-stm32/src/adc/v1.rs | |||
| @@ -61,7 +61,7 @@ impl<'d, T: Instance> Adc<'d, T> { | |||
| 61 | delay: &mut impl DelayUs<u32>, | 61 | delay: &mut impl DelayUs<u32>, |
| 62 | ) -> Self { | 62 | ) -> Self { |
| 63 | into_ref!(adc); | 63 | into_ref!(adc); |
| 64 | T::reset_and_enable(); | 64 | T::enable_and_reset(); |
| 65 | 65 | ||
| 66 | // Delay 1μs when using HSI14 as the ADC clock. | 66 | // Delay 1μs when using HSI14 as the ADC clock. |
| 67 | // | 67 | // |
