2016-05-25 18:37:40 +03:00
|
|
|
#ifndef __STEPPER_H
|
|
|
|
#define __STEPPER_H
|
|
|
|
|
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
|
|
|
|
enum { STEPPER_POSITION_BIAS=0x40000000 };
|
|
|
|
|
2016-06-09 04:33:50 +03:00
|
|
|
uint_fast8_t stepper_event(struct timer *t);
|
2016-05-25 18:37:40 +03:00
|
|
|
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
|