keil吧 关注:14,987贴子:30,273
  • 0回复贴,共1

stepper.h(7): error C129: missing ';' before 'short' 求指点

只看楼主收藏回复

#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


IP属地:河北1楼2015-01-11 12:45回复