aboutsummaryrefslogtreecommitdiffstats
path: root/src/pwmcmds.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-10 22:12:05 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-03-11 11:14:06 -0500
commit944d1768568239c4d9901726ff133bd43f56863e (patch)
tree9b7d89cef47ab31e23507e8db9b2226632ee5928 /src/pwmcmds.c
parentcdd5a772e8b8ef34de529207252c8130d62a87a2 (diff)
downloadkutter-944d1768568239c4d9901726ff133bd43f56863e.tar.gz
kutter-944d1768568239c4d9901726ff133bd43f56863e.tar.xz
kutter-944d1768568239c4d9901726ff133bd43f56863e.zip
sched: Rename sched_timer() to sched_add_timer()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pwmcmds.c')
-rw-r--r--src/pwmcmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pwmcmds.c b/src/pwmcmds.c
index 2865b62a..e8de0a3b 100644
--- a/src/pwmcmds.c
+++ b/src/pwmcmds.c
@@ -7,7 +7,7 @@
#include "basecmd.h" // oid_alloc
#include "board/gpio.h" // struct gpio_pwm
#include "command.h" // DECL_COMMAND
-#include "sched.h" // sched_timer
+#include "sched.h" // sched_add_timer
struct pwm_out_s {
struct timer timer;
@@ -54,7 +54,7 @@ command_schedule_pwm_out(uint32_t *args)
p->timer.func = pwm_event;
p->timer.waketime = args[1];
p->value = args[2];
- sched_timer(&p->timer);
+ sched_add_timer(&p->timer);
}
DECL_COMMAND(command_schedule_pwm_out,
"schedule_pwm_out oid=%c clock=%u value=%c");