https://deepbluembedded.com/stm32-ultrasonic-sensor-input-capture-library/
STM32 Ultrasonic Sensor HC-SR04 Library With Timer Input Capture