[En-Nut-Discussion] Problem with Timers

Waschk,Kolja enut at ixo.de
Wed Feb 18 14:16:48 CET 2004


> 2. I've added NutEnterCritical/ExitCritical at several places in timer.c,
> event.c and thread.c and a small "paranoia" fix.

Hm, it all turned out to be a "RTFM" problem. No OS fix needed:

I failed to disable interrupts in my app before calling NutEvent*Async()
routines (The API documentation mentions this requirement, although not
boldly enough for me to read it...). Adding Enter/ExitCritical _there_
fixed all problems.

Kolja

-- 
mr. kolja waschk - haubach-39 - 22765 hh - ger
phone +49 40 889130-34 - fax -35 - e-mail s.a.




More information about the En-Nut-Discussion mailing list