This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to handle serial port input?


>>>>> "Tom" == Tom Vandeplas <tom.vandeplas@4g-radio.com> writes:

Tom> If this is correct, how can I know when to read this buffer,
Tom> polling it all the time would be a disaster for performance. Is
Tom> there some way to attach an interrupt to this or even better is
Tom> there a synchrioniation primitive available?

Just launch the thread and let it read from the device. It will sleep
until there is data to be read.

Jesper


 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]