ares

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
27:501fee691e0e
Parent:
24:58c2d7571207
Child:
28:8c7e29f719c5
--- a/hw_setup.cpp	Mon May 01 15:22:58 2017 +0000
+++ b/hw_setup.cpp	Wed May 17 14:53:22 2017 +0000
@@ -34,7 +34,7 @@
 
     TIM1->PSC = 0x0;                                            // no prescaler, timer counts up in sync with the peripheral clock
     //TIM1->ARR = 0x1194; // 20 khz
-    TIM1->ARR = 0x8CA;                                          // set auto reload, 40 khz
+    TIM1->ARR = PWM_ARR;                                          // set auto reload, 40 khz
     TIM1->CCER |= ~(TIM_CCER_CC1NP);                            // Interupt when low side is on.
     TIM1->CR1 |= TIM_CR1_CEN;                                   // enable TIM1