SV: [En-Nut-Discussion] Problem using hardware interrupts
Tom Nyström
m99tomny at embassaden.liu.se
Tue Feb 11 18:59:11 CET 2003
Thanks for the answer! I was unsure of which one to use, register interrupt or register handler. The way you suggested worked out fine after a while. You wouldn't happen to know why the compiler won't find OVERFLOW2 even though it is in irqreg.h? It finds 0, 1 and 3 but not 2.
Regards
Tom Nyström
-----Ursprungligt meddelande-----
Från: Michael Fischer [mailto:fischermi at t-online.de]
Skickat: den 10 februari 2003 20:27
Till: en-nut-discussion at egnite.de
Ämne: [En-Nut-Discussion] Problem using hardware interrupts
Hi Tom,
have you try the following?
Try it with NutRegisterIrqHandler.
I have not try it with the real compiler, but I use
NutRegisterIrqHandler in my IDE code.
#include <dev/irqreg.h>
static void loop_trigger (void *arg)
{
return;
}
int main (void)
{
NutRegisterIrqHandler(&sig_OVERFLOW0, loop_trigger, NULL);
for(;;);
}
Regards,
Michael
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list