diff --git a/spindle_control.c b/spindle_control.c index 3b7f8ca..1809a3b 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -23,6 +23,7 @@ #include "motion_control.h" #include "config.h" #include "planner.h" +#include "stepper.h" #include @@ -32,6 +33,8 @@ static int current_direction; void spindle_init() { + SPINDLE_ENABLE_DDR |= (1< #include +// Some useful constants #define LIMIT_MASK ((1<