aboutsummaryrefslogtreecommitdiffstats
path: root/src/pwmcmds.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-09 13:49:03 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-03-09 13:49:03 -0500
commit60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59 (patch)
tree5cff0cfa54f76af6e137eddb6628b1daa34d816a /src/pwmcmds.c
parentd5fc594317de58ad0c82e82eaa219dc0ca538990 (diff)
downloadkutter-60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59.tar.gz
kutter-60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59.tar.xz
kutter-60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59.zip
basecmd: Use oid_ prefix for the oid manipulation functions
Consistently use an "oid_" prefix on the oid functions - this makes them similar to other functions with a common prefix. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pwmcmds.c')
-rw-r--r--src/pwmcmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pwmcmds.c b/src/pwmcmds.c
index bc9fec03..2865b62a 100644
--- a/src/pwmcmds.c
+++ b/src/pwmcmds.c
@@ -4,7 +4,7 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
-#include "basecmd.h" // alloc_oid
+#include "basecmd.h" // oid_alloc
#include "board/gpio.h" // struct gpio_pwm
#include "command.h" // DECL_COMMAND
#include "sched.h" // sched_timer
@@ -37,7 +37,7 @@ pwm_event(struct timer *timer)
void
command_config_pwm_out(uint32_t *args)
{
- struct pwm_out_s *p = alloc_oid(args[0], command_config_pwm_out, sizeof(*p));
+ struct pwm_out_s *p = oid_alloc(args[0], command_config_pwm_out, sizeof(*p));
p->default_value = args[3];
p->pin = gpio_pwm_setup(args[1], args[2], p->default_value);
p->max_duration = args[4];
@@ -49,7 +49,7 @@ DECL_COMMAND(command_config_pwm_out,
void
command_schedule_pwm_out(uint32_t *args)
{
- struct pwm_out_s *p = lookup_oid(args[0], command_config_pwm_out);
+ struct pwm_out_s *p = oid_lookup(args[0], command_config_pwm_out);
sched_del_timer(&p->timer);
p->timer.func = pwm_event;
p->timer.waketime = args[1];