Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BREMS/BREMSConfig.cpp
- Revision:
- 237:1a4591a0dd2d
- Parent:
- 229:90c6892f4d3b
- Child:
- 238:cf54cb197c8f
--- a/BREMS/BREMSConfig.cpp Sat Nov 10 10:01:20 2018 +0000 +++ b/BREMS/BREMSConfig.cpp Sat Nov 10 11:18:49 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); //Interupt when low side is on. TIM1->CR1 |= TIM_CR1_CEN; //ADC Setup