Change servo definition for s32k3

This commit is contained in:
Peter van der Perk
2022-10-14 16:16:46 +02:00
parent 1a35697470
commit 610c32da6c
@@ -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);
}