// Name: interrupt_request_handler // Description: This function is interrupt request handler for the PIC interrupts. // Parameter: state - This has the cpu and stack state information at the time of interrupt occurance // Return: - void interrupt_request_handler(struct cpu_stack_state state) { //puts("Enterred interrupt request handler\n", 35 ); void (*irqHandler)(struct cpu_stack_state); //puts(interrupt_messags[state.interrupt_no], 32); //putc(state.interrupt_no+'0'); irqHandler = irq_handlers[state.interrupt_no - 32]; if(irqHandler != 0) irqHandler(state); pic_acknowledge(state.interrupt_no); //puts("Leaving interrupt request handler\n", 34); }
void GPIO_EVEN_IRQHandler(void) { irqHandler(); }
void GPIO_ODD_IRQHandler(void) { irqHandler(); }