Open
Description
The bb module in this HAL is well usable for other chips, I'd like to suggest splitting it out for easier re-use. (Right now I've copy-pasted it to the efm32gg-hal crate).
Not only is the code generic over various chips, but also for memory regions. The comments to ref_to_bitband
say it can be used only things slightly above 0x2000_000, but actually works for the peripheral registers at 0x4000_0000 just as well.
I expect the challenge to be the characterization of where the resulting bit-banding crate could be applicable. The most generic document I found that describes this very mechanism is 2.2. Memory Model of the Cortex-M4 Generic User Guide, but it appears to be applicable to M3 (at least EFM32) as well.
Metadata
Metadata
Assignees
Labels
No labels