|
|
|
@ -579,6 +579,17 @@ void servo_init() {
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Stepper Reset (RigidBoard, et.al.)
|
|
|
|
|
*/
|
|
|
|
|
#if HAS_STEPPER_RESET
|
|
|
|
|
void disableStepperDrivers() {
|
|
|
|
|
pinMode(STEPPER_RESET_PIN, OUTPUT);
|
|
|
|
|
digitalWrite(STEPPER_RESET_PIN, LOW); // drive it down to hold in reset motor driver chips
|
|
|
|
|
}
|
|
|
|
|
void enableStepperDrivers() { pinMode(STEPPER_RESET_PIN, INPUT); } // set to input, which allows it to be pulled high by pullups
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Marlin entry-point: Set up before the program loop
|
|
|
|
|
* - Set up the kill pin, filament runout, power hold
|
|
|
|
@ -601,6 +612,11 @@ void setup() {
|
|
|
|
|
setup_killpin();
|
|
|
|
|
setup_filrunoutpin();
|
|
|
|
|
setup_powerhold();
|
|
|
|
|
|
|
|
|
|
#if HAS_STEPPER_RESET
|
|
|
|
|
disableStepperDrivers();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
MYSERIAL.begin(BAUDRATE);
|
|
|
|
|
SERIAL_PROTOCOLLNPGM("start");
|
|
|
|
|
SERIAL_ECHO_START;
|
|
|
|
@ -656,6 +672,10 @@ void setup() {
|
|
|
|
|
SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if HAS_STEPPER_RESET
|
|
|
|
|
enableStepperDrivers();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef DIGIPOT_I2C
|
|
|
|
|
digipot_i2c_init();
|
|
|
|
|
#endif
|
|
|
|
|