Browse Source

Drop DISABLE_M(IN|AX)_ENDSTOPS, replace with individual endstop flags

Scott Lahteine 8 years ago
parent
commit
e5771346a4

+ 11
- 3
Marlin/Conditionals.h View File

275
   #include "Arduino.h"
275
   #include "Arduino.h"
276
 
276
 
277
   /**
277
   /**
278
-   * ENDSTOPPULLUPS
278
+   * Set ENDSTOPPULLUPS for unused endstop switches
279
    */
279
    */
280
   #if ENABLED(ENDSTOPPULLUPS)
280
   #if ENABLED(ENDSTOPPULLUPS)
281
-    #if DISABLED(DISABLE_MAX_ENDSTOPS)
281
+    #if DISABLED(USE_XMAX_PLUG)
282
       #define ENDSTOPPULLUP_XMAX
282
       #define ENDSTOPPULLUP_XMAX
283
+    #endif
284
+    #if DISABLED(USE_YMAX_PLUG)
283
       #define ENDSTOPPULLUP_YMAX
285
       #define ENDSTOPPULLUP_YMAX
286
+    #endif
287
+    #if DISABLED(USE_ZMAX_PLUG)
284
       #define ENDSTOPPULLUP_ZMAX
288
       #define ENDSTOPPULLUP_ZMAX
285
     #endif
289
     #endif
286
-    #if DISABLED(DISABLE_MIN_ENDSTOPS)
290
+    #if DISABLED(USE_XMIN_PLUG)
287
       #define ENDSTOPPULLUP_XMIN
291
       #define ENDSTOPPULLUP_XMIN
292
+    #endif
293
+    #if DISABLED(USE_YMIN_PLUG)
288
       #define ENDSTOPPULLUP_YMIN
294
       #define ENDSTOPPULLUP_YMIN
295
+    #endif
296
+    #if DISABLED(USE_ZMIN_PLUG)
289
       #define ENDSTOPPULLUP_ZMIN
297
       #define ENDSTOPPULLUP_ZMIN
290
     #endif
298
     #endif
291
     #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
299
     #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)

+ 14
- 2
Marlin/Configuration.h View File

346
 // Enable this option for Toshiba steppers
346
 // Enable this option for Toshiba steppers
347
 //#define CONFIG_STEPPERS_TOSHIBA
347
 //#define CONFIG_STEPPERS_TOSHIBA
348
 
348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349
 // @section homing
353
 // @section homing
350
 
354
 
355
+// Specify here all the endstop connectors that are connected to any endstop or probe.
356
+// Almost all printers will be using one per axis. Probes will use one or more of the
357
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
358
+#define USE_XMIN_PLUG
359
+#define USE_YMIN_PLUG
360
+#define USE_ZMIN_PLUG
361
+//#define USE_XMAX_PLUG
362
+//#define USE_YMAX_PLUG
363
+//#define USE_ZMAX_PLUG
364
+
351
 // coarse Endstop Settings
365
 // coarse Endstop Settings
352
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353
 
367
 
370
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
384
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
371
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
385
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
372
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
386
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
373
-//#define DISABLE_MAX_ENDSTOPS
374
-//#define DISABLE_MIN_ENDSTOPS
375
 
387
 
376
 //===========================================================================
388
 //===========================================================================
377
 //============================= Z Probe Options =============================
389
 //============================= Z Probe Options =============================

+ 13
- 0
Marlin/SanityCheck.h View File

420
 #endif
420
 #endif
421
 
421
 
422
 /**
422
 /**
423
+ * Endstops
424
+ */
425
+#if DISABLED(HAS_ENDSTOP_X_MIN) && DISABLED(HAS_ENDSTOP_X_MAX)
426
+ #error You must enable HAS_ENDSTOP_X_MIN or HAS_ENDSTOP_X_MAX
427
+#elif DISABLED(HAS_ENDSTOP_Y_MIN) && DISABLED(HAS_ENDSTOP_Y_MAX)
428
+ #error You must enable HAS_ENDSTOP_Y_MIN or HAS_ENDSTOP_Y_MAX
429
+#elif DISABLED(HAS_ENDSTOP_Z_MIN) && DISABLED(HAS_ENDSTOP_Z_MAX)
430
+ #error You must enable HAS_ENDSTOP_Z_MIN or HAS_ENDSTOP_Z_MAX
431
+#endif
432
+
433
+/**
423
  * Warnings for old configurations
434
  * Warnings for old configurations
424
  */
