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.

Configure more interrupt in the same GPIO bank DSP OMAP l138

Hello

I want configure 2 interrupt into 2 GPIO in the 3th bank, but i can't because when one interrupt arrived, become active the other interrup.

as ISR calling the same management function, i have to check which pin corresponds inside the function.

I used Starterware software.

 

void InitializeGpio(){

PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);

GPIO3_11_Configure_Input_Interrupt_Ser();

GPIO3_9_Configure_Input_Interrupt_PPS();

GPIO3_13_Configure_Output();

 

/* Enable interrupts for Bank 3.*/

GPIOBankIntEnable(SOC_GPIO_0_REGS, 3);

 

// Register the ISR in the Interrupt Vector Table

IntRegister(C674X_MASK_INT4, InterruptHandler);

// Map the system interrupt to the DSP maskable interrupt

IntEventMap(C674X_MASK_INT4, SYS_INT_GPIO_B3INT);

// Enable DSP maskable interrupt

IntEnable(C674X_MASK_INT4);

}

 

 

 

interrupt void InterruptHandler(){

 

if(GPIOPinIntStatus(SOC_GPIO_0_REGS, 60) == GPIO_INT_PEND){

GPIOPinIntClear(SOC_GPIO_0_REGS, 60);

//TODO SOMETHING

}

 

if(GPIOPinIntStatus(SOC_GPIO_0_REGS, 58) == GPIO_INT_PEND){

/* Clears the Interrupt Status of GP3[9] in GPIO.*/

GPIOPinIntClear(SOC_GPIO_0_REGS, 58);

//TODO SOMETHING

}

 

IntEventClear(SYS_INT_GPIO_B3INT);

}

 

Can someone help me?

Thank you!