Skip to content

Commit ed4e1a6

Browse files
committed
fn new cleanup
1 parent 4c7caf3 commit ed4e1a6

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/adc.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,8 @@ where
294294
operation_mode: None,
295295
};
296296

297-
// if !(adc.clocks_welldefined(clocks)) {
298-
// crate::panic!("Clock settings not well defined");
299-
// }
300-
301297
ADC::enable_clock(&clocks, ahb, common_adc);
302-
ADC::clock(&clocks);
303-
// if !(ADC::enable_clock(ahb)){
304-
// crate::panic!("Clock already enabled with a different setting");
305-
// }
306-
307-
// adc_shared.ccr.modify(|_, w| w
308-
// .ckmode().variant(self.clock_mode.into())
309-
// );
298+
310299
adc.set_align(Align::default());
311300
adc.calibrate(clocks);
312301
// ADEN bit cannot be set during ADCAL=1

0 commit comments

Comments
 (0)