2011

Dependencies:   mbed FastPWM

Revision:
236:544011ad9c85
Parent:
235:bfdf0f479a38
Child:
237:f69cd0553be0
--- a/INIT_HW/INIT_HW.cpp	Fri Jun 24 00:18:20 2022 +0000
+++ b/INIT_HW/INIT_HW.cpp	Fri Jun 24 05:55:29 2022 +0000
@@ -225,7 +225,7 @@
     TIM4->CR1 |= TIM_CR1_UDIS;
     TIM4->EGR |= TIM_EGR_UG;
 
-    TIM4->PSC = 10-1;                                            // 10 prescaler, timer counts up in sync with the peripheral clock
+    TIM4->PSC = 20-1;                                            // 10 prescaler, timer counts up in sync with the peripheral clock
     TIM4->ARR = 1;
     TIM4->CNT = 0;
     TIM4->SR = 0;