void CommonHandler(registers_t regs) { // Because I use the interrupt handler for the same as the // IRQ handler, we have to handle it here in C. if (!regs.is_irq) ISRHandler(regs); else IRQHandler(regs); }
void CommonHandler(registers_t regs) { // printf("Received interrupt: 0x%X (%d)\n", regs.int_no, regs.int_no); // Because I use the interrupt handler for the same as the // IRQ handler, we have to handle it here in C. if (!regs.is_irq) ISRHandler(regs); else IRQHandler(regs); }