mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 17:13:34 +08:00
kinetis:io_timer Added SYC on CCR setting
Fixes error in fmu test "servo 0 readback error, got 900
expected 1002"
This commit is contained in:
@@ -465,6 +465,9 @@ static int timer_set_rate(unsigned timer, unsigned rate)
|
||||
rMOD(timer) = (BOARD_PWM_FREQ / rate) - 1;
|
||||
rSC(timer) = save;
|
||||
|
||||
/* generate an update event; reloads the counter and all registers */
|
||||
rSYNC(timer) = FTM_SYNC;
|
||||
|
||||
px4_leave_critical_section(flags);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user