Browse Source

Undefine pins to reduce warnings

pull/1/head
Scott Lahteine 5 years ago
parent
commit
34d521234d
  1. 319
      Marlin/src/pins/pins.h

319
Marlin/src/pins/pins.h

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

Loading…
Cancel
Save