[RESEND PATCH v5 4/6] pwm: stm32: improve capture by tuning counter prescaler

2018-05-16 Thread Fabrice Gasnier
Currently, capture is based on timeout window to configure prescaler. PWM capture framework provides 1s window at the time of writing. There's place for improvement, after input signal has been captured once: - Finer tune counter clock prescaler, by using 1st capture result (with arbitrary

[RESEND PATCH v5 4/6] pwm: stm32: improve capture by tuning counter prescaler

2018-05-16 Thread Fabrice Gasnier
Currently, capture is based on timeout window to configure prescaler. PWM capture framework provides 1s window at the time of writing. There's place for improvement, after input signal has been captured once: - Finer tune counter clock prescaler, by using 1st capture result (with arbitrary