IRQTimer.mod:TimerHandler:"Update vic priority
Posted: Tue Jul 26, 2011 12:58 pm
Hello to you all,
i' m studying the VIC and have a question about the example code.
Following is the interrupt handler from the example module IRQTimer.mod.
I do not understand why it is necessary to "update the vic priority hardware".
And also, is the VICVectAddr the right adres to do so?
I found this example in um10139 page 79
So changing the priority is done with VICVectCntl0
Does anyone have an idea?
Greets,
Frans-Pieter Vonck
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