reset AIC - 2nd try
This commit is contained in:
parent
66ba982b84
commit
5792ee5bf4
@ -66,13 +66,14 @@ void at91_init1(void)
|
||||
AT91S_AIC *aic = AT91C_BASE_AIC;
|
||||
aic->AIC_DCR = AT91C_AIC_DCR_PROT;
|
||||
|
||||
/* end-of-interrupt signal */
|
||||
aic->AIC_EOICR = ~0;
|
||||
|
||||
/* Disable & clear all Interrupts */
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user