435
  */
425
 #if WATCH_TEMP_PERIOD > 500
436
 #if WATCH_TEMP_PERIOD > 500
456
   #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
467
   #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
457
 #elif defined(FILAMENT_SENSOR)
468
 #elif defined(FILAMENT_SENSOR)
458
   #error FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead.
469
   #error FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead.
470
+#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
471
+  #error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated - set USE_*_ENDSTOP flags instead
459
 #endif
472
 #endif
460
 
473
 
461
 #endif //SANITYCHECK_H
474
 #endif //SANITYCHECK_H

+ 14
- 2
Marlin/example_configurations/Felix/Configuration.h View File

328
 // Enable this option for Toshiba steppers
328
 // Enable this option for Toshiba steppers
329
 //#define CONFIG_STEPPERS_TOSHIBA
329
 //#define CONFIG_STEPPERS_TOSHIBA
330
 
330
 
331
+//===========================================================================
332
+//============================== Endstop Settings ===========================
333
+//===========================================================================
334
+
331
 // @section homing
335
 // @section homing
332
 
336
 
337
+// Specify here all the endstop connectors that are connected to any endstop or probe.
338
+// Almost all printers will be using one per axis. Probes will use one or more of the
339
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
340
+#define USE_XMIN_PLUG
341
+#define USE_YMIN_PLUG
342
+#define USE_ZMIN_PLUG
343
+//#define USE_XMAX_PLUG
344
+//#define USE_YMAX_PLUG
345
+//#define USE_ZMAX_PLUG
346
+
333
 // coarse Endstop Settings
347
 // coarse Endstop Settings
334
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
348
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
335
 
349
 
352
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
366
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
353
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
367
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
354
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
368
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
355
-#define DISABLE_MAX_ENDSTOPS
356
-//#define DISABLE_MIN_ENDSTOPS
357
 
369
 
358
 //===========================================================================
370
 //===========================================================================
359
 //============================= Z Probe Options =============================
371
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

325
 // Enable this option for Toshiba steppers
325
 // Enable this option for Toshiba steppers
326
 //#define CONFIG_STEPPERS_TOSHIBA
326
 //#define CONFIG_STEPPERS_TOSHIBA
327
 
327
 
328
+//===========================================================================
329
+//============================== Endstop Settings ===========================
330
+//===========================================================================
331
+
328
 // @section homing
332
 // @section homing
329
 
333
 
334
+// Specify here all the endstop connectors that are connected to any endstop or probe.
335
+// Almost all printers will be using one per axis. Probes will use one or more of the
336
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
337
+#define USE_XMIN_PLUG
338
+#define USE_YMIN_PLUG
339
+#define USE_ZMIN_PLUG
340
+//#define USE_XMAX_PLUG
341
+//#define USE_YMAX_PLUG
342
+//#define USE_ZMAX_PLUG
343
+
330
 // coarse Endstop Settings
344
 // coarse Endstop Settings
331
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
345
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
332
 
346
 
349
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
350
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
364
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
351
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
365
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
352
-#define DISABLE_MAX_ENDSTOPS
353
-//#define DISABLE_MIN_ENDSTOPS
354
 
366
 
355
 //===========================================================================
367
 //===========================================================================
356
 //============================= Z Probe Options =============================
368
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

338
 // Enable this option for Toshiba steppers
338
 // Enable this option for Toshiba steppers
339
 //#define CONFIG_STEPPERS_TOSHIBA
339
 //#define CONFIG_STEPPERS_TOSHIBA
340
 
340
 
341
+//===========================================================================
342
+//============================== Endstop Settings ===========================
343
+//===========================================================================
344
+
341
 // @section homing
345
 // @section homing
342
 
346
 
347
+// Specify here all the endstop connectors that are connected to any endstop or probe.
348
+// Almost all printers will be using one per axis. Probes will use one or more of the
349
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
350
+#define USE_XMIN_PLUG
351
+#define USE_YMIN_PLUG
352
+#define USE_ZMIN_PLUG
353
+//#define USE_XMAX_PLUG
354
+//#define USE_YMAX_PLUG
355
+//#define USE_ZMAX_PLUG
356
+
343
 // coarse Endstop Settings
357
 // coarse Endstop Settings
344
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
358
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
345
 
359
 
362
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
376
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
377
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
364
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
378
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
365
-#define DISABLE_MAX_ENDSTOPS
366
-//#define DISABLE_MIN_ENDSTOPS
367
 
379
 
368
 //===========================================================================
380
 //===========================================================================
369
 //============================= Z Probe Options =============================
381
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/K8200/Configuration.h View File

363
 // Enable this option for Toshiba steppers
363
 // Enable this option for Toshiba steppers
364
 //#define CONFIG_STEPPERS_TOSHIBA
364
 //#define CONFIG_STEPPERS_TOSHIBA
365
 
365
 
366
+//===========================================================================
367
+//============================== Endstop Settings ===========================
368
+//===========================================================================
369
+
366
 // @section homing
370
 // @section homing
367
 
371
 
372
+// Specify here all the endstop connectors that are connected to any endstop or probe.
373
+// Almost all printers will be using one per axis. Probes will use one or more of the
374
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
375
+#define USE_XMIN_PLUG
376
+#define USE_YMIN_PLUG
377
+#define USE_ZMIN_PLUG
378
+//#define USE_XMAX_PLUG
379
+//#define USE_YMAX_PLUG
380
+//#define USE_ZMAX_PLUG
381
+
368
 // coarse Endstop Settings
382
 // coarse Endstop Settings
369
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
383
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
370
 
384
 
387
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
401
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
388
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
402
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
389
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
403
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
390
-#define DISABLE_MAX_ENDSTOPS
391
-//#define DISABLE_MIN_ENDSTOPS
392
 
404
 
393
 //===========================================================================
405
 //===========================================================================
394
 //============================= Z Probe Options =============================
406
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

346
 // Enable this option for Toshiba steppers
346
 // Enable this option for Toshiba steppers
347
 //#define CONFIG_STEPPERS_TOSHIBA
347
 //#define CONFIG_STEPPERS_TOSHIBA
348
 
348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349
 // @section homing
353
 // @section homing
350
 
354
 
355
+// Specify here all the endstop connectors that are connected to any endstop or probe.
356
+// Almost all printers will be using one per axis. Probes will use one or more of the
357
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
358
+#define USE_XMIN_PLUG
359
+#define USE_YMIN_PLUG
360
+#define USE_ZMIN_PLUG
361
+//#define USE_XMAX_PLUG
362
+//#define USE_YMAX_PLUG
363
+//#define USE_ZMAX_PLUG
364
+
351
 // coarse Endstop Settings
365
 // coarse Endstop Settings
352
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353
 
367
 
370
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
384
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
371
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
385
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
372
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
386
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
373
-//#define DISABLE_MAX_ENDSTOPS
374
-//#define DISABLE_MIN_ENDSTOPS
375
 
387
 
376
 //===========================================================================
388
 //===========================================================================
377
 //============================= Z Probe Options =============================
389
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/RigidBot/Configuration.h View File

340
 // Enable this option for Toshiba steppers
340
 // Enable this option for Toshiba steppers
341
 //#define CONFIG_STEPPERS_TOSHIBA
341
 //#define CONFIG_STEPPERS_TOSHIBA
342
 
342
 
343
+//===========================================================================
344
+//============================== Endstop Settings ===========================
345
+//===========================================================================
346
+
343
 // @section homing
347
 // @section homing
344
 
348
 
349
+// Specify here all the endstop connectors that are connected to any endstop or probe.
350
+// Almost all printers will be using one per axis. Probes will use one or more of the
351
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
352
+#define USE_XMIN_PLUG
353
+#define USE_YMIN_PLUG
354
+#define USE_ZMIN_PLUG
355
+//#define USE_XMAX_PLUG
356
+//#define USE_YMAX_PLUG
357
+//#define USE_ZMAX_PLUG
358
+
345
 // coarse Endstop Settings
359
 // coarse Endstop Settings
346
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
360
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
347
 
361
 
364
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
378
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
365
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
379
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
366
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
380
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
367
-//#define DISABLE_MAX_ENDSTOPS
368
-//#define DISABLE_MIN_ENDSTOPS
369
 
381
 
370
 //===========================================================================
382
 //===========================================================================
371
 //============================= Z Probe Options =============================
383
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

354
 // Enable this option for Toshiba steppers
354
 // Enable this option for Toshiba steppers
