ソースを参照

Merge pull request #10121 from thinkyhead/bf2_misc_fixes_mar16

[2.0.x] Reduce size of "only one" sanity checks
Scott Lahteine 7年前
コミット
ab769590a1
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更164行の追加345行の削除
  1. 1
    1
      Marlin/src/inc/Conditionals_LCD.h
  2. 163
    344
      Marlin/src/inc/SanityCheck.h

+ 1
- 1
Marlin/src/inc/Conditionals_LCD.h ファイルの表示

@@ -431,7 +431,7 @@
431 431
   #else
432 432
     #define E_STEPPERS    1
433 433
   #endif
434
-  #define E_MANUAL        E_STEPPERS
434
+  #define E_MANUAL        EXTRUDERS
435 435
 #elif ENABLED(MIXING_EXTRUDER)
436 436
   #define E_STEPPERS      MIXING_STEPPERS
437 437
   #define E_MANUAL        1

+ 163
- 344
Marlin/src/inc/SanityCheck.h ファイルの表示

@@ -649,36 +649,18 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
649 649
 /**
650 650
  * Allow only one kinematic type to be defined
651 651
  */
652
-static_assert(1 >= 0
653
-  #if ENABLED(DELTA)
654
-    + 1
655
-  #endif
656
-  #if ENABLED(MORGAN_SCARA)
657
-    + 1
658
-  #endif
659
-  #if ENABLED(MAKERARM_SCARA)
660
-    + 1
661
-  #endif
662
-  #if ENABLED(COREXY)
663
-    + 1
664
-  #endif
665
-  #if ENABLED(COREXZ)
666
-    + 1
667
-  #endif
668
-  #if ENABLED(COREYZ)
669
-    + 1
670
-  #endif
671
-  #if ENABLED(COREYX)
672
-    + 1
673
-  #endif
674
-  #if ENABLED(COREZX)
675
-    + 1
676
-  #endif
677
-  #if ENABLED(COREZY)
678
-    + 1
679
-  #endif
680
-  , "Please enable only one of DELTA, MORGAN_SCARA, MAKERARM_SCARA, COREXY, COREYX, COREXZ, COREZX, COREYZ, or COREZY."
681
-);
652
+#if 1 < 0 \
653
+  + ENABLED(DELTA) \
654
+  + ENABLED(MORGAN_SCARA) \
655
+  + ENABLED(MAKERARM_SCARA) \
656
+  + ENABLED(COREXY) \
657
+  + ENABLED(COREXZ) \
658
+  + ENABLED(COREYZ) \
659
+  + ENABLED(COREYX) \
660
+  + ENABLED(COREZX) \
661
+  + ENABLED(COREZY)
662
+  #error "Please enable only one of DELTA, MORGAN_SCARA, MAKERARM_SCARA, COREXY, COREYX, COREXZ, COREZX, COREYZ, or COREZY."
663
+#endif
682 664
 
683 665
 /**
684 666
  * Delta requirements
@@ -706,30 +688,16 @@ static_assert(1 >= 0
706 688
 /**
707 689
  * Allow only one probe option to be defined
708 690
  */
709
-static_assert(1 >= 0
710
-  #if ENABLED(PROBE_MANUALLY)
711
-    + 1
712
-  #endif
713
-  #if ENABLED(FIX_MOUNTED_PROBE)
714
-    + 1
715
-  #endif
716
-  #if HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)
717
-    + 1
718
-  #endif
719
-  #if ENABLED(BLTOUCH)
720
-    + 1
721
-  #endif
722
-  #if ENABLED(SOLENOID_PROBE)
723
-    + 1
724
-  #endif
725
-  #if ENABLED(Z_PROBE_ALLEN_KEY)
726
-    + 1
727
-  #endif
728
-  #if ENABLED(Z_PROBE_SLED)
729
-    + 1
730
-  #endif
731
-  , "Please enable only one probe option: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo."
732
-);
691
+#if 1 < 0 \
692
+  + ENABLED(PROBE_MANUALLY) \
693
+  + ENABLED(FIX_MOUNTED_PROBE) \
694
+  + (HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)) \
695
+  + ENABLED(BLTOUCH) \
696
+  + ENABLED(SOLENOID_PROBE) \
697
+  + ENABLED(Z_PROBE_ALLEN_KEY) \
698
+  + ENABLED(Z_PROBE_SLED)
699
+  #error "Please enable only one probe option: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo."
700
+#endif
733 701
 
