em32-rs / wg

1 stars 0 forks source link

Build firm understanding of device generations #6

Open chrysn opened 5 years ago

chrysn commented 5 years ago

Some of this is already in efr32xg1-pac, some encoded in the features of efm32gg-hal.

OpenOCD has some knowledge of this, as illustrated in https://github.com/ntfreak/openocd/commit/6d390e1b2a393505b38e1d0fcd741cd0b1cf92aa.

We should become able to tell

jacobrosenthal commented 5 years ago

libopencm3 has been somewhat battle tested here and has a bunch of efm support https://github.com/libopencm3/libopencm3/tree/master/include/libopencm3/efm32

They appear to have the: ezr32wg g gg hg lg tg wg

the ezr32wg and efm32hg use different usb implementations

they rename a few registers on ezr32wg

define CMU_HFPERCLKEN0_USARTRF0 CMU_HFPERCLKEN0_USART0

define CMU_USARTRF0 CMU_USART0

hg has its own cmu implementation from the others

Otherwise theyre using a common implementation for those peripherals they support with no ifdefs or anything in them

jacobrosenthal commented 5 years ago

how about we dont get too ahead of ourselves here with your hal anyway, you're trying to use gg, im trying to use hg, lets just make something that supports both of them, or just series 0 until someone else comes along who wants to help make more forward progress