//--------------------------------------------------------------------------------- void irqInit() { //--------------------------------------------------------------------------------- int i; REG_IE = 0; // disable all interrupts // Set all interrupts to dummy functions. for(i = 0; i < MAX_INTERRUPTS; i ++) { irqTable[i].handler = irqDummy; irqTable[i].mask = 0; } IRQ_HANDLER = IntrMain; #ifdef ARM7 irqSetAUX(IRQ_I2C, i2cIRQHandler); irqEnableAUX(IRQ_I2C); #endif REG_IF = IRQ_ALL; // clear all pending interrupts REG_IME = 1; // enable global interrupt }
//--------------------------------------------------------------------------------- void sdmmc_init_irq() { //--------------------------------------------------------------------------------- set_irqhandler(0, 0, 0); irqSetAUX(IRQ_SDMMC, sdmmc_irqhandler); irqEnableAUX(IRQ_SDMMC); }