diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-05-25 11:37:40 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-05-25 11:37:40 -0400 |
commit | f582a36e4df16d5709943f7df17a900c8bcc12ab (patch) | |
tree | 628d927c4f3e19e54618f7f47c7a44af66bf0c2f /src/stepper.h | |
parent | 37a91e9c10648208de002c75df304e23ca89e256 (diff) | |
download | kutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.tar.gz kutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.tar.xz kutter-f582a36e4df16d5709943f7df17a900c8bcc12ab.zip |
Initial commit of source code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stepper.h')
-rw-r--r-- | src/stepper.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stepper.h b/src/stepper.h new file mode 100644 index 00000000..9a81b56e --- /dev/null +++ b/src/stepper.h @@ -0,0 +1,14 @@ +#ifndef __STEPPER_H +#define __STEPPER_H + +#include <stdint.h> // uint8_t + +enum { STEPPER_POSITION_BIAS=0x40000000 }; + +uint8_t stepper_event(struct timer *t); +void command_config_stepper(uint32_t *args); +struct stepper; +uint32_t stepper_get_position(struct stepper *s); +void stepper_stop(struct stepper *s); + +#endif // stepper.h |