734 702
 #if HAS_BED_PROBE
735 703
 
@@ -820,24 +788,14 @@ static_assert(1 >= 0
820 788
 /**
821 789
  * Allow only one bed leveling option to be defined
822 790
  */
823
-static_assert(1 >= 0
824
-  #if ENABLED(AUTO_BED_LEVELING_LINEAR)
825
-    + 1
826
-  #endif
827
-  #if ENABLED(AUTO_BED_LEVELING_3POINT)
828
-    + 1
829
-  #endif
830
-  #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
831
-    + 1
832
-  #endif
833
-  #if ENABLED(AUTO_BED_LEVELING_UBL)
834
-    + 1
835
-  #endif
836
-  #if ENABLED(MESH_BED_LEVELING)
837
-    + 1
838
-  #endif
839
-  , "Select only one of: MESH_BED_LEVELING, AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
840
-);
791
+#if 1 < 0 \
792
+  + ENABLED(AUTO_BED_LEVELING_LINEAR) \
793
+  + ENABLED(AUTO_BED_LEVELING_3POINT) \
794
+  + ENABLED(AUTO_BED_LEVELING_BILINEAR) \
795
+  + ENABLED(AUTO_BED_LEVELING_UBL) \
796
+  + ENABLED(MESH_BED_LEVELING)
797
+  #error "Select only one of: MESH_BED_LEVELING, AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
798
+#endif
841 799
 
842 800
 /**
843 801
  * Bed Leveling Requirements
@@ -1382,8 +1340,8 @@ static_assert(1 >= 0
1382 1340
  *       AZSMZ_12864 => ULTIMAKERCONTROLLER
1383 1341
  *       PANEL_ONE => ULTIMAKERCONTROLLER
1384 1342
  */
1385
-static_assert(1 >= 0
1386
-  #if ENABLED(ULTIMAKERCONTROLLER) \
1343
+#if 1 < 0 \
1344
+  + (     ENABLED(ULTIMAKERCONTROLLER) \
1387 1345
       && DISABLED(SAV_3DGLCD) \
1388 1346
       && DISABLED(miniVIKI) \
1389 1347
       && DISABLED(VIKI2) \
@@ -1391,115 +1349,46 @@ static_assert(1 >= 0
1391 1349
       && DISABLED(AZSMZ_12864) \
1392 1350
       && DISABLED(PANEL_ONE) \
1393 1351
       && DISABLED(MKS_12864OLED) \
1394
-      && DISABLED(MKS_12864OLED_SSD1306)
1395
-    + 1
1396
-  #endif
1397
-  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
1352
+      && DISABLED(MKS_12864OLED_SSD1306) ) \
1353
+  + (     ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
1398 1354
       && DISABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) \
1399 1355
       && DISABLED(LCD_FOR_MELZI) \
1400 1356
       && DISABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602) \
1401 1357
       && DISABLED(MKS_12864OLED) \
1402
-      && DISABLED(MKS_12864OLED_SSD1306)
1403
-    + 1
1404
-  #endif
1405
-  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) \
1406
-      && DISABLED(BQ_LCD_SMART_CONTROLLER)
1407
-    + 1
1408
-  #endif
1409
-  #if ENABLED(LCD_FOR_MELZI)
1410
-    + 1
1411
-  #endif
1412
-  #if ENABLED(MKS_12864OLED)
1413
-    + 1
1414
-  #endif
1415
-  #if ENABLED(MKS_12864OLED_SSD1306)
1416
-    + 1
1417
-  #endif
1418
-  #if ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
1419
-    + 1
1420
-  #endif
1421
-  #if ENABLED(CARTESIO_UI)
1422
-    + 1
1423
-  #endif
1424
-  #if ENABLED(PANEL_ONE)
1425
-    + 1
1426
-  #endif
1427
-  #if ENABLED(MAKRPANEL)
1428
-    + 1
1429
-  #endif
1430
-  #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
1431
-    + 1
1432
-  #endif
1433
-  #if ENABLED(VIKI2)
1434
-    + 1
1435
-  #endif
1436
-  #if ENABLED(miniVIKI)
1437
-    + 1
1438
-  #endif
1439
-  #if ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
1440
-    + 1
1441
-  #endif
1442
-  #if ENABLED(AZSMZ_12864)
1443
-    + 1
1444
-  #endif
1445
-  #if ENABLED(G3D_PANEL)
1446
-    + 1
1447
-  #endif
1448
-  #if ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)
1449
-    + 1
1450
-  #endif
1451
-  #if ENABLED(MKS_MINI_12864)
1452
-    + 1
1453
-  #endif
1454
-  #if ENABLED(REPRAPWORLD_KEYPAD) \
1455
-      && DISABLED(CARTESIO_UI) \
1456
-      && DISABLED(ZONESTAR_LCD)
1457
-    + 1
1458
-  #endif
1459
-  #if ENABLED(RIGIDBOT_PANEL)
1460
-    + 1
1461
-  #endif
1462
-  #if ENABLED(RA_CONTROL_PANEL)
1463
-    + 1
1464
-  #endif
1465
-  #if ENABLED(LCD_SAINSMART_I2C_1602)
1466
-    + 1
1467
-  #endif
1468
-  #if ENABLED(LCD_SAINSMART_I2C_2004)
1469
-    + 1
1470
-  #endif
1471
-  #if ENABLED(LCM1602)
1472
-    + 1
1473
-  #endif
1474
-  #if ENABLED(LCD_I2C_PANELOLU2)
1475
-    + 1
1476
-  #endif
1477
-  #if ENABLED(LCD_I2C_VIKI)
1478
-    + 1
1479
-  #endif
1480
-  #if ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2) && DISABLED(MKS_12864OLED_SSD1306)
1481
-    + 1
1482
-  #endif
1483
-  #if ENABLED(SAV_3DLCD)
1484
-    + 1
1485
-  #endif
1486
-  #if ENABLED(BQ_LCD_SMART_CONTROLLER)
1487
-    + 1
1488
-  #endif
1489
-  #if ENABLED(SAV_3DGLCD)
1490
-    + 1
1491
-  #endif
1492
-  #if ENABLED(OLED_PANEL_TINYBOY2)
1493
-    + 1
1494
-  #endif
1495
-  #if ENABLED(ZONESTAR_LCD)
1496
-    + 1
1497
-  #endif
1498
-  #if ENABLED(ULTI_CONTROLLER)
1499
-    + 1
1500
-  #endif
1501
-  , "Please select no more than one LCD controller option."
1502
-);
1358
+      && DISABLED(MKS_12864OLED_SSD1306) ) \
1359
+  + (ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && DISABLED(BQ_LCD_SMART_CONTROLLER)) \
1360
+  + ENABLED(LCD_FOR_MELZI) \
1361
+  + ENABLED(MKS_12864OLED) \
1362
+  + ENABLED(MKS_12864OLED_SSD1306) \
1363
+  + ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602) \
1364
+  + ENABLED(CARTESIO_UI) \
1365
+  + ENABLED(PANEL_ONE) \
1366
+  + ENABLED(MAKRPANEL) \
1367
+  + ENABLED(REPRAPWORLD_GRAPHICAL_LCD) \
1368
+  + ENABLED(VIKI2) \
1369
+  + ENABLED(miniVIKI) \
1370
+  + ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
1371
+  + ENABLED(AZSMZ_12864) \
1372
+  + ENABLED(G3D_PANEL) \
1373
+  + (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)) \
1374
+  + ENABLED(MKS_MINI_12864) \
1375
+  + (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI) && DISABLED(ZONESTAR_LCD)) \
1376
+  + ENABLED(RIGIDBOT_PANEL) \
1377
+  + ENABLED(RA_CONTROL_PANEL) \
1378
+  + ENABLED(LCD_SAINSMART_I2C_1602) \
1379
+  + ENABLED(LCD_SAINSMART_I2C_2004) \
1380
+  + ENABLED(LCM1602) \
1381
+  + ENABLED(LCD_I2C_PANELOLU2) \
1382
+  + ENABLED(LCD_I2C_VIKI) \
1383
+  + (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2) && DISABLED(MKS_12864OLED_SSD1306)) \
1384
+  + ENABLED(SAV_3DLCD) \
1385
+  + ENABLED(BQ_LCD_SMART_CONTROLLER) \
1386
+  + ENABLED(SAV_3DGLCD) \
1387
+  + ENABLED(OLED_PANEL_TINYBOY2) \
1388
+  + ENABLED(ZONESTAR_LCD) \
1389
+  + ENABLED(ULTI_CONTROLLER)
1390
+  #error "Please select no more than one LCD controller option."
1391
+#endif
1503 1392
 
