Part Number: AM5708
Hi Team,
AM5708 is being used and it requires GPIO6_20 as GPIO to enter an interrupt as configured below. But it doesn't get into the interrupt.
GPIODirModeSet(SOC_GPIO6_BASE, 20, GPIO_DIR_INPUT);
/*Enable GPIO*/
GPIOModuleEnable(SOC_GPIO6_BASE);
GPIOIntTypeSet(SOC_GPIO6_BASE, 20, GPIO_INT_TYPE_FALL_EDGE);
/*Enable interrupt*/
GPIOPinIntEnable(SOC_GPIO6_BASE, GPIO_INT_LINE_1, 20);
Hwi_Params hwiParams;
Error_Block isreb;
Error_init(&isreb);
Hwi_Params_init(&hwiParams);
hwiParams.arg = 0;
// set the event id of the peripheral assigned to this interrupt
hwiParams.eventId = 29;
// don't allow this interrupt to nest itself
hwiParams.maskSetting = Hwi_MaskingOption_SELF;
hwiParams.enableInt = TRUE;
myHwi = Hwi_create(15, my_isr, &hwiParams, &isreb);
if (myHwi == NULL) {
System_abort("Hwi create failed");
}
Could you help check this case? Thanks.
Best Regards,
Cherry