Browse Source

Merge pull request #3065 from thinkyhead/rc_doc_tweaks

Simplified endstop configuration
Scott Lahteine 8 years ago
parent
commit
c045ec8cb3
38 changed files with 343 additions and 125 deletions
  1. 52
    3
      Marlin/Conditionals.h
  2. 14
    2
      Marlin/Configuration.h
  3. 1
    3
      Marlin/Configuration_adv.h
  4. 21
    4
      Marlin/SanityCheck.h
  5. 14
    2
      Marlin/example_configurations/Felix/Configuration.h
  6. 14
    2
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  7. 1
    3
      Marlin/example_configurations/Felix/Configuration_adv.h
  8. 14
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  9. 1
    3
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  10. 1
    3
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  11. 14
    2
      Marlin/example_configurations/K8200/Configuration.h
  12. 1
    3
      Marlin/example_configurations/K8200/Configuration_adv.h
  13. 14
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  14. 14
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  15. 1
    3
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  16. 14
    2
      Marlin/example_configurations/SCARA/Configuration.h
  17. 1
    3
      Marlin/example_configurations/SCARA/Configuration_adv.h
  18. 14
    2
      Marlin/example_configurations/TAZ4/Configuration.h
  19. 1
    3
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  20. 14
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  21. 1
    3
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  22. 14
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  23. 14
    2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  24. 1
    3
      Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
  25. 14
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  26. 1
    3
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  27. 14
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  28. 1
    3
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  29. 14
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  30. 1
    3
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  31. 1
    3
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  32. 14
    2
      Marlin/example_configurations/makibox/Configuration.h
  33. 1
    3
      Marlin/example_configurations/makibox/Configuration_adv.h
  34. 14
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  35. 1
    3
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  36. 2
    2
      Marlin/macros.h
  37. 14
    32
      Marlin/pins.h
  38. 0
    2
      Marlin/pins_FELIX2.h

+ 52
- 3
Marlin/Conditionals.h View File

@@ -275,17 +275,25 @@
275 275
   #include "Arduino.h"
276 276
 
277 277
   /**
278
-   * ENDSTOPPULLUPS
278
+   * Set ENDSTOPPULLUPS for unused endstop switches
279 279
    */
280 280
   #if ENABLED(ENDSTOPPULLUPS)
281
-    #if DISABLED(DISABLE_MAX_ENDSTOPS)
281
+    #if DISABLED(USE_XMAX_PLUG)
282 282
       #define ENDSTOPPULLUP_XMAX
283
+    #endif
284
+    #if DISABLED(USE_YMAX_PLUG)
283 285
       #define ENDSTOPPULLUP_YMAX
286
+    #endif
287
+    #if DISABLED(USE_ZMAX_PLUG)
284 288
       #define ENDSTOPPULLUP_ZMAX
285 289
     #endif
286
-    #if DISABLED(DISABLE_MIN_ENDSTOPS)
290
+    #if DISABLED(USE_XMIN_PLUG)
287 291
       #define ENDSTOPPULLUP_XMIN
292
+    #endif
293
+    #if DISABLED(USE_YMIN_PLUG)
288 294
       #define ENDSTOPPULLUP_YMIN
295
+    #endif
296
+    #if DISABLED(USE_ZMIN_PLUG)
289 297
       #define ENDSTOPPULLUP_ZMIN
290 298
     #endif
291 299
     #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
@@ -504,6 +512,47 @@
504 512
   #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1)
505 513
 
