reset AIC - finally working
This commit is contained in:
parent
5792ee5bf4
commit
2ae6881a67
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user