[stm32] add support of pwm_input for stm32

- two pwm input can be configured
- only TIM 1, 2 and 3 are implemented
- example in apogee board file