Hi!
I'm trying to use interrupt based on sys_nirq1.
/* Registration Part */ HwiP_Handle hwi_handler; HwiP_Params parameters; HwiP_Params_init(¶meters); HwiP_create(39, (HwiP_Fxn) hwi_handle_func, ¶meters); HwiP_enableInterrupt(39); /* irq func */ void hwi_handle_func(void *arg) { HwiP_clearInterrupt(39); }
I provided code I use above. But interrupts does not work.
Question which irq line number I should use for this?
I found two posts:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/779630/rtos-am5728-how-to-use-sys_nirq1-by-hwi_create-in-sysbios
and
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/777871/rtos-am5728-how-to-send-interrupt-from-external-device-to-a15_0-by-using-sys_nirq1-or-sys_nirq2-pin
In one it's written, that sys_nirq1 should be defined as interrupt number 2 in other interrupt number 39. And both answers marked as correct answer.
Sys_nirq1 is GIC ID 39 , MPU_IRQ_7 and IRQ CROSSBAR Instance Number is 2.
Which one I should pick? And how to enable interrupt properly?
Kind regards,
Ilya