Hello, I am developing a program which creates many tasks, schedules them and responds to external interrupts, when they ouccr. In my program in UCOS-ii, I have enabled the external interrupts (the values of the resgisters are set correspondingly).
Now, I want to write the interrupts handler for this ext interrupt., i.e, an ISR.
I tried the following ISR with an intention to write an external interrupt handler:
#pragma interrupt_handler int0_isr:2 void int0_isr(void) { count++; }
On every occurrence of the interrupt, I am incrementing a count. SO it should increase whenever an interrupt should occur. But while interrupts are occurring, there is no increase in the value of count.
Kindly suggest how to write an interrupt handler in UCOS-ii, so as to handle the external interrupts. Also, should I call this handler from the main function.?
Kindly suggest in this regard with your views and ideas.
Thanks. Prakhar.