Hi,
I could not write a code works for FIQ
My code is here:
void InitFIQ(){ VICIntEnClr = 1<<EINT0_INT VICIntSelect = 1<<EINT0_INT; }
In startup file:
Vectors . . LDR PC, [PC, #-0x0120] ; Vector from VicVectAddr LDR PC, FIQ_Addr . . . PRESERVE8 EXTERN PIXCLK_Handler FIQ_Addr DCD PIXCLK_Handler . . IRQ_Handler B IRQ_Handler FIQ_Handler B PIXCLK_Handler
And the handler:
void PIXCLK_Handler(void) __irq // EINT0 FIQ { volatile u16 h; EXTINT = EINT0; // clear interrupt // TO DO !! //VICVectAddr = 0 // Acknowledge Interrupt // no acknowledge in FIQ }
when i use __fiq, it doesn't compile.
Where is my mistake?
Best regards