Skip to content

Commit

Permalink
chore: minor code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 25, 2024
1 parent 879e029 commit ceeb99d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/adc.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 0 additions & 2 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ceeb99d

Please sign in to comment.