drone-stm32-map icon indicating copy to clipboard operation
drone-stm32-map copied to clipboard

Initial WB55 support.

Open rubdos opened this issue 6 years ago • 3 comments

  • [ ] Where does the SVD come from?
  • [ ] feature flags on all relevant peripherals (is there a way to automate this?)

Accompanies https://github.com/drone-os/drone/pull/1

rubdos avatar Sep 27 '19 16:09 rubdos

In my experience there are always many small differences in peripherals across STM32 families. I doubt it will even compile if we enable them all. I propose to start without any peripheral (in Drone terms) mappings. So this crate will initially provide just register and interrupt mappings.

valff avatar Sep 27 '19 16:09 valff

If you wonder, we use so many crates here because they dramatically reduce compile times. Register mappings generation parallelizes nicely.

valff avatar Sep 27 '19 16:09 valff

To clarify, periph-* crates just group registers by peripherals. For example this allows you to write code generic over UART1, UART2, ..., LPUART1. The problem is that often these peripherals have small differences, so they should be addressed by peripheral crates.

valff avatar Sep 27 '19 16:09 valff