diff --git a/src/adc.rs b/src/adc.rs index eaabcae..d79418b 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -1,12 +1,10 @@ -//! ADC -//! -//! Max clock: 14MHz for CHFV2x_V3x +//! ADC, Analog to Digital Converter #![macro_use] -use ch32_metapac::adc::vals; use embassy_sync::waitqueue::AtomicWaker; +use crate::pac::adc::vals; pub use crate::pac::adc::vals::SampleTime; use crate::{into_ref, peripherals, Peripheral}; diff --git a/src/i2c.rs b/src/i2c.rs index 1277d99..fb1e136 100644 --- a/src/i2c.rs +++ b/src/i2c.rs @@ -138,8 +138,6 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> { // CH32V2, CH32V3 scl.set_as_af_output(AFType::OutputOpenDrain, Speed::High); sda.set_as_af_output(AFType::OutputOpenDrain, Speed::High); - //sda.set_as_af_output(AFType::OutputPushPull, Speed::High); - //scl.set_as_af_output(AFType::OutputPushPull, Speed::High); let mut this = Self { _peri: peri,