User Activity

I work with FreeRTOS and I have two interrupts that can be triggered at the same time: An interrupt on a Timer in Input Capture mode (because I'm working with an ultrasound sensor HCSR04) and a UART interrupt (which is the reception of 'a character )...
Any example or link to STM32F4 Discovery for ranging an ultrasonic sensor in real time with freeRTOS
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