IRQ11 interrupt triggered every 14us after enabling by sysIntEnablePIC(
From josh.cofreros@gmail.com@21:1/5 to All on Tue Sep 12 06:38:24 2017
Hi. I am trying to use IRQ11 for HPET and I have programmed the necessary HPET timer 2 registers. The problem is whenever I enable IRQ11 using sysIntEnablePIC(), I get a interrupt trigger of 14us.
Problem here is I have not yet enabled the interrupt from the HPET register and then suddenly this happens. Second problem is I programmed the timer comparator 2 to about 100ms and this is not what it is happening.
I have checked the vxWorks workspace code and the only programming done to HPET is only for timer 0.
How is vxWorks assigning IRQ numbers to PIC by default? It does not make sense that I am already getting an interrupt trigger before I enable the interrupt. Pseudo code is below:
:
intConnect (INUM_TO_IVEC ((0X20 + IRQ11)), (void)int_handler, 0);
:
:
sysIntEnablePIC(IRQ11); /// This is where interrupt starts.
: