Skip to content

Conversation

@bluesign2k
Copy link
Contributor

Added a call to a new Serial rx event function,
"serialEventImmediate()". It allows users the advanced option of
processing an incoming serial character at the time of the interrupt
rather than having to wait for the current loop() to finish.

While the new function should be used with caution as it's called within
an interrupt routine, it enables processing of high priority incoming
data. eg. an abort or e-stop command

Added a call to a new Serial rx event function,
"serialEventImmediate()". It allows users the advanced option of
processing an incoming serial character at the time of the interrupt
rather than having to wait for the current loop() to finish.

While the new function should be used with caution as it's called within
an interrupt routine, it enables processing of high priority incoming
data. eg. an abort or e-stop command
@cmaglie cmaglie added feature request A request to make an enhancement (not a bug fix) Component: HardwareSerial The hardware serial functionality of the core libraries Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) labels Apr 15, 2015
@sandeepmistry
Copy link
Contributor

As discussed in #3203 (comment) it has been proposed serialEvent() might be removed in the future. I don't think it's a good idea to introduce a new serialEventImmediate() feature.

If you think this is important still, please start a discussion on the Arduino developer mailing list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: HardwareSerial The hardware serial functionality of the core libraries feature request A request to make an enhancement (not a bug fix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants