rtic
rtic copied to clipboard
(partially) removing core peripherals from RTIC context
As discussed in the previous meeting, now that RTIC v2 targets multiple architectures, some items seem too biased toward Cortex-M microcontrollers.
One of these elements is rtic::export::Peripherals. For instance, the RISC-V architecture does not have a common set of peripherals, and the current successful ports (#733 or greenlsi/rtic) end up re-exporting the device peripherals twice.
The main options we discussed to tackle this issue are:
- Leave
rtic::export::Peripheralsas()when not needed. - Feature-gate the core peripherals of the context so it is only active when it makes sense.
- Completely remove core peripherals from RTIC.
It would be nice to have a discussion about this topic. Personally, I'm inclined to the third option, as we would keep a common interface for all the targets. However, it may break already working examples/projects.
I think we can remove it. It's only a rename is cortex-m peripherals, and we can use it's full name instead.
Now with the awesome work in #733 merged, how should we go about this? Breaking change if we remove it altogether, but it would be cleaner :+1:
I'm currently working on a PR for adding support to RISC-V targets over the SLIC. I hope to be done this week. Maybe I can add this change to the PR and discuss there.
PR opened: #815