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/stepper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/stepper.c') diff --git a/src/stepper.c b/src/stepper.c index b97a7a69..39fdab54 100644 --- a/src/stepper.c +++ b/src/stepper.c @@ -5,7 +5,7 @@ // This file may be distributed under the terms of the GNU GPLv3 license. #include "autoconf.h" // CONFIG_* -#include "basecmd.h" // alloc_oid +#include "basecmd.h" // oid_alloc #include "board/gpio.h" // gpio_out_write #include "board/irq.h" // irq_disable #include "command.h" // DECL_COMMAND @@ -145,7 +145,7 @@ reschedule_min: void command_config_stepper(uint32_t *args) { - struct stepper *s = alloc_oid(args[0], command_config_stepper, sizeof(*s)); + struct stepper *s = oid_alloc(args[0], command_config_stepper, sizeof(*s)); if (!CONFIG_INLINE_STEPPER_HACK) s->time.func = stepper_event; s->flags = args[4] ? SF_INVERT_STEP : 0; @@ -163,7 +163,7 @@ DECL_COMMAND(command_config_stepper, void command_queue_step(uint32_t *args) { - struct stepper *s = lookup_oid(args[0], command_config_stepper); + struct stepper *s = oid_lookup(args[0], command_config_stepper); struct stepper_move *m = move_alloc(); m->interval = args[1]; m->count = args[2]; @@ -204,7 +204,7 @@ DECL_COMMAND(command_queue_step, void command_set_next_step_dir(uint32_t *args) { - struct stepper *s = lookup_oid(args[0], command_config_stepper); + struct stepper *s = oid_lookup(args[0], command_config_stepper); uint8_t nextdir = args[1] ? SF_NEXT_DIR : 0; irq_disable(); s->flags = (s->flags & ~SF_NEXT_DIR) | nextdir; @@ -216,7 +216,7 @@ DECL_COMMAND(command_set_next_step_dir, "set_next_step_dir oid=%c dir=%c"); void command_reset_step_clock(uint32_t *args) { - struct stepper *s = lookup_oid(args[0], command_config_stepper); + struct stepper *s = oid_lookup(args[0], command_config_stepper); uint32_t waketime = args[1]; irq_disable(); if (s->count) -- cgit v1.2.3-70-g09d2