Replies: 1 comment 4 replies
-
There is no obligation to use Serial in just one Task, as a). I believe the Serial Port instantiation happens only once, and b). it is useful to have output messages from multiple Tasks to illustrate the example code you're creating. It is also a useful example to see how Serial output is handled. AFAIK, writing to the Serial transmitter buffer is done with the interrupt disabled, as I've never experienced interleaved outputs. But, I've also never aggressively tested this. The standard FreeRTOS test suite has a centralised error messaging system using stream buffers IIRC, but this method is just done as a further example. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing examples using Arduino FreeRTOS.
I make quite a lot of use of the Serial port for output and some input. Should I put all of this activity into a single Task?
John
Beta Was this translation helpful? Give feedback.
All reactions