Page 2 of 2

Re: Serial Problem

Posted: Thu Jun 09, 2011 4:49 pm
by Dave_fr
What I don't understand is : What if nothing is happening and you want to send data out ? To do this, you need to wake up the thread. In order to do wake it up, how then, can you make the transition from none empty to empty happen from another thread ?
Do you have to wait for flag==IO_OUTPUT_EMPTY to output ?

Re: Serial Problem

Posted: Thu Jun 09, 2011 5:39 pm
by Giovanni
You can simply start writing from any thread, you don't need to wait an event in order to write.

Giovanni