summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-07-09 13:39:33 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-07-09 13:39:33 +0200
commit091a4f626f8c6369638a3d54b8b67d9e225673ad (patch)
tree3e187d781c29affbdd437af090abd3480a4773ad
parent865a74dd0f02b46c6cc37a5c33314baaf90fa6e2 (diff)
TIM4 input clock is 72MHz.
-rw-r--r--ppmsum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppmsum.cpp b/ppmsum.cpp
index 7b77036..3da7d78 100644
--- a/ppmsum.cpp
+++ b/ppmsum.cpp
@@ -41,7 +41,7 @@ void PPMSum::irq() {
void PPMSum::enable() {
RCC.enable(RCC.TIM4);
- TIM4.PSC = 36;
+ TIM4.PSC = 72;
TIM4.CCMR1 = 0x0201;
TIM4.SMCR = 0x54;
TIM4.CCER = 0x31;