Hi Team,
I have been running TI-RTOS on ARM core of the 66AK2G12 processor.
I am using the HwiP library to take care of interrupts found in <ti\pdk_k2g_1_0_14\packages\ti\osal\> location.
I am using the following code to test my TIMER1 interrupt.
#define TIMER1_EVTID 51 int var=0; void gic_init() { HwiP_Handle hwi0; HwiP_Params hwiParams; HwiP_Params_init(&hwiParams); hwi0 = HwiP_create(TIMER1_EVTID, myISR, &hwiParams); HwiP_enableInterrupt(TIMER1_EVTID); } void myISR() { var=1; } inside the main task loop() { gic_init(); while(1) { if(var==1) UART_printf("\n INTERRUPT OCCURED"); } }
I have enabled the timer interrupt in the TIMER1_INTCTL_STAT register too.
When the timer overflows I can see the interrupt getting triggered in the TIMER1_INTCTL_STAT register.
But the HwiP interrupt is not getting triggered.
Do let me know if I am missing out anything.?
With Thanks,
Krishna.