Forum Discussion
Altera_Forum
Honored Contributor
14 years agoInterrupt in uC/OS-II
Hi, I use OSSemPost in my Interrupt ISR as follow: volatile int frame_ready_edge_capture;
INT8U error_code;
static void handle_frame_ready_interrupts(void* context, alt_u32 id)
{
/*...
Altera_Forum
Honored Contributor
14 years agoYou must write ones, not zeros, in order to clear edge capture and acknowledge the irq.
IOWR_ALTERA_AVALON_PIO_EDGE_CAP(FRAME_READY_IRQ_PIO_BASE, 1); Otherwise the irq would continuously retrigger.