Hi all !!!
I am in the middle of getting myself familiar with AT91SAM7X256 port of FreeRTOS. I have found one thing that in my opinion prevents kernel from running (or possibly I don’t understand something). When FreeRTOS is configured with
#define configUSE_PREEMPTION 1
AIC vector is set to point to vPreemptiveTick function when PIT interrupt event occurs (line 227 in port.c file) The problem is that there is no IRQ interrupt handler which gets AIC interrupt vector by means of reading AT91C_AIC_IVR register.
When FreeRTOS is configured to DO NOT use preemption, PIT interrupt is correctly tied to IRQ (line 136 of portISR.c file), but IRQ handler still is not reading AT91C_AIC_IVR register.
Am I missing something?