diff options
| author | Grant Miller <[email protected]> | 2023-04-05 16:38:06 -0500 |
|---|---|---|
| committer | Grant Miller <[email protected]> | 2023-04-05 16:38:06 -0500 |
| commit | 92e96bd601e8e663114b1efccc4a1e8d309332d9 (patch) | |
| tree | b0a019c1c0635ecccb09d27ea08eba70d9e91c68 | |
| parent | 7c53ebd5766fc75dbb5ddd1953b5bff13f1cd853 (diff) | |
Fix typo
| -rw-r--r-- | embassy-stm32/src/adc/v1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/adc/v1.rs b/embassy-stm32/src/adc/v1.rs index 5f0f8c141..17114732d 100644 --- a/embassy-stm32/src/adc/v1.rs +++ b/embassy-stm32/src/adc/v1.rs | |||
| @@ -2,8 +2,8 @@ use embassy_hal_common::into_ref; | |||
| 2 | use embedded_hal_02::blocking::delay::DelayUs; | 2 | use embedded_hal_02::blocking::delay::DelayUs; |
| 3 | 3 | ||
| 4 | use crate::adc::{Adc, AdcPin, Instance, InternalChannel, Resolution, SampleTime}; | 4 | use crate::adc::{Adc, AdcPin, Instance, InternalChannel, Resolution, SampleTime}; |
| 5 | use crate::Peripheral; | ||
| 6 | use crate::peripherals::ADC1; | 5 | use crate::peripherals::ADC1; |
| 6 | use crate::Peripheral; | ||
| 7 | 7 | ||
| 8 | pub const VDDA_CALIB_MV: u32 = 3300; | 8 | pub const VDDA_CALIB_MV: u32 = 3300; |
| 9 | pub const VREF_INT: u32 = 1230; | 9 | pub const VREF_INT: u32 = 1230; |
| @@ -18,7 +18,7 @@ impl super::sealed::InternalChannel<ADC1> for Vbat { | |||
| 18 | 18 | ||
| 19 | pub struct Vref; | 19 | pub struct Vref; |
| 20 | impl InternalChannel<ADC1> for Vref {} | 20 | impl InternalChannel<ADC1> for Vref {} |
| 21 | impl super::sealed::::InternalChannel<ADC1> for Vref { | 21 | impl super::sealed::InternalChannel<ADC1> for Vref { |
| 22 | fn channel(&self) -> u8 { | 22 | fn channel(&self) -> u8 { |
| 23 | 17 | 23 | 17 |
| 24 | } | 24 | } |
