Tool/software: TI-RTOS
I am trying to setup a HWI, with AM5728, GPIO4 PIN11.
Here is my code
===================================
*((volatile INT32U*)GPIO4LEVEL1) = (1<<11);
*((volatile INT32U*)GPIO4IRQCLR0) = (1<<11);
*((volatile INT32U*)GPIO4IRQSET0) = (1<<11);
Hwi_Params_init(&hwiParams0);
hwiParams0.eventId = 27; //TRM P4128 table 17-3 GPIO1 IRQ
hwiParams0.arg = 0; //
hwiParams0.maskSetting = Hwi_MaskingOption_SELF;
hwiParams0.enableInt = TRUE;
hwi0 = Hwi_create(11, MBUS_Isr, &hwiParams0, &eb);
if(hwi0 == NULL)
{
printf("GPIO Hwi create failed !\n");
}
===================================
as Table 17-3. DSP1_INTC Default Interrupt Mapping,
GPIO4_IRQ_1 default input index is 27.
It pass the error check, but the HWI did not trigger when GPIO4P11 is set high.
I writet the GPIO_IRQSTATUS_RAW_0 bit 11 to be 1 didn't work either.
What had I miss?