GitHub - netsec917/HCSR04-STM32: Example of using the output compare & input capture modes of a general purpose timer to drive a HCSR04 ultrasonic sensor
00xnor Sergey Ostrikov: STM32 F4 General-purpose Timers for Periodic Interrupts
Working with STM32 and timers: Input Capture Mode. – EmbeddedExpertIO