Serial Problem

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Dave_fr
Posts: 27
Joined: Thu Feb 17, 2011 11:26 pm

Re: Serial Problem

Post 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 ?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Serial Problem

Post by Giovanni »

You can simply start writing from any thread, you don't need to wait an event in order to write.

Giovanni
Post Reply