Fixed compile error on targets where DEVICE_SPI or DEVICE_INTERRUPTIN are defined but not both #13471
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
Fixed a missmatch in the guards in NanostackRfPhyAtmel.h and NanostackRfPhyAT86RF215.cpp
the problem is better described in #13299
basically when either DEVICE_SPI or DEVICE_INTERRUPTIN are defined but not both we running Into the problem that the guards in NanostackRfPhyAtmel.h do not match the ones in NanostackRfPhyAT86RF215.cpp
I added a guard in rfbits.h which checks if DEVICE_SPI is defined since the file clearly requires SPI.
Impact of changes
on some custom targets where DEVICE_SPI or DEVICE_INTERRUPTIN are defined but not both the build fails
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers