TIM timer with stm32 capture function to calculate the pulse frequency and duty cycle (This example shows how to use the TIM peripheral to measure the frequency and duty cycle of an external signal.)
File list:
PWM_Input
........\main.c
........\readme.txt
........\stm32f10x_conf.h
........\stm32f10x_it.c
........\stm32f10x_it.h