mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 06:23:34 +08:00
Remove some timer reload events; these seem to break PWM output on IO.
This commit is contained in:
@@ -169,9 +169,6 @@ pwm_channel_init(unsigned channel)
|
|||||||
rCCER(timer) |= GTIM_CCER_CC4E;
|
rCCER(timer) |= GTIM_CCER_CC4E;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generate an update event; reloads the counter and all registers */
|
|
||||||
rEGR(timer) = GTIM_EGR_UG;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -212,9 +209,6 @@ up_pwm_servo_set(unsigned channel, servo_position_t value)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generate an update event; reloads the counter and all registers */
|
|
||||||
rEGR(timer) = GTIM_EGR_UG;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user