Rev 2: Platform abstraction, CRPA LED heartbeat & MSPI support #23
Open
jynik wants to merge 4 commits intoBastilleResearch:masterfrom
Open
Rev 2: Platform abstraction, CRPA LED heartbeat & MSPI support #23jynik wants to merge 4 commits intoBastilleResearch:masterfrom
jynik wants to merge 4 commits intoBastilleResearch:masterfrom
Conversation
…support
A simple platform abstraction interface has been introduced in platform.h.
This is intended to decouple the details of platform-specific IO assignments
(e.g. LED pins, LNA enable, SPI chip select) from other portions of the
code.
Three platforms variants are available:
- CrazyRadio PA via `make CRPA=y`. Provides LED heartbeat and debug LED.
- CrazyRadio PA modified for Master SPI support via `make CRPA_MSPI=y`
- Generic platform with no external IO and P0DIR set to all inputs.
Built when a `make` invocation does not specify one of the above.
IMPORTANT: Do not run the CRPA_MSPI firmware on an unmodified platform!
This firmware requires that U2 is depopulated and that the
pads for U2 pins 2 and 4 are jumpered together. This allows
CSN to be used as an output connected to P2, pin 10.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is rev 2 of this patch set. MSPI fixes have been squashed into the commit introducing MSPI support.
The proposed changes include the following:
make CRPA=yormake CRPA_MSPI=yis now required to target the Crazyradio PA (and use the RXEN for the LNA.makebuilds a "generic" firmware that leaves P0 as inputs.