i' m studying the VIC and have a question about the example code.
Following is the interrupt handler from the example module IRQTimer.mod.
Code: Select all
PROCEDURE TimerHandler[4]; (* 4 for IRQ or FIQ *)
BEGIN
INC(timeVal);
(* Clear the MR0 interrupt *)
SYSTEM.PUT(LPC.T1IR, {0});
(* Update the VIC priority hardware *)
SYSTEM.PUT(LPC.VICVectAddr, 0)
END TimerHandler;
And also, is the VICVectAddr the right adres to do so?
I found this example in um10139 page 79
Code: Select all
VICVectCntl0 = 0x0000 0026 ; interrupt source with index 6 (UART0) is enabled as
; the one with priority 0 (the highest)
Does anyone have an idea?
Greets,
Frans-Pieter Vonck