auto-measurements
Dependencies: FastPWM3 mbed-dev
Fork of Hobbyking_Cheetah_Compact by
Diff: hw_setup.cpp
- Revision:
- 28:8c7e29f719c5
- Parent:
- 27:501fee691e0e
- Child:
- 30:db9081ac5658
diff -r 501fee691e0e -r 8c7e29f719c5 hw_setup.cpp --- a/hw_setup.cpp Wed May 17 14:53:22 2017 +0000 +++ b/hw_setup.cpp Sun Jun 04 19:00:22 2017 +0000 @@ -6,7 +6,7 @@ #include "FastPWM.h" void Init_PWM(GPIOStruct *gpio){ - + RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; // enable the clock to GPIOC RCC->APB1ENR |= 0x00000001; // enable TIM2 clock RCC->APB2ENR |= RCC_APB2ENR_TIM1EN; // enable TIM1 clock