Fix typo
This commit is contained in:
parent
7c53ebd576
commit
92e96bd601
@ -2,8 +2,8 @@ use embassy_hal_common::into_ref;
|
|||||||
use embedded_hal_02::blocking::delay::DelayUs;
|
use embedded_hal_02::blocking::delay::DelayUs;
|
||||||
|
|
||||||
use crate::adc::{Adc, AdcPin, Instance, InternalChannel, Resolution, SampleTime};
|
use crate::adc::{Adc, AdcPin, Instance, InternalChannel, Resolution, SampleTime};
|
||||||
use crate::Peripheral;
|
|
||||||
use crate::peripherals::ADC1;
|
use crate::peripherals::ADC1;
|
||||||
|
use crate::Peripheral;
|
||||||
|
|
||||||
pub const VDDA_CALIB_MV: u32 = 3300;
|
pub const VDDA_CALIB_MV: u32 = 3300;
|
||||||
pub const VREF_INT: u32 = 1230;
|
pub const VREF_INT: u32 = 1230;
|
||||||
@ -18,7 +18,7 @@ impl super::sealed::InternalChannel<ADC1> for Vbat {
|
|||||||
|
|
||||||
pub struct Vref;
|
pub struct Vref;
|
||||||
impl InternalChannel<ADC1> for Vref {}
|
impl InternalChannel<ADC1> for Vref {}
|
||||||
impl super::sealed::::InternalChannel<ADC1> for Vref {
|
impl super::sealed::InternalChannel<ADC1> for Vref {
|
||||||
fn channel(&self) -> u8 {
|
fn channel(&self) -> u8 {
|
||||||
17
|
17
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user