This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Notice on interrupts from devices in applications
- From: "Martin Hansen" <farhansen at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Sat, 6 Sep 2008 02:53:30 +0200
- Subject: [ECOS] Notice on interrupts from devices in applications
Hi
I have been studying the interrupt model in eCos, looks well thought out.
I just wonder about one thing, i have interface to more devices like
the ADC or serial port, both ports is able to generate interrupt on
input, but i do not se a way for my application to get notice on this
interrupt, unless i include file I/O and the select() call (space
hog). Or create my own ISR/DSR replacing the one from the driver.
What i would have expected was an possibility to give an calback
function to the driver in case of new data (interrupt) or some global
semaphore/flag/mail that i cold make a wait on.
Or did i miss something (probably)?
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss