Timeline for Serial.write is synchronous
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 22, 2018 at 18:20 | comment | added | Edgar Bonet | I am not aware of any software layer other than the files you mentioned. | |
Nov 22, 2018 at 15:19 | comment | added | Olivier | Thank you for this Edgar. I've been throught the multiple layers of C++ code for the Serial.xx down to the HardwareSerial.xx. I wanted to implement a very simple and quick SerialTXClear to clear out the TX buffer queue, but I feel I'll miss layer. Where shall I find the doc on theses multiple layers? | |
Nov 20, 2018 at 14:48 | comment | added | Edgar Bonet |
If you change the TX buffer size, please note that it should be a power of two. Otherwise the processing time for HardwareSerial::write() and the TX ISR will be much longer. The performance penalty for sizes larger than 256 is small in comparison.
|
|
Nov 20, 2018 at 13:34 | history | answered | Olivier | CC BY-SA 4.0 |