modm-io / modm

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

STM32U0 Support #1198

Closed FranzForstmayr closed 3 months ago

FranzForstmayr commented 3 months ago

Hi,

is there a plan to support the stm32u0 devices, especially that one found on the STM32U083C-DK, a stm32u083mct6. If there's anything I can do to help for this issue let me know.

Thanks and BR Franz

salkinium commented 3 months ago

Yes, any new STM32 famliy is welcome and probably not too difficult to add considering the significant overlap of existing peripheral drivers.

It's probably best to check the STM32C0 support PR for what needs to be done: https://github.com/modm-io/modm/pull/1188 though I suspect that the U0 is more similar to the L0.

In this case, you first need to enable STM32U0 support in modm-devices: https://github.com/modm-io/modm-devices/ It might be fairly simple though: https://github.com/modm-io/modm-devices/pull/82