|
@ -541,244 +541,244 @@ |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Define certain undefined pins
|
|
|
// Define certain undefined pins
|
|
|
#if !PIN_EXISTS(X_MS1) |
|
|
#ifndef X_MS1_PIN |
|
|
#undef X_MS1_PIN |
|
|
#define X_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(X_MS2) |
|
|
#ifndef X_MS2_PIN |
|
|
#undef X_MS2_PIN |
|
|
#define X_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(X_MS3) |
|
|
#ifndef X_MS3_PIN |
|
|
#undef X_MS3_PIN |
|
|
#define X_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Y_MS1) |
|
|
#ifndef Y_MS1_PIN |
|
|
#undef Y_MS1_PIN |
|
|
#define Y_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Y_MS2) |
|
|
#ifndef Y_MS2_PIN |
|
|
#undef Y_MS2_PIN |
|
|
#define Y_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Y_MS3) |
|
|
#ifndef Y_MS3_PIN |
|
|
#undef Y_MS3_PIN |
|
|
#define Y_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Z_MS1) |
|
|
#ifndef Z_MS1_PIN |
|
|
#undef Z_MS1_PIN |
|
|
#define Z_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Z_MS2) |
|
|
#ifndef Z_MS2_PIN |
|
|
#undef Z_MS2_PIN |
|
|
#define Z_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Z_MS3) |
|
|
#ifndef Z_MS3_PIN |
|
|
#undef Z_MS3_PIN |
|
|
#define Z_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_MS1) |
|
|
#ifndef E0_MS1_PIN |
|
|
#undef E0_MS1_PIN |
|
|
#define E0_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_MS2) |
|
|
#ifndef E0_MS2_PIN |
|
|
#undef E0_MS2_PIN |
|
|
#define E0_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_MS3) |
|
|
#ifndef E0_MS3_PIN |
|
|
#undef E0_MS3_PIN |
|
|
#define E0_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_MS1) |
|
|
#ifndef E1_MS1_PIN |
|
|
#undef E1_MS1_PIN |
|
|
#define E1_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_MS2) |
|
|
#ifndef E1_MS2_PIN |
|
|
#undef E1_MS2_PIN |
|
|
#define E1_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_MS3) |
|
|
#ifndef E1_MS3_PIN |
|
|
#undef E1_MS3_PIN |
|
|
#define E1_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_MS1) |
|
|
#ifndef E2_MS1_PIN |
|
|
#undef E2_MS1_PIN |
|
|
#define E2_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_MS2) |
|
|
#ifndef E2_MS2_PIN |
|
|
#undef E2_MS2_PIN |
|
|
#define E2_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_MS3) |
|
|
#ifndef E2_MS3_PIN |
|
|
#undef E2_MS3_PIN |
|
|
#define E2_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_MS1) |
|
|
#ifndef E3_MS1_PIN |
|
|
#undef E3_MS1_PIN |
|
|
#define E3_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_MS2) |
|
|
#ifndef E3_MS2_PIN |
|
|
#undef E3_MS2_PIN |
|
|
#define E3_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_MS3) |
|
|
#ifndef E3_MS3_PIN |
|
|
#undef E3_MS3_PIN |
|
|
#define E3_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_MS1) |
|
|
#ifndef E4_MS1_PIN |
|
|
#undef E4_MS1_PIN |
|
|
#define E4_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_MS2) |
|
|
#ifndef E4_MS2_PIN |
|
|
#undef E4_MS2_PIN |
|
|
#define E4_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_MS3) |
|
|
#ifndef E4_MS3_PIN |
|
|
#undef E4_MS3_PIN |
|
|
#define E4_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_MS1) |
|
|
#ifndef E5_MS1_PIN |
|
|
#undef E5_MS1_PIN |
|
|
#define E5_MS1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_MS2) |
|
|
#ifndef E5_MS2_PIN |
|
|
#undef E5_MS2_PIN |
|
|
#define E5_MS2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_MS3) |
|
|
#ifndef E5_MS3_PIN |
|
|
#undef E5_MS3_PIN |
|
|
#define E5_MS3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(E0_STEP) |
|
|
#ifndef E0_STEP_PIN |
|
|
#undef E0_STEP_PIN |
|
|
#define E0_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_DIR) |
|
|
#ifndef E0_DIR_PIN |
|
|
#undef E0_DIR_PIN |
|
|
#define E0_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_ENABLE) |
|
|
#ifndef E0_ENABLE_PIN |
|
|
#undef E0_ENABLE_PIN |
|
|
#define E0_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_STEP) |
|
|
#ifndef E1_STEP_PIN |
|
|
#undef E1_STEP_PIN |
|
|
#define E1_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_DIR) |
|
|
#ifndef E1_DIR_PIN |
|
|
#undef E1_DIR_PIN |
|
|
#define E1_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_ENABLE) |
|
|
#ifndef E1_ENABLE_PIN |
|
|
#undef E1_ENABLE_PIN |
|
|
#define E1_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_STEP) |
|
|
#ifndef E2_STEP_PIN |
|
|
#undef E2_STEP_PIN |
|
|
#define E2_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_DIR) |
|
|
#ifndef E2_DIR_PIN |
|
|
#undef E2_DIR_PIN |
|
|
#define E2_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_ENABLE) |
|
|
#ifndef E2_ENABLE_PIN |
|
|
#undef E2_ENABLE_PIN |
|
|
#define E2_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_STEP) |
|
|
#ifndef E3_STEP_PIN |
|
|
#undef E3_STEP_PIN |
|
|
#define E3_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_DIR) |
|
|
#ifndef E3_DIR_PIN |
|
|
#undef E3_DIR_PIN |
|
|
#define E3_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_ENABLE) |
|
|
#ifndef E3_ENABLE_PIN |
|
|
#undef E3_ENABLE_PIN |
|
|
#define E3_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_STEP) |
|
|
#ifndef E4_STEP_PIN |
|
|
#undef E4_STEP_PIN |
|
|
#define E4_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_DIR) |
|
|
#ifndef E4_DIR_PIN |
|
|
#undef E4_DIR_PIN |
|
|
#define E4_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_ENABLE) |
|
|
#ifndef E4_ENABLE_PIN |
|
|
#undef E4_ENABLE_PIN |
|
|
#define E4_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_STEP) |
|
|
#ifndef E5_STEP_PIN |
|
|
#undef E5_STEP_PIN |
|
|
#define E5_STEP_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_DIR) |
|
|
#ifndef E5_DIR_PIN |
|
|
#undef E5_DIR_PIN |
|
|
#define E5_DIR_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_ENABLE) |
|
|
#ifndef E5_ENABLE_PIN |
|
|
#undef E5_ENABLE_PIN |
|
|
#define E5_ENABLE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(X_CS) |
|
|
#ifndef X_CS_PIN |
|
|
#undef X_CS_PIN |
|
|
#define X_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Y_CS) |
|
|
#ifndef Y_CS_PIN |
|
|
#undef Y_CS_PIN |
|
|
#define Y_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(Z_CS) |
|
|
#ifndef Z_CS_PIN |
|
|
#undef Z_CS_PIN |
|
|
#define Z_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E0_CS) |
|
|
#ifndef E0_CS_PIN |
|
|
#undef E0_CS_PIN |
|
|
#define E0_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E1_CS) |
|
|
#ifndef E1_CS_PIN |
|
|
#undef E1_CS_PIN |
|
|
#define E1_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E2_CS) |
|
|
#ifndef E2_CS_PIN |
|
|
#undef E2_CS_PIN |
|
|
#define E2_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E3_CS) |
|
|
#ifndef E3_CS_PIN |
|
|
#undef E3_CS_PIN |
|
|
#define E3_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E4_CS) |
|
|
#ifndef E4_CS_PIN |
|
|
#undef E4_CS_PIN |
|
|
#define E4_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(E5_CS) |
|
|
#ifndef E5_CS_PIN |
|
|
#undef E5_CS_PIN |
|
|
#define E5_CS_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(FAN) |
|
|
#ifndef FAN_PIN |
|
|
#undef FAN_PIN |
|
|
#define FAN_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#define FAN0_PIN FAN_PIN |
|
|
#define FAN0_PIN FAN_PIN |
|
|
#if !PIN_EXISTS(FAN1) |
|
|
#ifndef FAN1_PIN |
|
|
#undef FAN1_PIN |
|
|
#define FAN1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(FAN2) |
|
|
#ifndef FAN2_PIN |
|
|
#undef FAN2_PIN |
|
|
#define FAN2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(CONTROLLER_FAN) |
|
|
#ifndef CONTROLLER_FAN_PIN |
|
|
#undef CONTROLLER_FAN_PIN |
|
|
#define CONTROLLER_FAN_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(FANMUX0) |
|
|
#ifndef FANMUX0_PIN |
|
|
#undef FANMUX0_PIN |
|
|
#define FANMUX0_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(FANMUX1) |
|
|
#ifndef FANMUX1_PIN |
|
|
#undef FANMUX1_PIN |
|
|
#define FANMUX1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(FANMUX2) |
|
|
#ifndef FANMUX2_PIN |
|
|
#undef FANMUX2_PIN |
|
|
#define FANMUX2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(HEATER_0) |
|
|
#ifndef HEATER_0_PIN |
|
|
#undef HEATER_0_PIN |
|
|
#define HEATER_0_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_1) |
|
|
#ifndef HEATER_1_PIN |
|
|
#undef HEATER_1_PIN |
|
|
#define HEATER_1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_2) |
|
|
#ifndef HEATER_2_PIN |
|
|
#undef HEATER_2_PIN |
|
|
#define HEATER_2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_3) |
|
|
#ifndef HEATER_3_PIN |
|
|
#undef HEATER_3_PIN |
|
|
#define HEATER_3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_4) |
|
|
#ifndef HEATER_4_PIN |
|
|
#undef HEATER_4_PIN |
|
|
#define HEATER_4_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_5) |
|
|
#ifndef HEATER_5_PIN |
|
|
#undef HEATER_5_PIN |
|
|
#define HEATER_5_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(HEATER_BED) |
|
|
#ifndef HEATER_BED_PIN |
|
|
#undef HEATER_BED_PIN |
|
|
#define HEATER_BED_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(TEMP_0) |
|
|
#ifndef TEMP_0_PIN |
|
|
#undef TEMP_0_PIN |
|
|
#define TEMP_0_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_1) |
|
|
#ifndef TEMP_1_PIN |
|
|
#undef TEMP_1_PIN |
|
|
#define TEMP_1_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_2) |
|
|
#ifndef TEMP_2_PIN |
|
|
#undef TEMP_2_PIN |
|
|
#define TEMP_2_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_3) |
|
|
#ifndef TEMP_3_PIN |
|
|
#undef TEMP_3_PIN |
|
|
#define TEMP_3_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_4) |
|
|
#ifndef TEMP_4_PIN |
|
|
#undef TEMP_4_PIN |
|
|
#define TEMP_4_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_5) |
|
|
#ifndef TEMP_5_PIN |
|
|
#undef TEMP_5_PIN |
|
|
#define TEMP_5_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(TEMP_BED) |
|
|
#ifndef TEMP_BED_PIN |
|
|
#undef TEMP_BED_PIN |
|
|
#define TEMP_BED_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !PIN_EXISTS(SD_DETECT) |
|
|
#ifndef SD_DETECT_PIN |
|
|
#undef SD_DETECT_PIN |
|
|
#define SD_DETECT_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(SDPOWER) |
|
|
#ifndef SDPOWER_PIN |
|
|
#undef SDPOWER_PIN |
|
|
#define SDPOWER_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef SDSS |
|
|
#ifndef SDSS |
|
|
#define SDSS -1 |
|
|
#define SDSS -1 |
|
@ -786,14 +786,15 @@ |
|
|
#ifndef LED_PIN |
|
|
#ifndef LED_PIN |
|
|
#define LED_PIN -1 |
|
|
#define LED_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if DISABLED(PSU_CONTROL) || !PIN_EXISTS(PS_ON) |
|
|
#if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN) |
|
|
#undef PS_ON_PIN |
|
|
#undef PS_ON_PIN |
|
|
|
|
|
#define PS_ON_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(KILL) |
|
|
#ifndef KILL_PIN |
|
|
#undef KILL_PIN |
|
|
#define KILL_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#if !PIN_EXISTS(SUICIDE) |
|
|
#ifndef SUICIDE_PIN |
|
|
#undef SUICIDE_PIN |
|
|
#define SUICIDE_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifndef NUM_SERVO_PLUGS |
|
|
#ifndef NUM_SERVO_PLUGS |
|
|