506 514
   /**
515
+   * Z_DUAL_ENDSTOPS endstop reassignment
516
+   */
517
+  #if ENABLED(Z_DUAL_ENDSTOPS)
518
+    #define _XMIN_ 100
519
+    #define _YMIN_ 200
520
+    #define _ZMIN_ 300
521
+    #define _XMAX_ 101
522
+    #define _YMAX_ 201
523
+    #define _ZMAX_ 301
524
+    const bool Z2_MAX_ENDSTOP_INVERTING =
525
+      #if Z2_USE_ENDSTOP == _XMAX_
526
+        X_MAX_ENDSTOP_INVERTING
527
+        #define Z2_MAX_PIN X_MAX_PIN
528
+        #undef USE_XMAX_PLUG
529
+      #elif Z2_USE_ENDSTOP == _YMAX_
530
+        Y_MAX_ENDSTOP_INVERTING
531
+        #define Z2_MAX_PIN Y_MAX_PIN
532
+        #undef USE_YMAX_PLUG
533
+      #elif Z2_USE_ENDSTOP == _ZMAX_
534
+        Z_MAX_ENDSTOP_INVERTING
535
+        #define Z2_MAX_PIN Z_MAX_PIN
536
+        #undef USE_ZMAX_PLUG
537
+      #elif Z2_USE_ENDSTOP == _XMIN_
538
+        X_MIN_ENDSTOP_INVERTING
539
+        #define Z2_MAX_PIN X_MIN_PIN
540
+        #undef USE_XMIN_PLUG
541
+      #elif Z2_USE_ENDSTOP == _YMIN_
542
+        Y_MIN_ENDSTOP_INVERTING
543
+        #define Z2_MAX_PIN Y_MIN_PIN
544
+        #undef USE_YMIN_PLUG
545
+      #elif Z2_USE_ENDSTOP == _ZMIN_
546
+        Z_MIN_ENDSTOP_INVERTING
547
+        #define Z2_MAX_PIN Z_MIN_PIN
548
+        #undef USE_ZMIN_PLUG
549
+      #else
550
+        0
551
+      #endif
552
+    ;
553
+  #endif
554
+
555
+  /**
507 556
    * Shorthand for pin tests, used wherever needed
508 557
    */
509 558
   #define HAS_TEMP_0 (PIN_EXISTS(TEMP_0) && TEMP_SENSOR_0 != 0 && TEMP_SENSOR_0 > -2)

+ 14
- 2
Marlin/Configuration.h View File

@@ -346,8 +346,22 @@
346 346
 // Enable this option for Toshiba steppers
347 347
 //#define CONFIG_STEPPERS_TOSHIBA
348 348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349 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 365
 // coarse Endstop Settings
352 366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353 367
 
@@ -370,8 +384,6 @@ const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
370 384
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
371 385
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
372 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 389
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

+ 21
- 4
Marlin/SanityCheck.h View File

@@ -420,6 +420,19 @@
420 420
 #endif
421 421
 
422 422
 /**
423
+ * Endstops
424
+ */
425
+#if DISABLED(USE_XMIN_PLUG) && DISABLED(USE_XMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _XMAX_ && Z2_USE_ENDSTOP <= _XMIN_)
426
+ #error You must enable USE_XMIN_PLUG or USE_XMAX_PLUG
427
+#elif DISABLED(USE_YMIN_PLUG) && DISABLED(USE_YMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _YMAX_ && Z2_USE_ENDSTOP <= _YMIN_)
428
+ #error You must enable USE_YMIN_PLUG or USE_YMAX_PLUG
429
+#elif DISABLED(USE_ZMIN_PLUG) && DISABLED(USE_ZMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _ZMAX_ && Z2_USE_ENDSTOP <= _ZMIN_)
430
+ #error You must enable USE_ZMIN_PLUG or USE_ZMAX_PLUG
431
+#elif ENABLED(Z_DUAL_ENDSTOPS) && !Z2_USE_ENDSTOP
432
+ #error You must set Z2_USE_ENDSTOP with Z_DUAL_ENDSTOPS
433
+#endif
434
+
435
+/**
423 436
  * Warnings for old configurations
424 437
  */
425 438
 #if WATCH_TEMP_PERIOD > 500
@@ -445,17 +458,21 @@
445 458
 #elif defined(CUSTOM_MENDEL_NAME)
