From 60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 9 Mar 2017 13:49:03 -0500 Subject: 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 --- src/pwmcmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pwmcmds.c') 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]; -- cgit v1.2.3-70-g09d2