[ECOS] Re: Waiting I/O operation
cetoni GmbH - Uwe Kindler
Thu Jul 19 10:39:00 GMT 2007
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.
Dipl. Inf. (FH)
Am Wiesenring 6
Tel.: +49 (0) 36602 338 28
Fax: +49 (0) 36602 338 11
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss