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:
George Oikonomou 2018-09-17 13:21:21 +01:00 committed by GitHub
commit ccc89bf745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
/*---------------------------------------------------------------------------*/
/** @} */