mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 10:31:35 +08:00
Change servo definition for s32k3
This commit is contained in:
@@ -59,12 +59,12 @@
|
||||
|
||||
#include "s32k3xx_pin.h"
|
||||
|
||||
int up_pwm_servo_set(unsigned channel, servo_position_t value)
|
||||
int up_pwm_servo_set(unsigned channel, uint16_t value)
|
||||
{
|
||||
return io_timer_set_ccr(channel, value);
|
||||
}
|
||||
|
||||
servo_position_t up_pwm_servo_get(unsigned channel)
|
||||
uint16_t up_pwm_servo_get(unsigned channel)
|
||||
{
|
||||
return io_channel_get_ccr(channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user