diff options
author | px4dev <px4@purgatory.org> | 2013-07-30 22:47:17 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-07-30 22:47:17 -0700 |
commit | feee1ccc65dff865270d22ff6796b6acedf67ea2 (patch) | |
tree | c45c8a28c15ef71857437b6d1ddc0e5f5496fdce /src/drivers/stm32/drv_pwm_servo.c | |
parent | b85d74336d62d467b21f98f69020c5db2f21efb0 (diff) | |
download | px4-firmware-feee1ccc65dff865270d22ff6796b6acedf67ea2.tar.gz px4-firmware-feee1ccc65dff865270d22ff6796b6acedf67ea2.tar.bz2 px4-firmware-feee1ccc65dff865270d22ff6796b6acedf67ea2.zip |
Remove some timer reload events; these seem to break PWM output on IO.
Diffstat (limited to 'src/drivers/stm32/drv_pwm_servo.c')
-rw-r--r-- | src/drivers/stm32/drv_pwm_servo.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/drivers/stm32/drv_pwm_servo.c b/src/drivers/stm32/drv_pwm_servo.c index c85e83ddc..dbb45a138 100644 --- a/src/drivers/stm32/drv_pwm_servo.c +++ b/src/drivers/stm32/drv_pwm_servo.c @@ -169,9 +169,6 @@ pwm_channel_init(unsigned channel) rCCER(timer) |= GTIM_CCER_CC4E; break; } - - /* generate an update event; reloads the counter and all registers */ - rEGR(timer) = GTIM_EGR_UG; } int @@ -212,9 +209,6 @@ up_pwm_servo_set(unsigned channel, servo_position_t value) return -1; } - /* generate an update event; reloads the counter and all registers */ - rEGR(timer) = GTIM_EGR_UG; - return 0; } |