diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-09 13:49:03 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-09 13:49:03 -0500 |
commit | 60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59 (patch) | |
tree | 5cff0cfa54f76af6e137eddb6628b1daa34d816a /src/gpiocmds.c | |
parent | d5fc594317de58ad0c82e82eaa219dc0ca538990 (diff) | |
download | kutter-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/gpiocmds.c')
-rw-r--r-- | src/gpiocmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpiocmds.c b/src/gpiocmds.c index a86e12c9..259a7a5f 100644 --- a/src/gpiocmds.c +++ b/src/gpiocmds.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_out #include "board/irq.h" // irq_disable #include "command.h" // DECL_COMMAND @@ -43,7 +43,7 @@ digital_out_event(struct timer *timer) void command_config_digital_out(uint32_t *args) { - struct digital_out_s *d = alloc_oid(args[0], command_config_digital_out + struct digital_out_s *d = oid_alloc(args[0], command_config_digital_out , sizeof(*d)); d->default_value = args[2]; d->pin = gpio_out_setup(args[1], d->default_value); @@ -56,7 +56,7 @@ DECL_COMMAND(command_config_digital_out, void command_schedule_digital_out(uint32_t *args) { - struct digital_out_s *d = lookup_oid(args[0], command_config_digital_out); + struct digital_out_s *d = oid_lookup(args[0], command_config_digital_out); sched_del_timer(&d->timer); d->timer.func = digital_out_event; d->timer.waketime = args[1]; @@ -155,7 +155,7 @@ soft_pwm_load_event(struct timer *timer) void command_config_soft_pwm_out(uint32_t *args) { - struct soft_pwm_s *s = alloc_oid(args[0], command_config_soft_pwm_out + struct soft_pwm_s *s = oid_alloc(args[0], command_config_soft_pwm_out , sizeof(*s)); s->cycle_time = args[2]; s->pulse_time = s->cycle_time / 255; @@ -171,7 +171,7 @@ DECL_COMMAND(command_config_soft_pwm_out, void command_schedule_soft_pwm_out(uint32_t *args) { - struct soft_pwm_s *s = lookup_oid(args[0], command_config_soft_pwm_out); + struct soft_pwm_s *s = oid_lookup(args[0], command_config_soft_pwm_out); uint32_t time = args[1]; uint8_t value = args[2]; uint8_t next_flags = SPF_CHECK_END | SPF_HAVE_NEXT; |