robot

Dependencies:   FastPWM3 mbed

Revision:
90:2ef53b1a22de
Parent:
80:64732542010a
Child:
91:f58472ac3fae
--- a/BREMS/BREMSConfig.cpp	Tue Mar 28 21:55:40 2017 +0000
+++ b/BREMS/BREMSConfig.cpp	Tue Apr 04 04:05:37 2017 +0000
@@ -29,7 +29,7 @@
     
     TIM1->PSC = 0x00; //no prescaler, timer counts up in sync with the peripheral clock
     TIM1->ARR = (int) ((float) 9e7 / F_SW);
-    TIM1->CCER |= ~(TIM_CCER_CC1NP);
+    TIM1->CCER |= ~(TIM_CCER_CC1NP); //Interupt when low side is on.
     TIM1->CR1 |= TIM_CR1_CEN;
     
     //ADC Setup