This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: DSP通过Hwi_create绑定GPIO中断

Part Number: AM5708

您好:

       现在用AM5708,要将GPIO6_20做为GPIO输入中断,如下配置:不进中断,请问是什么原因?

        

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");
}