Merge pull request #660 from atiselsts/contrib/gpio-hal-interrupt
CC26xx/CC13xx GPIO interrupt hal: clear the interrupt flags before calling the callbacks, not after
This commit is contained in:
commit
ccc89bf745
@ -52,10 +52,10 @@ gpio_interrupt_isr(void)
|
||||
/* Read interrupt flags */
|
||||
pin_mask = (HWREG(GPIO_BASE + GPIO_O_EVFLAGS31_0) & GPIO_DIO_ALL_MASK);
|
||||
|
||||
gpio_hal_event_handler(pin_mask);
|
||||
|
||||
/* Clear the interrupt flags */
|
||||
HWREG(GPIO_BASE + GPIO_O_EVFLAGS31_0) = pin_mask;
|
||||
|
||||
gpio_hal_event_handler(pin_mask);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user