-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
WIP: RP2040 PIO UART #248
Open
grabpot
wants to merge
14
commits into
HaoboGu:main
Choose a base branch
from
grabpot:feat/rppiouart
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
WIP: RP2040 PIO UART #248
Conversation
This file contains 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
@grabpot I think full-duplex could probably be pushed out to a separate PR, if that would help. It would be nice to get this one merged. |
* Added new_half_duplex() and new_full_duplex() methods, where the former accepts one pin/buffer and the latter two * In Half Duplex mode, write() disables RX SM, writes buffer to TX FIFO, waiting for TX_NFULL interrupt if necessary, then re-enables RX SM * In Full Duplex mode, write() adds buffer to internal ring buffer, enables TX_NFULL interrupt and returns. Interrupt is then responsible for pushing data into TX FIFO. * In both modes, TX SM is programmed to toggle pin direction, rather than pin level
My wired lily58 use pio and half duplex uart, looking forward a milestone for testing |
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.
First draft of implementing a half-duplex, single wire UART serial driver,
BufferedHalfDuplexUart
, using the RP2040 PIO subsystem. Requires PR #235. Not complete, and still to do, in no particular order:rp2040_pio
feature and optional dependencieskeyboard.toml
configuration