Adding support for Nordic nRF52833#148
Conversation
jonas-schievink
left a comment
There was a problem hiding this comment.
Great! We're approaching #[cfg]-hell though, maybe we should rethink how we handle different chips...
|
Is there a good pattern for solving |
|
I could imagine using a build.rs script to set various |
|
When you're talking about cfg-hell you mean from a developer perspective, right? Because from a user perspective I like it quite much :) |
|
With regards to cfg-hell. I experimented a bit with adding a build.rs that generated features from the features defined in Cargo.toml. I am on the fence on if the result is better or not. Maybe open a issue for cfg opportunity for improvement? build.rs |
jonas-schievink
left a comment
There was a problem hiding this comment.
PR looks good to me, thanks!
This PR adds support for the Nordic nRF52833. This chip is similar to the nRF52840 with less flash and memory, no CryptoCell, some radio differences and probably som other smaller differences.
I have tested using clocks, gpio, timer and uarte in a RTFM program running on a Nordic nRF52833-DK.