2019-05-18 01:27 PM
good evening, I work with FreeRTOS on STM32F4 Discovery and I want to use an ultrasound sensor in real time, for that I want to use a timer in input capture mode, I do not know how to handle the interruption on the timer.. I need your advice, thanks
2019-05-19 10:49 AM
Can't you just use the TIM's IRQHandler, and manage the handling of the CCx source, and read the TIMx->CCRx.
If measuring the Time-Of-Flight relative to the same TIM subtract out the transmission time.
Review the HAL examples for the sub-sets of functionality you're trying to implement.