446 459
   #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
447 460
 #elif defined(HAS_AUTOMATIC_VERSIONING)
448
-  #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
461
+  #error HAS_AUTOMATIC_VERSIONING is now USE_AUTOMATIC_VERSIONING. Please update your configuration.
449 462
 #elif defined(ENABLE_AUTO_BED_LEVELING)
450
-  #error ENABLE_AUTO_BED_LEVELING deprecated - use AUTO_BED_LEVELING_FEATURE instead
463
+  #error ENABLE_AUTO_BED_LEVELING is now AUTO_BED_LEVELING_FEATURE. Please update your configuration.
451 464
 #elif defined(SDSLOW)
452
-  #error SDSLOW deprecated - set SPI_SPEED to SPI_HALF_SPEED instead
465
+  #error SDSLOW deprecated. Set SPI_SPEED to SPI_HALF_SPEED instead.
453 466
 #elif defined(SDEXTRASLOW)
454
-  #error SDEXTRASLOW deprecated - set SPI_SPEED to SPI_QUARTER_SPEED instead
467
+  #error SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead.
455 468
 #elif defined(Z_RAISE_BEFORE_HOMING)
456 469
   #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
457 470
 #elif defined(FILAMENT_SENSOR)
458 471
   #error FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead.
472
+#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
473
+  #error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead.
474
+#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
475
+  #error Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2
459 476
 #endif
460 477
 
461 478
 #endif //SANITYCHECK_H

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

@@ -328,8 +328,22 @@
328 328
 // Enable this option for Toshiba steppers
329 329
 //#define CONFIG_STEPPERS_TOSHIBA
330 330
 
331
+//===========================================================================
332
+//============================== Endstop Settings ===========================
333
+//===========================================================================
334
+
331 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 347
 // coarse Endstop Settings
334 348
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
335 349
 
@@ -352,8 +366,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
352 366
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
353 367
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
354 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 371
 //============================= Z Probe Options =============================

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

@@ -325,8 +325,22 @@
325 325
 // Enable this option for Toshiba steppers
326 326
 //#define CONFIG_STEPPERS_TOSHIBA
327 327
 
328
+//===========================================================================
329
+//============================== Endstop Settings ===========================
330
+//===========================================================================
331
+
328 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 344
 // coarse Endstop Settings
331 345
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
332 346
 
@@ -349,8 +363,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
349 363
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
350 364
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
351 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 368
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -338,8 +338,22 @@
338 338
 // Enable this option for Toshiba steppers
339 339
 //#define CONFIG_STEPPERS_TOSHIBA
340 340
 
341
+//===========================================================================
342
+//============================== Endstop Settings ===========================
343
+//===========================================================================
344
+
341 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 357
 // coarse Endstop Settings
344 358
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
345 359
 
@@ -362,8 +376,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
362 376
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363 377
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
364 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 381
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

+ 1
- 3
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -363,8 +363,22 @@
363 363
 // Enable this option for Toshiba steppers
364 364
 //#define CONFIG_STEPPERS_TOSHIBA
365 365
 
366
+//===========================================================================
367
+//============================== Endstop Settings ===========================
368
+//===========================================================================
369
+
366 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 382
 // coarse Endstop Settings
369 383
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
370 384
 
@@ -387,8 +401,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
387 401
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
388 402
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
389 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 406
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -207,9 +207,7 @@
207 207
   //#define Z_DUAL_ENDSTOPS
208 208
 
209 209
   #if ENABLED(Z_DUAL_ENDSTOPS)
210
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
211
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
212
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
210
+    #define Z2_USE_ENDSTOP _XMAX_
213 211
   #endif
214 212
 
215 213
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -346,8 +346,22 @@
346 346
 // Enable this option for Toshiba steppers
347 347
 //#define CONFIG_STEPPERS_TOSHIBA
