Skip to content

added optional custom handler to Serial interrupt #297

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

Closed
wants to merge 2 commits into from

Conversation

gicking
Copy link

@gicking gicking commented Nov 8, 2019

added optional custom handler to Serial interrupt. Is minor enhancement
of NeoHWSerial by SlashDevin
(https://github.com/SlashDevin/NeoHWSerial), as user function also gets
UART status as parameter to e.g. detect LIN break in user routine.

Added as core extension for consistency with Due, because AFAIK finctionality on Due cannot be implemented as library. See respective pull request for Due (arduino/ArduinoCore-sam#93).

added optional custom handler to Serial interrupt. Is minor enhancement
of NeoHWSerial by SlashDevin
(https://github.com/SlashDevin/NeoHWSerial), as user function also gets
UART status as parameter to e.g. detect LIN break in user routine.

Added as core extension instead of library due to similar extension for
Due (https://github.com/gicking/ArduinoCore-sam) which AFAIK cannot be
implemented as library.
gicking added a commit to gicking/ArduinoCore-sam that referenced this pull request Nov 8, 2019
added optional custom handler to Serial interrupt. Is similar to
NeoHWSerial by SlashDevin (https://github.com/SlashDevin/NeoHWSerial),
but:

- user function also gets UART status as parameter to e.g. detect LIN
break in user routine.

- ported to Arduino Due

Added as core extension because AFAIK cannot be implemented as library
for Due. Also note similar pull request for AVR
(arduino/ArduinoCore-avr#297)
fixed compiler warnings when compiling with max. waring level
@gicking gicking closed this Nov 23, 2019
@gicking
Copy link
Author

gicking commented Nov 23, 2019

replaced by new pull request with additional Serialx.attachInterrupt_Send(). Also for SAM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant