reset AIC - finally working

This commit is contained in:
Olaf Rempel 2008-03-04 23:38:18 +01:00
parent 5792ee5bf4
commit 2ae6881a67

View File

@ -70,10 +70,6 @@ void at91_init1(void)
aic->AIC_IDCR = ~0;
aic->AIC_ICCR = ~0;
/* end-of-interrupt signal */
while (aic->AIC_ISR != 0x00)
aic->AIC_EOICR = ~0;
/* default Interrupt Handlers just return */
aic->AIC_FVR = (uint32_t)empty_isr;
aic->AIC_IVR = (uint32_t)empty_isr;
@ -83,6 +79,11 @@ void at91_init1(void)
aic->AIC_SVR[i] = (uint32_t)empty_isr;
}
aic->AIC_SPU = (uint32_t)empty_isr;
/* end-of-interrupt signal */
do {
aic->AIC_EOICR = ~0;
} while (aic->AIC_ISR != 0x00);
}
__attribute__((naked)) void IRQ_Handler(void)