348 348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349 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 365
 // coarse Endstop Settings
352 366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353 367
 
@@ -370,8 +384,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
370 384
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
371 385
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
372 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 389
 //============================= Z Probe Options =============================

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

@@ -340,8 +340,22 @@
340 340
 // Enable this option for Toshiba steppers
341 341
 //#define CONFIG_STEPPERS_TOSHIBA
342 342
 
343
+//===========================================================================
344
+//============================== Endstop Settings ===========================
345
+//===========================================================================
346
+
343 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 359
 // coarse Endstop Settings
346 360
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
347 361
 
@@ -364,8 +378,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
364 378
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
365 379
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
366 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 383
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -354,8 +354,22 @@
354 354
 // Enable this option for Toshiba steppers
355 355
 //#define CONFIG_STEPPERS_TOSHIBA
356 356
 
357
+//===========================================================================
358
+//============================== Endstop Settings ===========================
359
+//===========================================================================
360
+
357 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 373
 // coarse Endstop Settings
360 374
 //#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
361 375
 
@@ -378,8 +392,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
378 392
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
379 393
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
380 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 397
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -367,8 +367,22 @@
367 367
 // Enable this option for Toshiba steppers
368 368
 //#define CONFIG_STEPPERS_TOSHIBA
369 369
 
370
+//===========================================================================
371
+//============================== Endstop Settings ===========================
372
+//===========================================================================
373
+
370 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 386
 // coarse Endstop Settings
373 387
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
374 388
 
@@ -391,8 +405,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
391 405
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
392 406
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
393 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 410
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -209,9 +209,7 @@
209 209
   //#define Z_DUAL_ENDSTOPS
210 210
 
211 211
   #if ENABLED(Z_DUAL_ENDSTOPS)
212
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
213
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
214
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
212
+    #define Z2_USE_ENDSTOP _XMAX_
215 213
   #endif
216 214
 
217 215
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -338,8 +338,22 @@
338 338
 // Enable this option for Toshiba steppers
339 339
 //#define CONFIG_STEPPERS_TOSHIBA
340 340
 
341
+//===========================================================================
342
+//============================== Endstop Settings ===========================
343
+//===========================================================================
344
+
341 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 357
 // coarse Endstop Settings
344 358
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
345 359
 
@@ -362,8 +376,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
362 376
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
363 377
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
364 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 381
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -346,8 +346,22 @@
346 346
 // Enable this option for Toshiba steppers
347 347
 //#define CONFIG_STEPPERS_TOSHIBA
348 348
 
349
+//===========================================================================
350
+//============================== Endstop Settings ===========================
351
+//===========================================================================
352
+
349 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 365
 // coarse Endstop Settings
352 366
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
353 367
 
@@ -370,8 +384,6 @@ const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
370 384
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
371 385
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
372 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 389
 //============================= Z Probe Options =============================

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

@@ -381,8 +381,22 @@
381 381
 // Enable this option for Toshiba steppers
382 382
 //#define CONFIG_STEPPERS_TOSHIBA
383 383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384 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 400
 // coarse Endstop Settings
387 401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388 402
 
@@ -405,8 +419,6 @@ const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
405 419
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
406 420
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
407 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 424
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -381,8 +381,22 @@
381 381
 // Enable this option for Toshiba steppers
382 382
 //#define CONFIG_STEPPERS_TOSHIBA
383 383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384 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 400
 // coarse Endstop Settings
387 401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388 402
 
@@ -405,8 +419,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
405 419
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
406 420
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
407 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 424
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -381,8 +381,22 @@
381 381
 // Enable this option for Toshiba steppers
382 382
 //#define CONFIG_STEPPERS_TOSHIBA
383 383
 
384
+//===========================================================================
385
+//============================== Endstop Settings ===========================
386
+//===========================================================================
387
+
384 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 400
 // coarse Endstop Settings
387 401
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
388 402
 
