https://deepbluembedded.com/stm32-external-interrupt-example-lab/
STM32 External Interrupt Example LAB