This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Waiting I/O operation
- From: cetoni GmbH - Uwe Kindler <uwe dot kindler at cetoni dot de>
- To: Alexey Shusharin <mrfinch at mail dot ru>
- Cc: ecos-discuss at sourceware dot org
- Date: Thu, 19 Jul 2007 12:37:24 +0200
- Subject: [ECOS] Re: Waiting I/O operation
- References: <469F24AE.9060907@cetoni.de> <469F3371.2000204@mail.ru>
Hello Alexey,
if it is allowed to set flags from DSR (is there a documentation about
this somewhere?!?) I would agree with the callback solution.
You could implement support for registering callback functions at
runtime by calling cyg_io_set_config. The callback function should be
called by CAN I/O layer after the received event is stored into the
event queue. Support for callback functions should be configurable via CDL.
In the callback function you could call cyg_flag_setbits() to signal the
thread that a new event was received.
Regards, Uwe
Dipl. Inf. (FH)
Uwe Kindler
Software Engineering
--
cetoni GmbH
Am Wiesenring 6
D-07554 Korbussen
Tel.: +49 (0) 36602 338 28
Fax: +49 (0) 36602 338 11
uwe.kindler@cetoni.de
www.cetoni.de
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss