Fix the clock enable register for FMUv2 PWM outputs 1-4.

Teach the stm32 pwm driver about the MOE bit on advanced timers.
This commit is contained in:
px4dev
2013-07-29 23:13:46 -07:00
parent 1410625dea
commit 57cbf724f1
2 changed files with 13 additions and 1 deletions
@@ -53,7 +53,7 @@
__EXPORT const struct pwm_servo_timer pwm_timers[PWM_SERVO_MAX_TIMERS] = {
{
.base = STM32_TIM1_BASE,
.clock_register = STM32_RCC_APB1ENR,
.clock_register = STM32_RCC_APB2ENR,
.clock_bit = RCC_APB2ENR_TIM1EN,
.clock_freq = STM32_APB2_TIM1_CLKIN
},