robot

Dependencies:   FastPWM3 mbed

Revision:
245:d97d09df3629
Parent:
244:1c6c0af8508e
Child:
246:167b5d50d0f2
--- a/BREMS/BREMSConfig.cpp	Mon Nov 12 12:37:15 2018 +0000
+++ b/BREMS/BREMSConfig.cpp	Mon Nov 12 12:43:31 2018 +0000
@@ -34,7 +34,7 @@
     
     TIM1->PSC = 0x00; //no prescaler, timer counts up in sync with the peripheral clock
     TIM1->ARR = (int) (2 * (float) 9e7 / _F_SW);
-    TIM1->CCER |= ~(TIM_CCER_CC1NP); //falling edge aligned, inverting
+    TIM1->CCER |= (TIM_CCER_CC1NP); //rising edge aligned, non-inverting
     TIM1->CR1 |= TIM_CR1_CEN;
     
     //ADC Setup