-
Notifications
You must be signed in to change notification settings - Fork 513
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
LIN Bus support, USART hardware flow control configuration support #930
Closed
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
Nice one @avtolstoy ! |
@avtolstoy - our serial peripherals are shaping up so well! Please rebase on develop so you can add some docs to the firmware reference for the new features. Thanks! |
@m-mcgowan the docs are already in PR #997, which is based on this branch :) |
technobly
force-pushed
the
feature/usart-lin-config
branch
from
June 10, 2016 18:04
7d0dbdb
to
3f5b9df
Compare
|
Closing this due to all of it's changes were merged into develop with #997 |
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 PR implements #697
Hardware USART serials can be configured in one of the following LIN modes:
LIN_MASTER_13B
- LIN Master mode with ability to send 13 bit breaksLIN_SLAVE_10B
- LIN Slave mode with 10 bit break detectionLIN_SLAVE_11B
- LIN Slave mode with 11 bit break detectionExample:
Serial1.begin(9600, LIN_MASTER_13B);
These are just convenient pre-defined configurations:
LIN break detection can also be manually enabled in Master mode (this is a supported configuration in LIN, when Master can act as a Slave as well and respond to its own messages). This configuration was used in serial_loopback test
SERIAL1_LINMasterReadWriteBreakSucceedsInLoopbackWithTxRxShorted
.Serial1.begin(9600, LIN_MASTER_13B | LIN_BREAK_10B);
New Wiring methods:
void USARTSerial::breakTx(void);
- send breakbool USARTSerial::breakRx(void);
- checks if break was detectedThis PR also includes support for hardware flow control settings on USARTs:
Hardware flow control is available on: