I have to implement a Wiegand reader on a STM32 demo board.
Using CubeMX I have defined 2 gpios as GPIO_EXTI and now the HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) is triggered.
The problem is that the callback is triggered more than the right number of times!!!
The right number is 34 but the callback can be triggered 50, 40, 60 times!!!
Is there a way to have a right Wiegand event?