1504 1393
 /**
1505 1394
  * Make sure HAVE_TMC26X is warranted
@@ -1604,6 +1493,24 @@ static_assert(1 >= 0
1604 1493
   #error "HAVE_TMC2208 requires at least one TMC2208 stepper to be set."
1605 1494
 #endif
1606 1495
 
1496
+/**
1497
+ * TMC2208 software UART and ENDSTOP_INTERRUPTS both use pin change interrupts (PCI)
1498
+ */
1499
+#if ENABLED(HAVE_TMC2208) && ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && !( \
1500
+       defined(X_HARDWARE_SERIAL ) \
1501
+    || defined(X2_HARDWARE_SERIAL) \
1502
+    || defined(Y_HARDWARE_SERIAL ) \
1503
+    || defined(Y2_HARDWARE_SERIAL) \
1504
+    || defined(Z_HARDWARE_SERIAL ) \
1505
+    || defined(Z2_HARDWARE_SERIAL) \
1506
+    || defined(E0_HARDWARE_SERIAL) \
1507
+    || defined(E1_HARDWARE_SERIAL) \
1508
+    || defined(E2_HARDWARE_SERIAL) \
1509
+    || defined(E3_HARDWARE_SERIAL) \
1510
+    || defined(E4_HARDWARE_SERIAL) )
1511
+  #error "select hardware UART for TMC2208 to use both TMC2208 and ENDSTOP_INTERRUPTS_FEATURE."
1512
+#endif
1513
+
1607 1514
 #if ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP)
