modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
748 stars 132 forks source link

ADC sequence of G0 (and C0) devicec have wrong channel shift? #1197

Closed Apehaenger closed 2 months ago

Apehaenger commented 2 months ago

While still working on my STM32C0x implementation #1188, I had a head-cruncher by building a ADC-Sequence example. For me it looks like the implementation is wrong as it shifts the ADC channel only by 1 bit instead of 4. So in my opinion ADC sequences can't work for F0, G0 as well as C0 devices?!

Apehaenger commented 2 months ago

The register layout for C0 look equal.

Regarding the unrelated submodule: ~~I would be happy if I could, but I'm unsure how ;-) Rewind my modm-device submodule to standard and commit again?~~ Done