Question
HAL_GPIO_EXTI_Callback, falling and rising
Posted on February 09, 2017 at 14:23
Hi. I'm using the HAL_GPIO_EXTI_Callback function to have an event when a pin is falling or is rising.
To know if a pin is low or high I use this functionif (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin)== GPIO_PIN_RESET) {} else {}but the functions seems to not work prerfectly. Sometimes the function returns a wrong value.
Is there another way to do that?Many thanks.