355
 //#define CONFIG_STEPPERS_TOSHIBA
355
 //#define CONFIG_STEPPERS_TOSHIBA
356
 
356
 
357
+//===========================================================================
358
+//============================== Endstop Settings ===========================
359
+//===========================================================================
360
+
357
 // @section homing
361
 // @section homing
358
 
362
 
363
+// Specify here all the endstop connectors that are connected to any endstop or probe.
364
+// Almost all printers will be using one per axis. Probes will use one or more of the
365
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
366
+#define USE_XMIN_PLUG
367
+#define USE_YMIN_PLUG
368
+//#define USE_ZMIN_PLUG
369
+//#define USE_XMAX_PLUG
370
+//#define USE_YMAX_PLUG
371
+#define USE_ZMAX_PLUG
372
+
359
 // coarse Endstop Settings
373
 // coarse Endstop Settings
360
 //#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
374
 //#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
361
 
375
 
378
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
392
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
379
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
393
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
380
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
394
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
381
-//#define DISABLE_MAX_ENDSTOPS
382
-//#define DISABLE_MIN_ENDSTOPS
383
 
395
 
384
 //===========================================================================
396
 //===========================================================================
385
 //============================= Z Probe Options =============================
397
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/TAZ4/Configuration.h View File

367
 // Enable this option for Toshiba steppers
367
 // Enable this option for Toshiba steppers
368
 //#define CONFIG_STEPPERS_TOSHIBA
368
 //#define CONFIG_STEPPERS_TOSHIBA
369
 
369
 
370
+//===========================================================================
371
+//============================== Endstop Settings ===========================
372
+//===========================================================================
373
+
370
 // @section homing
374
 // @section homing
371
 
375
 
376
+// Specify here all the endstop connectors that are connected to any endstop or probe.
377
+// Almost all printers will be using one per axis. Probes will use one or more of the
378
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
379
+#define USE_XMIN_PLUG
380
+#define USE_YMIN_PLUG
381
+#define USE_ZMIN_PLUG
382
+//#define USE_XMAX_PLUG
383
+//#define USE_YMAX_PLUG
384
+//#define USE_ZMAX_PLUG
385
+
372
 // coarse Endstop Settings
386
 // coarse Endstop Settings
373
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
387
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
374
 
388
 
391
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
405
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
392
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
406
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
393
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
407
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
394
-#define DISABLE_MAX_ENDSTOPS
395
-//#define DISABLE_MIN_ENDSTOPS
396
 
408
 
397
 //===========================================================================
409
 //===========================================================================
398
 //============================= Z Probe Options =============================
410
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/WITBOX/Configuration.h View File

338
 // Enable this option for Toshiba steppers
338
 // Enable this option for Toshiba steppers
339
 //#define CONFIG_STEPPERS_TOSHIBA
339
 //#define CONFIG_STEPPERS_TOSHIBA
340
 
340
 
341
+//===========================================================================
342
+//============================== Endstop Settings ===========================
343
+//===========================================================================
344
+
341
 // @section homing
345
 // @section homing
342
 
346
 
347
+// Specify here all the endstop connectors that are connected to any endstop or probe.
348
+// Almost all printers will be using one per axis. Probes will use one or more of the
349
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
350
+#define USE_XMIN_PLUG
351
+#define USE_YMIN_PLUG
352
+#define USE_ZMIN_PLUG
353
+//#define USE_XMAX_PLUG
354
+//#define USE_YMAX_PLUG
355
+//#define USE_ZMAX_PLUG
356
+
343
 // coarse Endstop Settings
357
 // coarse Endstop Settings
344
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
358
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
345
 
359
 
362
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
376
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
377
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
364
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
378
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
365
-//#define DISABLE_MAX_ENDSTOPS
366
-//#define DISABLE_MIN_ENDSTOPS
367
 
379
 
368
 //===========================================================================
380
 //===========================================================================
369
 //============================= Z Probe Options =============================
381
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

346
 // Enable this option for Toshiba steppers
346
 // Enable this option for Toshiba steppers
347
 //#define CONFIG_STEPPERS_TOSHIBA
347
 //#define CONFIG_STEPPERS_TOSHIBA
348
 
348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349
 // @section homing
353
 // @section homing
350
 
354
 
