2019-05-18 01:28 PM
2019-05-18 02:11 PM
__HAL_GPIO_EXTI_GET_IT
2019-05-18 02:11 PM
__HAL_GPIO_EXTI_GET_IT
2019-05-18 02:13 PM
HAL uses macros for most status gets, IT sets and clears, when it seems missing in context sensitive editor always try __HAL_***_
2019-05-18 02:35 PM
HAL_EXTI_GetPending() does exactly the same.
I use neither SPL, nor HAL, but it took me only few minutes to find it out. The super "secret magic" formula - looking at register code and thinking!
2019-05-18 03:01 PM
void EXTI0_IRQHandler(void)
{
/* EXTI line interrupt detected */
if(__HAL_GPIO_EXTI_GET_IT(GPIO_PIO_0) != RESET)
{
__HAL_GPIO_EXTI_CLEAR_IT(GPIO_PIO_0);
// ... Do processing
}
}
2019-05-19 08:19 AM
thanks :)
2019-05-19 08:19 AM
thank you so much :)