ryankurte / efm32-base

Base project for Silicon Labs EFM32 microcontrollers
89 stars 33 forks source link

Add CPU family detection for MG21/BG21/BG22 #22

Closed EnJens closed 4 years ago

EnJens commented 4 years ago

This adds CPU family detection for the Wireless Cortex M33 chips recently released. I've tested it on a custom EFR32MG21 board.

The compile flags are taken from SimplicityStudio's default compile flags. It feels kind of odd to put them in CPU_FIX variable, but wasn't sure where else to put them.

ryankurte commented 4 years ago

hey thanks for the PR, looks good to me!

It feels kind of odd to put them in CPU_FIX variable, but wasn't sure where else to put them.

yeah, this could totally be renamed but it'll work for now