the ISR of Interrupt GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the ISR of Interrupt GPIO

Jump to solution
731 Views
RehabSoliman
Contributor I

the software stuck in the ISR of interrupt GPIO and it couldn't come out 

this is the configuration that I did 

/* Setup the PTB11 interrupt for rising edge */
PINS_DRV_SetPinIntSel(PORTB, BSP_INT_PIN_MICRO_R_MC, PORT_INT_RISING_EDGE);

/* Install the pin interrupt ISR */
INT_SYS_InstallHandler(PORTB_IRQn,&I2C_INT_Right_Handler,(isr_t *) 0);

/* Enable Interrupt Pins IRQ */
INT_SYS_EnableIRQ(PORTB_IRQn);

and the ISR :

void I2C_INT_Right_Handler(void)
{

BSP_vidTogglePin(BSP_GREEN_LED);


PINS_DRV_ClearPinIntFlagCmd(PORTB,BSP_INT_PIN_MICRO_R_MC);

}

I am using FreeRTOS  but I couldn't solve this problem 

can anyone help me to fix this issue please?

regards

 

Tags (1)
0 Kudos
Reply
1 Solution
713 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @RehabSoliman,

Can you read the ISF flag in the PORT_PCR register or the PTB11 pin?

Does the flag get cleared in the ISR?

 

Thanks,

BR, Daniel

 

 

View solution in original post

0 Kudos
Reply
2 Replies
710 Views
RehabSoliman
Contributor I

thanks for your response that it was  the problem 

0 Kudos
Reply
714 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @RehabSoliman,

Can you read the ISF flag in the PORT_PCR register or the PTB11 pin?

Does the flag get cleared in the ISR?

 

Thanks,

BR, Daniel

 

 

0 Kudos
Reply