embassy/examples/stm32f4
bors[bot] ef533e6df4
Merge #1004
1004: Fix internal channels for adc v2 r=lulf a=chemicstry

Internal channel reading was broken on adc_v2, because `Adc::read()` requires gpio pin trait, which was not implemented by `VrefInt`, `Temperature`, `Vbat`. The required configuration bits `tsvrefe`, `vbate` were not enabled either. This PR makes it a bit closer to how adc_v4 works.

While at it, I also changed adc_v2 to use `RccPeripheral` instead of permanently enabling all ADCs.

Co-authored-by: chemicstry <chemicstry@gmail.com>
2022-10-10 06:28:41 +00:00
..
.cargo Add env DEFMT_LOG=trace to all examples. 2022-06-18 01:59:12 +02:00
src/bin Fix adc_v4 compilation 2022-10-07 14:53:03 +03:00
build.rs Replace rustflags with build.rs extra-link-args. 2021-11-07 23:52:11 +01:00
Cargo.toml all Cargo.toml: Add license to all crate Cargo.toml files 2022-10-07 12:41:56 +02:00