From 091a4f626f8c6369638a3d54b8b67d9e225673ad Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 9 Jul 2011 13:39:33 +0200 Subject: TIM4 input clock is 72MHz. --- ppmsum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3