All STM32 embed many general purpose timer and they offer plenty of input captures with filtering feature to precisely measure time per revolution of a wheel (from Hall effect sensor).
You should take a look at STM32Cube HAL library for TIMER for Input Capture example.
Let look the applications note below, they will help you.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.