You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use ADC on STM32L451, according to examples: simple read and read with DMA. But I have the following error:
39 | adc::{Adc, AdcCommon, DmaMode, SampleTime, Sequence},
| ^^^ ^^^^^^^^^ no `AdcCommon` in `adc`
| |
| no `Adc` in `adc`
| help: a similar name exists in the module: `ADC`
What am I doing wrong and how to make it work? Thank you in advance.
The text was updated successfully, but these errors were encountered:
It seems like cargo has an old version in registry "26e0917e782402251e3eeaef53f1adb4fad22a42" according to .cargo_vsc_info.json file. If I use git version of HAL in my Cargo.toml imports are fine. Should we bump version and publish actual repo on cargo?
@stonefoxes I also struggled with the same issue, but I found a solution in the past records of the ADC example. The problem code works when changed as follows. let mut adc = ADC::new(dp.ADC1, dp.ADC_COMMON, &mut rcc.ahb2, &mut rcc.ccipr, &mut delay);
Hi, I'm trying to use ADC on STM32L451, according to examples: simple read and read with DMA. But I have the following error:
What am I doing wrong and how to make it work? Thank you in advance.
The text was updated successfully, but these errors were encountered: