diff options
author | px4dev <px4@purgatory.org> | 2013-07-29 23:13:46 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-07-29 23:13:46 -0700 |
commit | 57cbf724f159cec88b21281a4ace415276df3a38 (patch) | |
tree | c3dea3c546671702b0173619c9e8bc181c0e5179 /src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c | |
parent | 1410625dea4204f758f42c1bdd06959f75a86ef9 (diff) | |
download | px4-firmware-57cbf724f159cec88b21281a4ace415276df3a38.tar.gz px4-firmware-57cbf724f159cec88b21281a4ace415276df3a38.tar.bz2 px4-firmware-57cbf724f159cec88b21281a4ace415276df3a38.zip |
Fix the clock enable register for FMUv2 PWM outputs 1-4.
Teach the stm32 pwm driver about the MOE bit on advanced timers.
Diffstat (limited to 'src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c')
-rw-r--r-- | src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c b/src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c index d1656005b..bcbc0010c 100644 --- a/src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c +++ b/src/drivers/boards/px4fmuv2/px4fmu_pwm_servo.c @@ -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 }, |