CC26xx/CC13xx GPIO interrupt hal: clear the interrupt flags before calling the callbacks, not after

This commit is contained in:
Atis Elsts 2018-09-15 14:37:17 +01:00
parent c5a434acea
commit f63012137d
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/*---------------------------------------------------------------------------*/
/** @} */