i have run the program as you suggest and its working properly,
and i convert it on register level which also working fine but when i use to check the status of external interrupt is not working and when i use its API function its working fine.
could you please tell me where i am wrong?
here is my code:- External interrupt 0 rising edge
SYSCON->AHBCLKCTRL[0] |= 0x00000800;
SYSCON->AHBCLKCTRL[0] |= 0x00004000; // GPIO0
INPUTMUX->PINTSEL[0] = 0x06; // P0_6
SYSCON->AHBCLKCTRL[0] |= 0x00040000;
PINT->ISEL = 0x00; // edge mode
PINT->SIENR |= 0x01; // rising mode
NVIC->ISER[0] |= 0x00000010; // pin interrupt 0 enable
when i use below API function with above function its working fine
void pint_intr_callback(pint_pin_int_t pintr, uint32_t pmatch_status)
{
flagStatus = true;
//PRINTF("\f\r\nPINT Pin Interrupt %d event detected.", pintr);
}
and when i am using my function its not working
void Rising_edge(void)
{
if(PINT->IST & 0x01) // check status
{
PINT->RISE |= 0x01; // clear rising flag
flagStatus = true;
}
}