1608 1515
   #error "Enable STEALTHCHOP to use HYBRID_THRESHOLD."
1609 1516
 #endif
@@ -1634,171 +1541,83 @@ static_assert(1 >= 0
1634 1541
 /**
1635 1542
  * Check that each axis has only one driver selected
1636 1543
  */
1637
-static_assert(1 >= 0
1638
-  #if ENABLED(X_IS_TMC26X)
1639
-    + 1
1640
-  #endif
1641
-  #if ENABLED(X_IS_TMC2130)
1642
-    + 1
1643
-  #endif
1644
-  #if ENABLED(X_IS_TMC2208)
1645
-    + 1
1646
-  #endif
1647
-  #if ENABLED(X_IS_L6470)
1648
-    + 1
1649
-  #endif
1650
-  , "Please enable only one stepper driver for the X axis."
1651
-);
1652
-static_assert(1 >= 0
1653
-  #if ENABLED(X2_IS_TMC26X)
1654
-    + 1
1655
-  #endif
1656
-  #if ENABLED(X2_IS_TMC2130)
1657
-    + 1
1658
-  #endif
1659
-  #if ENABLED(X2_IS_TMC2208)
1660
-    + 1
1661
-  #endif
1662
-  #if ENABLED(X2_IS_L6470)
1663
-    + 1
1664
-  #endif
1665
-  , "Please enable only one stepper driver for the X2 axis."
1666
-);
1667
-static_assert(1 >= 0
1668
-  #if ENABLED(Y_IS_TMC26X)
1669
-    + 1
1670
-  #endif
1671
-  #if ENABLED(Y_IS_TMC2130)
1672
-    + 1
1673
-  #endif
1674
-  #if ENABLED(Y_IS_TMC2208)
1675
-    + 1
1676
-  #endif
1677
-  #if ENABLED(Y_IS_L6470)
1678
-    + 1
1679
-  #endif
1680
-  , "Please enable only one stepper driver for the Y axis."
1681
-);
1682
-static_assert(1 >= 0
1683
-  #if ENABLED(Y2_IS_TMC26X)
1684
-    + 1
1685
-  #endif
1686
-  #if ENABLED(Y2_IS_TMC2130)
1687
-    + 1
1688
-  #endif
1689
-  #if ENABLED(Y2_IS_TMC2208)
1690
-    + 1
1691
-  #endif
1692
-  #if ENABLED(Y2_IS_L6470)
1693
-    + 1
1694
-  #endif
1695
-  , "Please enable only one stepper driver for the Y2 axis."
1696
-);
1697
-static_assert(1 >= 0
1698
-  #if ENABLED(Z_IS_TMC26X)
1699
-    + 1
1700
-  #endif
1701
-  #if ENABLED(Z_IS_TMC2130)
1702
-    + 1
1703
-  #endif
1704
-  #if ENABLED(Z_IS_TMC2208)
1705
-    + 1
1706
-  #endif
1707
-  #if ENABLED(Z_IS_L6470)
1708
-    + 1
1709
-  #endif
1710
-  , "Please enable only one stepper driver for the Z axis."
1711
-);
1712
-static_assert(1 >= 0
1713
-  #if ENABLED(Z2_IS_TMC26X)
1714
-    + 1
1715
-  #endif
1716
-  #if ENABLED(Z2_IS_TMC2130)
1717
-    + 1
1718
-  #endif
1719
-  #if ENABLED(Z2_IS_TMC2208)
1720
-    + 1
1721
-  #endif
1722
-  #if ENABLED(Z2_IS_L6470)
1723
-    + 1
1724
-  #endif
1725
-  , "Please enable only one stepper driver for the Z2 axis."
1726
-);
1727
-static_assert(1 >= 0
1728
-  #if ENABLED(E0_IS_TMC26X)
1729
-    + 1
1730
-  #endif
1731
-  #if ENABLED(E0_IS_TMC2130)
1732
-    + 1
1733
-  #endif
1734
-  #if ENABLED(E0_IS_TMC2208)
1735
-    + 1
1736
-  #endif
1737
-  #if ENABLED(E0_IS_L6470)
1738
-    + 1
1739
-  #endif
1740
-  , "Please enable only one stepper driver for the E0 axis."
1741
-);
1742
-static_assert(1 >= 0
1743
-  #if ENABLED(E1_IS_TMC26X)
1744
-    + 1
1745
-  #endif
1746
-  #if ENABLED(E1_IS_TMC2130)
1747
-    + 1
1748
-  #endif
1749
-  #if ENABLED(E1_IS_TMC2208)
1750
-    + 1
1751
-  #endif
1752
-  #if ENABLED(E1_IS_L6470)
1753
-    + 1
1754
-  #endif
1755
-  , "Please enable only one stepper driver for the E1 axis."
1756
-);
1757
-static_assert(1 >= 0
1758
-  #if ENABLED(E2_IS_TMC26X)
1759
-    + 1
1760
-  #endif
1761
-  #if ENABLED(E2_IS_TMC2130)
1762
-    + 1
1763
-  #endif
1764
-  #if ENABLED(E2_IS_TMC2208)
1765
-    + 1
1766
-  #endif
1767
-  #if ENABLED(E2_IS_L6470)
1768
-    + 1
1769
-  #endif
1770
-  , "Please enable only one stepper driver for the E2 axis."
1771
-);
1772
-static_assert(1 >= 0
1773
-  #if ENABLED(E3_IS_TMC26X)
1774
-    + 1
1775
-  #endif
1776
-  #if ENABLED(E3_IS_TMC2130)
1777
-    + 1
1778
-  #endif
1779
-  #if ENABLED(E3_IS_TMC2208)
1780
-    + 1
1781
-  #endif
1782
-  #if ENABLED(E3_IS_L6470)
1783
-    + 1
1784
-  #endif
1785
-  , "Please enable only one stepper driver for the E3 axis."
1786
-);
1787
-static_assert(1 >= 0
1788
-  #if ENABLED(E4_IS_TMC26X)
1789
-    + 1
1790
-  #endif
1791
-  #if ENABLED(E4_IS_TMC2130)
1792
-    + 1
1793
-  #endif
1794
-  #if ENABLED(E4_IS_TMC2208)
1795
-    + 1
1796
-  #endif
1797
-  #if ENABLED(E4_IS_L6470)
1798
-    + 1
1799
-  #endif
1800
-  , "Please enable only one stepper driver for the E4 axis."
1801
-);
1544
+#if 1 < 0 \
1545
+  + ENABLED(X_IS_TMC26X) \
1546
+  + ENABLED(X_IS_TMC2130) \
1547
+  + ENABLED(X_IS_TMC2208) \
1548
+  + ENABLED(X_IS_L6470)
1549
+  #error "Please enable only one stepper driver for the X axis."
1550
+#endif
1551
+#if 1 < 0 \
1552
+  + ENABLED(X2_IS_TMC26X) \
1553
+  + ENABLED(X2_IS_TMC2130) \
1554
+  + ENABLED(X2_IS_TMC2208) \
1555
+  + ENABLED(X2_IS_L6470)
1556
+  #error "Please enable only one stepper driver for the X2 axis."
1557
+#endif
1558
+#if 1 < 0 \
1559
+  + ENABLED(Y_IS_TMC26X) \
1560
+  + ENABLED(Y_IS_TMC2130) \
1561
+  + ENABLED(Y_IS_TMC2208) \
1562
+  + ENABLED(Y_IS_L6470)
1563
+  #error "Please enable only one stepper driver for the Y axis."
1564
+#endif
1565
+#if 1 < 0 \
1566
+  + ENABLED(Y2_IS_TMC26X) \
1567
+  + ENABLED(Y2_IS_TMC2130) \
1568
+  + ENABLED(Y2_IS_TMC2208) \
1569
+  + ENABLED(Y2_IS_L6470)
1570
+  #error "Please enable only one stepper driver for the Y2 axis."
1571
+#endif
1572
+#if 1 < 0 \
1573
+  + ENABLED(Z_IS_TMC26X) \
1574
+  + ENABLED(Z_IS_TMC2130) \
1575
+  + ENABLED(Z_IS_TMC2208) \
1576
+  + ENABLED(Z_IS_L6470)
1577
+  #error "Please enable only one stepper driver for the Z axis."
1578
+#endif
1579
+#if 1 < 0 \
1580
+  + ENABLED(Z2_IS_TMC26X) \
1581
+  + ENABLED(Z2_IS_TMC2130) \
1582
+  + ENABLED(Z2_IS_TMC2208) \
1583
+  + ENABLED(Z2_IS_L6470)
1584
+  #error "Please enable only one stepper driver for the Z2 axis."
1585
+#endif
1586
+#if 1 < 0 \
1587
+  + ENABLED(E0_IS_TMC26X) \
1588
+  + ENABLED(E0_IS_TMC2130) \
1589
+  + ENABLED(E0_IS_TMC2208) \
1590
+  + ENABLED(E0_IS_L6470)
1591
+  #error "Please enable only one stepper driver for the E0 axis."
1592
+#endif
1593
+#if 1 < 0 \
1594
+  + ENABLED(E1_IS_TMC26X) \
1595
+  + ENABLED(E1_IS_TMC2130) \
1596
+  + ENABLED(E1_IS_TMC2208) \
1597
+  + ENABLED(E1_IS_L6470)
1598
+  #error "Please enable only one stepper driver for the E1 axis."
1599
+#endif
1600
+#if 1 < 0 \
1601
+  + ENABLED(E2_IS_TMC26X) \
1602
+  + ENABLED(E2_IS_TMC2130) \
1603
+  + ENABLED(E2_IS_TMC2208) \
1604
+  + ENABLED(E2_IS_L6470)
1605
+  #error "Please enable only one stepper driver for the E2 axis."
1606
+#endif
1607
+#if 1 < 0 \
1608
+  + ENABLED(E3_IS_TMC26X) \
1609
+  + ENABLED(E3_IS_TMC2130) \
1610
+  + ENABLED(E3_IS_TMC2208) \
1611
+  + ENABLED(E3_IS_L6470)
1612
+  #error "Please enable only one stepper driver for the E3 axis."
1613
+#endif
1614
+#if 1 < 0 \
1615
+  + ENABLED(E4_IS_TMC26X) \
1616
+  + ENABLED(E4_IS_TMC2130) \
1617
+  + ENABLED(E4_IS_TMC2208) \
1618
+  + ENABLED(E4_IS_L6470)
1619
+  #error "Please enable only one stepper driver for the E4 axis."
1620
+#endif
1802 1621
 
1803 1622
 /**
1804 1623
  * Digipot requirement

読み込み中…
キャンセル
保存