aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpiocmds.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/gpiocmds.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/gpiocmds.c')
-rw-r--r--src/gpiocmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpiocmds.c b/src/gpiocmds.c
index 259a7a5f..e3351b44 100644
--- a/src/gpiocmds.c
+++ b/src/gpiocmds.c
@@ -8,7 +8,7 @@
#include "board/gpio.h" // struct gpio_out
#include "board/irq.h" // irq_disable
#include "command.h" // DECL_COMMAND
-#include "sched.h" // sched_timer
+#include "sched.h" // sched_add_timer
/****************************************************************
@@ -61,7 +61,7 @@ command_schedule_digital_out(uint32_t *args)
d->timer.func = digital_out_event;
d->timer.waketime = args[1];
d->value = args[2];
- sched_timer(&d->timer);
+ sched_add_timer(&d->timer);
}
DECL_COMMAND(command_schedule_digital_out,
"schedule_digital_out oid=%c clock=%u value=%c");
@@ -202,7 +202,7 @@ command_schedule_soft_pwm_out(uint32_t *args)
sched_del_timer(&s->timer);
s->timer.waketime = time;
s->timer.func = soft_pwm_load_event;
- sched_timer(&s->timer);
+ sched_add_timer(&s->timer);
}
irq_enable();
}