Stm32 Timer Input Capture Example Code