355
+// Specify here all the endstop connectors that are connected to any endstop or probe.
356
+// Almost all printers will be using one per axis. Probes will use one or more of the
357
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
358
+#define USE_XMIN_PLUG
359
+#define USE_YMIN_PLUG
360
+#define USE_ZMIN_PLUG
361
+//#define USE_XMAX_PLUG
362
+//#define USE_YMAX_PLUG
363
+//#define USE_ZMAX_PLUG
364
+
351
 // coarse Endstop Settings
365
 // coarse Endstop Settings
352
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353
 
367
 
370
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
384
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
371
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
385
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
372
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
386
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
373
-//#define DISABLE_MAX_ENDSTOPS
374
-//#define DISABLE_MIN_ENDSTOPS
375
 
387
 
376
 //===========================================================================
388
 //===========================================================================
377
 //============================= Z Probe Options =============================
389
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

381
 // Enable this option for Toshiba steppers
381
 // Enable this option for Toshiba steppers
382
 //#define CONFIG_STEPPERS_TOSHIBA
382
 //#define CONFIG_STEPPERS_TOSHIBA
383
 
383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384
 // @section homing
388
 // @section homing
385
 
389
 
390
+// Specify here all the endstop connectors that are connected to any endstop or probe.
391
+// Almost all printers will be using one per axis. Probes will use one or more of the
392
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
393
+//#define USE_XMIN_PLUG
394
+//#define USE_YMIN_PLUG
395
+//#define USE_ZMIN_PLUG
396
+#define USE_XMAX_PLUG
397
+#define USE_YMAX_PLUG
398
+#define USE_ZMAX_PLUG
399
+
386
 // coarse Endstop Settings
400
 // coarse Endstop Settings
387
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388
 
402
 
405
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
419
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
406
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
420
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
407
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
421
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
408
-//#define DISABLE_MAX_ENDSTOPS
409
-#define DISABLE_MIN_ENDSTOPS // Deltas only use min endstops for probing.
410
 
422
 
411
 //===========================================================================
423
 //===========================================================================
412
 //============================= Z Probe Options =============================
424
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/delta/generic/Configuration.h View File

381
 // Enable this option for Toshiba steppers
381
 // Enable this option for Toshiba steppers
382
 //#define CONFIG_STEPPERS_TOSHIBA
382
 //#define CONFIG_STEPPERS_TOSHIBA
383
 
383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384
 // @section homing
388
 // @section homing
385
 
389
 
390
+// Specify here all the endstop connectors that are connected to any endstop or probe.
391
+// Almost all printers will be using one per axis. Probes will use one or more of the
392
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
393
+//#define USE_XMIN_PLUG
394
+//#define USE_YMIN_PLUG
395
+#define USE_ZMIN_PLUG // a Z probe
396
+#define USE_XMAX_PLUG
397
+#define USE_YMAX_PLUG
398
+#define USE_ZMAX_PLUG
399
+
386
 // coarse Endstop Settings
400
 // coarse Endstop Settings
387
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388
 
402
 
405
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
419
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
406
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
420
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
407
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
421
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
408
-//#define DISABLE_MAX_ENDSTOPS
409
-#define DISABLE_MIN_ENDSTOPS // Deltas only use min endstops for probing.
410
 
422
 
411
 //===========================================================================
423
 //===========================================================================
412
 //============================= Z Probe Options =============================
424
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

381
 // Enable this option for Toshiba steppers
381
 // Enable this option for Toshiba steppers
382
 //#define CONFIG_STEPPERS_TOSHIBA
382
 //#define CONFIG_STEPPERS_TOSHIBA
383
 
383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384
 // @section homing
388
 // @section homing
385
 
389
 
390
+// Specify here all the endstop connectors that are connected to any endstop or probe.
391
+// Almost all printers will be using one per axis. Probes will use one or more of the
392
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
393
+//#define USE_XMIN_PLUG
394
+//#define USE_YMIN_PLUG
395
+//#define USE_ZMIN_PLUG
396
+#define USE_XMAX_PLUG
397
+#define USE_YMAX_PLUG
398
+#define USE_ZMAX_PLUG
399
+
386
 // coarse Endstop Settings
400
 // coarse Endstop Settings
387
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388
 
402
 
405
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
419
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
406
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
420
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
407
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
421
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
408
-//#define DISABLE_MAX_ENDSTOPS
409
-//#define DISABLE_MIN_ENDSTOPS // Deltas only use min endstops for probing.
410
 
