Fork and fix for mwork
Dependencies: mbed-dev-f303 FastPWM3 millis
Diff: hw_setup.cpp
- Revision:
- 28:8c7e29f719c5
- Parent:
- 27:501fee691e0e
- Child:
- 30:db9081ac5658
- Child:
- 37:c0f352d6e8e3
--- 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