[En-Nut-Discussion] Events
Henrik Torstensson
Henrik.Torstensson at tritech.se
Wed Nov 9 15:14:24 CET 2005
Hello
I have a strange behaviour in my application. After having loaded the hex-file to the Ethernut bord everything works fine. But if i cut the power off and then put it on again, my Events stops working correct.
Is there a diffrence between a reset and loading a new hex-file?
Is there any event init I have missed?
My code looks a bit like this:
HANDLE h_1;
HANDLE h_2
THREAD1
for(;;){
...
NutEventPost(h_1);
...
NutEventWait(h_2);
...
}
THREAD2
for(;;){
...
if( NutEventWait(h_1) == 0 ){
...
NutEventPost(h_2);
}
...
}
Is there somone how recognize this behaviour?
Thanks,
Henrik
More information about the En-Nut-Discussion
mailing list