This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to handle serial port input?
- To: "Tom Vandeplas" <tom dot vandeplas at 4g-radio dot com>
- Subject: Re: [ECOS] How to handle serial port input?
- From: Jesper Skov <jskov at cambridge dot redhat dot com>
- Date: 19 Jun 2001 17:34:29 +0200
- Cc: <ecos-discuss at sourceware dot cygnus dot com>
- References: <NBEOLLLNGJIDDDCAHFAGAEIMCAAA.tom.vandeplas@4g-radio.com>
>>>>> "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