This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Waiting I/O operation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]