422
 
411
 //===========================================================================
423
 //===========================================================================
412
 //============================= Z Probe Options =============================
424
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

370
 // Enable this option for Toshiba steppers
370
 // Enable this option for Toshiba steppers
371
 //#define CONFIG_STEPPERS_TOSHIBA
371
 //#define CONFIG_STEPPERS_TOSHIBA
372
 
372
 
373
+//===========================================================================
374
+//============================== Endstop Settings ===========================
375
+//===========================================================================
376
+
373
 // @section homing
377
 // @section homing
374
 
378
 
379
+// Specify here all the endstop connectors that are connected to any endstop or probe.
380
+// Almost all printers will be using one per axis. Probes will use one or more of the
381
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
382
+//#define USE_XMIN_PLUG
383
+//#define USE_YMIN_PLUG
384
+#define USE_ZMIN_PLUG // a Z probe
385
+#define USE_XMAX_PLUG
386
+#define USE_YMAX_PLUG
387
+#define USE_ZMAX_PLUG
388
+
375
 // coarse Endstop Settings
389
 // coarse Endstop Settings
376
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
390
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
377
 
391
 
394
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
408
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
395
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
409
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
396
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
410
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
397
-//#define DISABLE_MAX_ENDSTOPS
398
-//#define DISABLE_MIN_ENDSTOPS // Deltas only use min endstops for probing.
399
 
411
 
400
 //===========================================================================
412
 //===========================================================================
401
 //============================= Z Probe Options =============================
413
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/makibox/Configuration.h View File

349
 // Enable this option for Toshiba steppers
349
 // Enable this option for Toshiba steppers
350
 //#define CONFIG_STEPPERS_TOSHIBA
350
 //#define CONFIG_STEPPERS_TOSHIBA
351
 
351
 
352
+//===========================================================================
353
+//============================== Endstop Settings ===========================
354
+//===========================================================================
355
+
352
 // @section homing
356
 // @section homing
353
 
357
 
358
+// Specify here all the endstop connectors that are connected to any endstop or probe.
359
+// Almost all printers will be using one per axis. Probes will use one or more of the
360
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
361
+#define USE_XMIN_PLUG
362
+#define USE_YMIN_PLUG
363
+#define USE_ZMIN_PLUG
364
+//#define USE_XMAX_PLUG
365
+//#define USE_YMAX_PLUG
366
+//#define USE_ZMAX_PLUG
367
+
354
 // coarse Endstop Settings
368
 // coarse Endstop Settings
355
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
369
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
356
 
370
 
373
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
387
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
374
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
388
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
375
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
389
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
376
-//#define DISABLE_MAX_ENDSTOPS
377
-//#define DISABLE_MIN_ENDSTOPS
378
 
390
 
379
 //===========================================================================
391
 //===========================================================================
380
 //============================= Z Probe Options =============================
392
 //============================= Z Probe Options =============================

+ 14
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

336
 // Enable this option for Toshiba steppers
336
 // Enable this option for Toshiba steppers
337
 #define CONFIG_STEPPERS_TOSHIBA
337
 #define CONFIG_STEPPERS_TOSHIBA
338
 
338
 
339
+//===========================================================================
340
+//============================== Endstop Settings ===========================
341
+//===========================================================================
342
+
339
 // @section homing
343
 // @section homing
340
 
344
 
345
+// Specify here all the endstop connectors that are connected to any endstop or probe.
346
+// Almost all printers will be using one per axis. Probes will use one or more of the
347
+// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
348
+#define USE_XMIN_PLUG
349
+#define USE_YMIN_PLUG
350
+#define USE_ZMIN_PLUG
351
+//#define USE_XMAX_PLUG
352
+//#define USE_YMAX_PLUG
353
+//#define USE_ZMAX_PLUG
354
+
341
 // coarse Endstop Settings
355
 // coarse Endstop Settings
342
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
356
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
343
 
357
 
360
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
374
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
361
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
375
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
362
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
376
 const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363
-//#define DISABLE_MAX_ENDSTOPS
364
-//#define DISABLE_MIN_ENDSTOPS
365
 
377
 
366
 //===========================================================================
378
 //===========================================================================
367
 //============================= Z Probe Options =============================
379
 //============================= Z Probe Options =============================

+ 14
- 32
Marlin/pins.h View File

