[ECOS] How to make a Interrupt driven serial port driver?

Jonathan Larmour jlarmour@redhat.com
Sun Oct 29 19:02:00 GMT 2000


Ling Su wrote:
> 
> > Or instead are you asking for some sort of automatic notification to your
> > application when data arrives?
> >
> 
> Yeah, exactly, what I am asking is how to make a kind of automatic
> notification to my application, so that my own serial port handler can
> continue process that data when data arrives. Any clue? Thanks!

Well, in that case as per another thread on ecos-discuss, you can either:

- use select(), but this has a number of overheads
- use a separate thread to read data, and then signal other threads in your
application
- or just go ahead and modify the source in the driver itself! e.g. by
waking up a thread in the serial DSR. This is one of the advantages of open
source after all.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault


More information about the Ecos-discuss mailing list