-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers/at86rf2xx: define caps in macros #18967
Conversation
I accidentally swapped some of the conditions. I already fixed that in the last push and renamed |
I could nitpick that |
99ac9fc
to
5a865c3
Compare
Addressed and directly squashed |
Murdock results✔️ PASSED 5a865c3 drivers/at86rf2xx: add HAVE_RETRIES_REG macro
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
Contribution description
It has been very hard to port AT86RF based radios to the Radio HAL because the presentation layer is mixed with the interface layer (netdev). Even more, variant specific stuff are scattered everywhere, which makes it hard to write a compatible Radio HAL interface. Therefore, I think the only way to move forward is to clean-up the driver a bit.
This PR tries to define variant specific caps (e.g
HAVE_ED_REGISTER
,HAVE_SUBGHZ
,AT86RF2XX_PERIPH
) based on the variant.In a follow up, I plan to move the PERIPH parts to its own file and separate the SPI implementation with the PERIPH version. The idea is to have provide a common abstraction for the hardware interface layer, so it becomes relatively straight forward to replace
at86rf2xx_netdev.c
withat86rf2xx_rf_ops.c
. With some tweaks, it should be also possible to run multiple variants on the same firmware.Testing procedure
Check that AT86RF2XX variants still work as expected.
Issues/PRs references
#16535