stm32/adc: reexport enums from PAC to avoid boilerplate hell.

This commit is contained in:
Dario Nieuwenhuis
2024-02-26 02:58:03 +01:00
parent a308b9ac2f
commit 72c6f9a101
18 changed files with 82 additions and 288 deletions

View File

@@ -19,7 +19,7 @@ async fn main(_spawner: Spawner) {
info!("Hello World!");
let mut adc = Adc::new(p.ADC, Irqs, &mut Delay);
adc.set_sample_time(SampleTime::Cycles79_5);
adc.set_sample_time(SampleTime::CYCLES79_5);
let mut pin = p.PA1;
let mut vrefint = adc.enable_vref(&mut Delay);