209
   #endif
209
   #endif
210
 #endif
210
 #endif
211
 
211
 
212
-#if ENABLED(DISABLE_MAX_ENDSTOPS)
213
-  #undef X_MAX_PIN
214
-  #undef Y_MAX_PIN
215
-  #undef Z_MAX_PIN
216
-  #define X_MAX_PIN          -1
217
-  #define Y_MAX_PIN          -1
218
-  #define Z_MAX_PIN          -1
219
-#endif
220
-
221
-#if ENABLED(DISABLE_MIN_ENDSTOPS)
222
-  #undef X_MIN_PIN
223
-  #undef Y_MIN_PIN
224
-  #undef Z_MIN_PIN
225
-  #define X_MIN_PIN          -1
226
-  #define Y_MIN_PIN          -1
227
-  #define Z_MIN_PIN          -1
228
-#endif
229
-
230
 #if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) || DISABLED(Z_MIN_PROBE_ENDSTOP) // Allow code to compile regardless of Z_MIN_PROBE_ENDSTOP setting.
212
 #if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) || DISABLED(Z_MIN_PROBE_ENDSTOP) // Allow code to compile regardless of Z_MIN_PROBE_ENDSTOP setting.
231
   #undef Z_MIN_PROBE_PIN
213
   #undef Z_MIN_PROBE_PIN
232
   #define Z_MIN_PROBE_PIN    -1
214
   #define Z_MIN_PROBE_PIN    -1
233
 #endif
215
 #endif
234
 
216
 
235
-#if ENABLED(DISABLE_XMAX_ENDSTOP)
217
+#if DISABLED(USE_XMAX_PLUG)
236
   #undef X_MAX_PIN
218
   #undef X_MAX_PIN
237
   #define X_MAX_PIN          -1
219
   #define X_MAX_PIN          -1
238
 #endif
220
 #endif
239
 
221
 
240
-#if ENABLED(DISABLE_XMIN_ENDSTOP)
241
-  #undef X_MIN_PIN
242
-  #define X_MIN_PIN          -1
243
-#endif
244
-
245
-#if ENABLED(DISABLE_YMAX_ENDSTOP)
222
+#if DISABLED(USE_YMAX_PLUG)
246
   #undef Y_MAX_PIN
223
   #undef Y_MAX_PIN
247
   #define Y_MAX_PIN          -1
224
   #define Y_MAX_PIN          -1
248
 #endif
225
 #endif
249
 
226
 
250
-#if ENABLED(DISABLE_YMIN_ENDSTOP)
251
-  #undef Y_MIN_PIN
252
-  #define Y_MIN_PIN          -1
253
-#endif
254
-
255
-#if ENABLED(DISABLE_ZMAX_ENDSTOP)
227
+#if DISABLED(USE_ZMAX_PLUG)
256
   #undef Z_MAX_PIN
228
   #undef Z_MAX_PIN
257
   #define Z_MAX_PIN          -1
229
   #define Z_MAX_PIN          -1
258
 #endif
230
 #endif
259
 
231
 
260
-#if ENABLED(DISABLE_ZMIN_ENDSTOP)
232
+#if DISABLED(USE_XMIN_PLUG)
233
+  #undef X_MIN_PIN
234
+  #define X_MIN_PIN          -1
235
+#endif
236
+
237
+#if DISABLED(USE_YMIN_PLUG)
238
+  #undef Y_MIN_PIN
239
+  #define Y_MIN_PIN          -1
240
+#endif
241
+
242
+#if DISABLED(USE_ZMIN_PLUG)
261
   #undef Z_MIN_PIN
243
   #undef Z_MIN_PIN
262
   #define Z_MIN_PIN          -1
244
   #define Z_MIN_PIN          -1
263
 #endif
245
 #endif

+ 0
- 2
Marlin/pins_FELIX2.h View File

29
 #undef HEATER_1_PIN
29
 #undef HEATER_1_PIN
30
 #define HEATER_1_PIN        7 // EXTRUDER 2
30
 #define HEATER_1_PIN        7 // EXTRUDER 2
31
 
31
 
32
-#define DISABLE_MAX_ENDSTOPS
33
-
34
 #undef SDPOWER
32
 #undef SDPOWER
35
 #define SDPOWER             1
33
 #define SDPOWER             1
36
 
34
 

Loading…
Cancel
Save