#ifndef __stepper_h_
#define __stepper_h_
#include <process_string.h>
short millidelay;
void init_steppers();
void dda_move(long micro_delay);
bit can_step(bit min_pin, bit max_pin, long current, long target, bit direction);
void do_xstep( bit dir);
void do_ystep( bit dir);
bit read_switch(bit pin);
long to_steps(float steps_per_unit, float units);
void set_target(float x, float y);
void set_position(float x, float y);
void calculate_deltas();
long calculate_feedrate_delay(float feedrate);
//long getMaxSpeed();
void disable_steppers();
extern void delayus(unsigned char a);
extern void delayms(unsigned char c);
#endif
#define __stepper_h_
#include <process_string.h>
short millidelay;
void init_steppers();
void dda_move(long micro_delay);
bit can_step(bit min_pin, bit max_pin, long current, long target, bit direction);
void do_xstep( bit dir);
void do_ystep( bit dir);
bit read_switch(bit pin);
long to_steps(float steps_per_unit, float units);
void set_target(float x, float y);
void set_position(float x, float y);
void calculate_deltas();
long calculate_feedrate_delay(float feedrate);
//long getMaxSpeed();
void disable_steppers();
extern void delayus(unsigned char a);
extern void delayms(unsigned char c);
#endif