From a38437f378ece33cb762b482120be629c78d3540 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 5 Mar 2017 15:00:15 -0500 Subject: stepper: Introduce stepper_get_position command and remove from endstop.c Move the logic to calculate and report the stepper's current position from endstop.c to stepper.c. This localizes the stepper code into stepper.c. Signed-off-by: Kevin O'Connor --- src/stepper.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/stepper.h') diff --git a/src/stepper.h b/src/stepper.h index f4019ae5..8e27b789 100644 --- a/src/stepper.h +++ b/src/stepper.h @@ -3,12 +3,8 @@ #include // uint8_t -enum { STEPPER_POSITION_BIAS=0x40000000 }; - uint_fast8_t stepper_event(struct timer *t); -void command_config_stepper(uint32_t *args); -struct stepper; -uint32_t stepper_get_position(struct stepper *s); +struct stepper *stepper_oid_lookup(uint8_t oid); void stepper_stop(struct stepper *s); #endif // stepper.h -- cgit v1.2.3-70-g09d2