Hi
Are there examples on how to configure mega module to map DSP GPIO Bank 3 interrupt to CPU. I would like to use it as an interrupt event for EDMA3.
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.
Hi
Are there examples on how to configure mega module to map DSP GPIO Bank 3 interrupt to CPU. I would like to use it as an interrupt event for EDMA3.
Hi Shankari
I tried but it is not working right.
In my .tcf, I am able to receive the interrupt correctly for 52 and it calls myisr.
/*ECM configuration*/ //Interrupt 52 is for GPIO Bank 3 (DSP Interrupt) bios.HWI.instance("HWI_INT7").interruptSelectNumber=52; bios.HWI.instance("HWI_INT7").fxn=prog.extern("myisr");
In my EDMA Sync Interrupt, the interrupt number is 23 for GPIO Bank 3.
In my AINTC Interrupt, the interrupt number is 45 for GPIO Bank 3.
Trying to use the GPIO settings,
#define GPIO_BANK_3 3u #define GPIO_3_8_PIN 57u //Pin Num for GP3[8] Gpio_Handle gpioHandle; Gpio_Params gpioParams = Gpio_PARAMS; Gpio_IntrCmdArg intrCmdArg; gpioParams.instNum=0; gpioParams.BankParams[GPIO_BANK_3].inUse = Gpio_InUse_No; gpioParams.BankParams[GPIO_BANK_3].hwiNum = 7u; gpioParams.BankParams[GPIO_BANK_3].PinConfigInfo[8].inUse = Gpio_InUse_No; gpioHandle = Gpio_open(&gpioParams); pinCmdArg.pin = GPIO3_8_PIN; pinCmdArg.value = Gpio_Direction_Input; Gpio_setPinDir(gpioHandle, &pinCmdArg); Gpio_bankInterruptEnable(gpioHandle, GPIO3_8_PIN); Gpio_setRaisingEdgeTrigger(gpioHandle, GPIO3_8_PIN);
Is the settings correct?