I'm thinking about a simple background communication.
In this scenario one character per main loop cycle should be send if a char is in the background send buffer ( the scenario is not the same as a buffered UART).
I have implemented one version with the standard implementation of the MODULE Serial.
Now, I'm thinking about if a interrupt controlled send of a character could avoid the blocking behavior.
Code: Select all
.. REPEAT UNTIL SYSTEM.BIT(MCU.U0LSR, 5); ..
Could I really save time ?
==> this depend of the amount of time of waiting in the REPEAT loop.
Before I start to implement that I want to ask if somebody can give me a hint