diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-05 15:00:15 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-09 14:54:52 -0500 |
commit | a38437f378ece33cb762b482120be629c78d3540 (patch) | |
tree | a4a4ec60221aecbb3e41a5854f75bbaf629065d4 /src/stepper.h | |
parent | 8d6ecd9af87d3e0da312588bacb1c43332412107 (diff) | |
download | kutter-a38437f378ece33cb762b482120be629c78d3540.tar.gz kutter-a38437f378ece33cb762b482120be629c78d3540.tar.xz kutter-a38437f378ece33cb762b482120be629c78d3540.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/stepper.h')
-rw-r--r-- | src/stepper.h | 6 |
1 files changed, 1 insertions, 5 deletions
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 <stdint.h> // 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 |