modm-io / modm-devices

Curated device data for all AVR and ARM Cortex-M devices
https://blog.salkinium.com/modm-devices
Mozilla Public License 2.0
50 stars 28 forks source link

Add STM32C0x devices #112

Closed Apehaenger closed 2 months ago

Apehaenger commented 4 months ago

In reference to https://github.com/modm-io/modm/pull/1188 I had the impression that I need to switch the ADC implementation from 'stm32' to 'stm32-c0' so that I'm able to use the stm32f0 adc implementation.

In fact I already have it working, but hacked it here https://github.com/modm-io/modm/blob/9b4b64ce2bef0e7144870649396c0652a673a85b/src/modm/platform/adc/stm32f0/module.lb#L19-L23 during my local tries.

To get this working I had to add support for STM32C071x series as they get published now in the pulled (CMSIS, ...) files.

It's on 'draft', because I have an open question (beside the fact that I guess/worry that further changes might get needed once I try to use this modm-devices state in modm)