commit | ab3a897847834bf3e864fb07b733c444895a24ba | [log] [tgz] |
---|---|---|
author | Fabrice Gasnier <fabrice.gasnier@st.com> | Wed May 16 09:36:00 2018 +0200 |
committer | Lee Jones <lee.jones@linaro.org> | Wed May 16 09:11:19 2018 +0100 |
tree | b451c46ce5f7250e455fd71a3598267b8a7f5514 | |
parent | d66ffb91c374fc500fe666645184e278774bad38 [diff] |
pwm: stm32: Use input prescaler to improve period capture Using input prescaler, capture unit will trigger DMA once every configurable /2, /4 or /8 events (rising edge). This helps improve period (only) capture accuracy at high rates. Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Acked-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>