robot

Dependencies:   FastPWM3 mbed

Revision:
244:1c6c0af8508e
Parent:
240:2aaffa217627
Child:
245:d97d09df3629
--- a/BREMS/BREMSConfig.cpp	Mon Nov 12 11:16:43 2018 +0000
+++ b/BREMS/BREMSConfig.cpp	Mon Nov 12 12:37:15 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); //Interupt when low side is on.
+    TIM1->CCER |= ~(TIM_CCER_CC1NP); //falling edge aligned, inverting
     TIM1->CR1 |= TIM_CR1_CEN;
     
     //ADC Setup