@@ -405,8 +419,6 @@ const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
405 419
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
406 420
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
407 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 424
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -370,8 +370,22 @@
370 370
 // Enable this option for Toshiba steppers
371 371
 //#define CONFIG_STEPPERS_TOSHIBA
372 372
 
373
+//===========================================================================
374
+//============================== Endstop Settings ===========================
375
+//===========================================================================
376
+
373 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 389
 // coarse Endstop Settings
376 390
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
377 391
 
@@ -394,8 +408,6 @@ const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
394 408
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
395 409
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
396 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 413
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -206,9 +206,7 @@
206 206
   //#define Z_DUAL_ENDSTOPS
207 207
 
208 208
   #if ENABLED(Z_DUAL_ENDSTOPS)
209
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
210
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
211
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
209
+    #define Z2_USE_ENDSTOP _XMAX_
212 210
   #endif
213 211
 
214 212
 #endif // Z_DUAL_STEPPER_DRIVERS

+ 1
- 3
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -349,8 +349,22 @@
349 349
 // Enable this option for Toshiba steppers
350 350
 //#define CONFIG_STEPPERS_TOSHIBA
351 351
 
352
+//===========================================================================
353
+//============================== Endstop Settings ===========================
354
+//===========================================================================
355
+
352 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 368
 // coarse Endstop Settings
355 369
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
356 370
 
@@ -373,8 +387,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
373 387
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
374 388
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
375 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 392
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

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

@@ -336,8 +336,22 @@
336 336
 // Enable this option for Toshiba steppers
337 337
 #define CONFIG_STEPPERS_TOSHIBA
338 338
 
339
+//===========================================================================
340
+//============================== Endstop Settings ===========================
341
+//===========================================================================
342
+
339 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 355
 // coarse Endstop Settings
342 356
 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
343 357
 
@@ -360,8 +374,6 @@ const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
360 374
 const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
361 375
 const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
362 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 379
 //============================= Z Probe Options =============================

+ 1
- 3
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -201,9 +201,7 @@
201 201
   //#define Z_DUAL_ENDSTOPS
202 202
 
203 203
   #if ENABLED(Z_DUAL_ENDSTOPS)
204
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
205
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
206
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
204
+    #define Z2_USE_ENDSTOP _XMAX_
207 205
   #endif
208 206
 
209 207
 #endif // Z_DUAL_STEPPER_DRIVERS

+ 2
- 2
Marlin/macros.h View File

@@ -24,8 +24,8 @@
24 24
 #define MACROS_H
25 25
 
26 26
 // Macros to make a string from a macro
27
-#define STRINGIFY_(n) #n
28
-#define STRINGIFY(n) STRINGIFY_(n)
27
+#define STRINGIFY_(M) #M
28
+#define STRINGIFY(M) STRINGIFY_(M)
29 29
 
30 30
 // Macros for bit masks
31 31
 #define TEST(n,b) (((n)&_BV(b))!=0)

+ 14
- 32
Marlin/pins.h View File

@@ -209,55 +209,37 @@
209 209
   #endif
210 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 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 213
   #undef Z_MIN_PROBE_PIN
232 214
   #define Z_MIN_PROBE_PIN    -1
233 215
 #endif
234 216
 
235
-#if ENABLED(DISABLE_XMAX_ENDSTOP)
217
+#if DISABLED(USE_XMAX_PLUG)
236 218
   #undef X_MAX_PIN
237 219
   #define X_MAX_PIN          -1
238 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 223
   #undef Y_MAX_PIN
247 224
   #define Y_MAX_PIN          -1
248 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 228
   #undef Z_MAX_PIN
257 229
   #define Z_MAX_PIN          -1
258 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 243
   #undef Z_MIN_PIN
262 244
   #define Z_MIN_PIN          -1
263 245
 #endif

+ 0
- 2
Marlin/pins_FELIX2.h View File

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

Loading…
Cancel
Save