commit | 72dee54b4e75894ef521ae282be00edd7284d1e0 | [log] [tgz] |
---|---|---|
author | Bo Shen <voice.shen@gmail.com> | Mon Oct 02 22:47:59 2017 -0700 |
committer | Tom Rini <trini@konsulko.com> | Sun Oct 08 16:19:56 2017 -0400 |
tree | e5c0a0da6472c586f404e0d41ea223d3fdee4b74 | |
parent | af609e3764ea3ed7c0ccad8e57f9d9671c81c3e8 [diff] |
ARM: stm32f7: fix prescaler calculation of timer As the timer 2 is on APB1 bus, the maximum of clock frequency of APB1 timer clock is half of SYSCLK. Then to calculate the timer prescaler for timer 2 which need to be divided by 2. Signed-off-by: Bo Shen <voice.shen@gmail.com> Reviewed-by: Vikas Manocha <vikas.manocha@st.com>