Browse Source

Merge pull request #10093 from thinkyhead/bf2_trinamic_config

[2.0.x] Clean up Trinamic config options, sanity check
Scott Lahteine 6 years ago
parent
commit
f894209de2
No account linked to committer's email address
50 changed files with 1588 additions and 1633 deletions
  1. 30
    35
      Marlin/Configuration_adv.h
  2. 30
    35
      Marlin/src/config/default/Configuration_adv.h
  3. 30
    35
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 30
    35
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  5. 30
    35
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  6. 30
    35
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  7. 30
    35
      Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h
  8. 30
    35
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  9. 30
    35
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  10. 30
    35
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  11. 30
    35
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  12. 30
    35
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  13. 30
    35
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  14. 30
    35
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  15. 30
    35
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  16. 30
    35
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  17. 30
    35
      Marlin/src/config/examples/Felix/Configuration_adv.h
  18. 30
    35
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  19. 30
    35
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  20. 30
    35
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  21. 30
    35
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  22. 30
    35
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  23. 30
    35
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  24. 30
    35
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  25. 30
    35
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  26. 30
    35
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  27. 30
    35
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  28. 30
    35
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  29. 31
    35
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  30. 30
    35
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  31. 30
    35
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  32. 30
    35
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  33. 30
    35
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  34. 30
    35
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  35. 30
    35
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  36. 30
    35
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  37. 30
    35
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  38. 30
    35
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  39. 30
    35
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  40. 30
    35
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  41. 30
    35
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  42. 30
    35
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  43. 30
    35
      Marlin/src/config/examples/makibox/Configuration_adv.h
  44. 30
    35
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  45. 30
    35
      Marlin/src/config/examples/wt150/Configuration_adv.h
  46. 8
    2
      Marlin/src/feature/tmc_util.h
  47. 189
    15
      Marlin/src/inc/SanityCheck.h
  48. 2
    2
      Marlin/src/module/stepper.cpp
  49. 25
    26
      Marlin/src/module/stepper_indirection.cpp
  50. 13
    13
      Marlin/src/module/stepper_indirection.h

+ 30
- 35
Marlin/Configuration_adv.h View File

@@ -944,21 +944,19 @@
944 944
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
945 945
  * (https://github.com/trinamic/TMC26XStepper.git)
946 946
  */
947
-//#define HAVE_TMCDRIVER
948
-
949
-#if ENABLED(HAVE_TMCDRIVER)
950
-
951
-  //#define X_IS_TMC
952
-  //#define X2_IS_TMC
953
-  //#define Y_IS_TMC
954
-  //#define Y2_IS_TMC
955
-  //#define Z_IS_TMC
956
-  //#define Z2_IS_TMC
957
-  //#define E0_IS_TMC
958
-  //#define E1_IS_TMC
959
-  //#define E2_IS_TMC
960
-  //#define E3_IS_TMC
961
-  //#define E4_IS_TMC
947
+//#define HAVE_TMC26X
948
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
949
+  //#define X_IS_TMC26X
950
+  //#define X2_IS_TMC26X
951
+  //#define Y_IS_TMC26X
952
+  //#define Y2_IS_TMC26X
953
+  //#define Z_IS_TMC26X
954
+  //#define Z2_IS_TMC26X
955
+  //#define E0_IS_TMC26X
956
+  //#define E1_IS_TMC26X
957
+  //#define E2_IS_TMC26X
958
+  //#define E3_IS_TMC26X
959
+  //#define E4_IS_TMC26X
962 960
 
963 961
   #define X_MAX_CURRENT     1000 // in mA
964 962
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1006,7 +1004,7 @@
1006 1004
 
1007 1005
 #endif
1008 1006
 
1009
-// @section TMC2130, TMC2208
1007
+// @section tmc_smart
1010 1008
 
1011 1009
 /**
1012 1010
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1020,22 +1018,7 @@
1020 1018
  * You may also use software SPI if you wish to use general purpose IO pins.
1021 1019
  */
1022 1020
 //#define HAVE_TMC2130
1023
-
1024
-/**
1025
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1026
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1027
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1028
- * to PDN_UART without a resistor.
1029
- * The drivers can also be used with hardware serial.
1030
- *
1031
- * You'll also need the TMC2208Stepper Arduino library
1032
- * (https://github.com/teemuatlut/TMC2208Stepper).
1033
- */
1034
-//#define HAVE_TMC2208
1035
-
1036
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1037
-
1038
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1021
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1039 1022
   //#define X_IS_TMC2130
1040 1023
   //#define X2_IS_TMC2130
1041 1024
   //#define Y_IS_TMC2130
@@ -1047,7 +1030,20 @@
1047 1030
   //#define E2_IS_TMC2130
1048 1031
   //#define E3_IS_TMC2130
1049 1032
   //#define E4_IS_TMC2130
1033
+#endif
1050 1034
 
1035
+/**
1036
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1037
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1038
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1039
+ * to PDN_UART without a resistor.
1040
+ * The drivers can also be used with hardware serial.
1041
+ *
1042
+ * You'll also need the TMC2208Stepper Arduino library
1043
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1044
+ */
1045
+//#define HAVE_TMC2208
1046
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1051 1047
   //#define X_IS_TMC2208
1052 1048
   //#define X2_IS_TMC2208
1053 1049
   //#define Y_IS_TMC2208
@@ -1059,10 +1055,9 @@
1059 1055
   //#define E2_IS_TMC2208
1060 1056
   //#define E3_IS_TMC2208
1061 1057
   //#define E4_IS_TMC2208
1058
+#endif
1062 1059
 
1063
-  /**
1064
-   * Stepper driver settings
1065
-   */
1060
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1066 1061
 
1067 1062
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1068 1063
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/default/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Felix/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

@@ -944,21 +944,19 @@
944 944
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
945 945
  * (https://github.com/trinamic/TMC26XStepper.git)
946 946
  */
947
-//#define HAVE_TMCDRIVER
948
-
949
-#if ENABLED(HAVE_TMCDRIVER)
950
-
951
-  //#define X_IS_TMC
952
-  //#define X2_IS_TMC
953
-  //#define Y_IS_TMC
954
-  //#define Y2_IS_TMC
955
-  //#define Z_IS_TMC
956
-  //#define Z2_IS_TMC
957
-  //#define E0_IS_TMC
958
-  //#define E1_IS_TMC
959
-  //#define E2_IS_TMC
960
-  //#define E3_IS_TMC
961
-  //#define E4_IS_TMC
947
+//#define HAVE_TMC26X
948
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
949
+  //#define X_IS_TMC26X
950
+  //#define X2_IS_TMC26X
951
+  //#define Y_IS_TMC26X
952
+  //#define Y2_IS_TMC26X
953
+  //#define Z_IS_TMC26X
954
+  //#define Z2_IS_TMC26X
955
+  //#define E0_IS_TMC26X
956
+  //#define E1_IS_TMC26X
957
+  //#define E2_IS_TMC26X
958
+  //#define E3_IS_TMC26X
959
+  //#define E4_IS_TMC26X
962 960
 
963 961
   #define X_MAX_CURRENT     1000 // in mA
964 962
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1006,7 +1004,7 @@
1006 1004
 
1007 1005
 #endif
1008 1006
 
1009
-// @section TMC2130, TMC2208
1007
+// @section tmc_smart
1010 1008
 
1011 1009
 /**
1012 1010
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1020,22 +1018,7 @@
1020 1018
  * You may also use software SPI if you wish to use general purpose IO pins.
1021 1019
  */
1022 1020
 //#define HAVE_TMC2130
1023
-
1024
-/**
1025
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1026
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1027
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1028
- * to PDN_UART without a resistor.
1029
- * The drivers can also be used with hardware serial.
1030
- *
1031
- * You'll also need the TMC2208Stepper Arduino library
1032
- * (https://github.com/teemuatlut/TMC2208Stepper).
1033
- */
1034
-//#define HAVE_TMC2208
1035
-
1036
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1037
-
1038
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1021
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1039 1022
   //#define X_IS_TMC2130
1040 1023
   //#define X2_IS_TMC2130
1041 1024
   //#define Y_IS_TMC2130
@@ -1047,7 +1030,20 @@
1047 1030
   //#define E2_IS_TMC2130
1048 1031
   //#define E3_IS_TMC2130
1049 1032
   //#define E4_IS_TMC2130
1033
+#endif
1050 1034
 
1035
+/**
1036
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1037
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1038
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1039
+ * to PDN_UART without a resistor.
1040
+ * The drivers can also be used with hardware serial.
1041
+ *
1042
+ * You'll also need the TMC2208Stepper Arduino library
1043
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1044
+ */
1045
+//#define HAVE_TMC2208
1046
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1051 1047
   //#define X_IS_TMC2208
1052 1048
   //#define X2_IS_TMC2208
1053 1049
   //#define Y_IS_TMC2208
@@ -1059,10 +1055,9 @@
1059 1055
   //#define E2_IS_TMC2208
1060 1056
   //#define E3_IS_TMC2208
1061 1057
   //#define E4_IS_TMC2208
1058
+#endif
1062 1059
 
1063
-  /**
1064
-   * Stepper driver settings
1065
-   */
1060
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1066 1061
 
1067 1062
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1068 1063
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -951,21 +951,19 @@
951 951
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
952 952
  * (https://github.com/trinamic/TMC26XStepper.git)
953 953
  */
954
-//#define HAVE_TMCDRIVER
955
-
956
-#if ENABLED(HAVE_TMCDRIVER)
957
-
958
-  //#define X_IS_TMC
959
-  //#define X2_IS_TMC
960
-  //#define Y_IS_TMC
961
-  //#define Y2_IS_TMC
962
-  //#define Z_IS_TMC
963
-  //#define Z2_IS_TMC
964
-  //#define E0_IS_TMC
965
-  //#define E1_IS_TMC
966
-  //#define E2_IS_TMC
967
-  //#define E3_IS_TMC
968
-  //#define E4_IS_TMC
954
+//#define HAVE_TMC26X
955
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
956
+  //#define X_IS_TMC26X
957
+  //#define X2_IS_TMC26X
958
+  //#define Y_IS_TMC26X
959
+  //#define Y2_IS_TMC26X
960
+  //#define Z_IS_TMC26X
961
+  //#define Z2_IS_TMC26X
962
+  //#define E0_IS_TMC26X
963
+  //#define E1_IS_TMC26X
964
+  //#define E2_IS_TMC26X
965
+  //#define E3_IS_TMC26X
966
+  //#define E4_IS_TMC26X
969 967
 
970 968
   #define X_MAX_CURRENT     1000 // in mA
971 969
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1013,7 +1011,7 @@
1013 1011
 
1014 1012
 #endif
1015 1013
 
1016
-// @section TMC2130, TMC2208
1014
+// @section tmc_smart
1017 1015
 
1018 1016
 /**
1019 1017
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1027,22 +1025,7 @@
1027 1025
  * You may also use software SPI if you wish to use general purpose IO pins.
1028 1026
  */
1029 1027
 //#define HAVE_TMC2130
1030
-
1031
-/**
1032
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1033
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1034
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1035
- * to PDN_UART without a resistor.
1036
- * The drivers can also be used with hardware serial.
1037
- *
1038
- * You'll also need the TMC2208Stepper Arduino library
1039
- * (https://github.com/teemuatlut/TMC2208Stepper).
1040
- */
1041
-//#define HAVE_TMC2208
1042
-
1043
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1044
-
1045
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1028
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1046 1029
   //#define X_IS_TMC2130
1047 1030
   //#define X2_IS_TMC2130
1048 1031
   //#define Y_IS_TMC2130
@@ -1054,7 +1037,20 @@
1054 1037
   //#define E2_IS_TMC2130
1055 1038
   //#define E3_IS_TMC2130
1056 1039
   //#define E4_IS_TMC2130
1040
+#endif
1057 1041
 
1042
+/**
1043
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1044
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1045
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1046
+ * to PDN_UART without a resistor.
1047
+ * The drivers can also be used with hardware serial.
1048
+ *
1049
+ * You'll also need the TMC2208Stepper Arduino library
1050
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1051
+ */
1052
+//#define HAVE_TMC2208
1053
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1058 1054
   //#define X_IS_TMC2208
1059 1055
   //#define X2_IS_TMC2208
1060 1056
   //#define Y_IS_TMC2208
@@ -1066,10 +1062,9 @@
1066 1062
   //#define E2_IS_TMC2208
1067 1063
   //#define E3_IS_TMC2208
1068 1064
   //#define E4_IS_TMC2208
1065
+#endif
1069 1066
 
1070
-  /**
1071
-   * Stepper driver settings
1072
-   */
1067
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1073 1068
 
1074 1069
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1075 1070
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 31
- 35
Marlin/src/config/examples/TheBorg/Configuration_adv.h View File

@@ -943,21 +943,20 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  #define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  #define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  #define Z_IS_TMC
955
-  #define Z2_IS_TMC
956
-  #define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+#define HAVE_TMC26X
947
+
948
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
949
+  #define X_IS_TMC26X
950
+  //#define X2_IS_TMC26X
951
+  #define Y_IS_TMC26X
952
+  //#define Y2_IS_TMC26X
953
+  #define Z_IS_TMC26X
954
+  #define Z2_IS_TMC26X
955
+  #define E0_IS_TMC26X
956
+  //#define E1_IS_TMC26X
957
+  //#define E2_IS_TMC26X
958
+  //#define E3_IS_TMC26X
959
+  //#define E4_IS_TMC26X
961 960
 
962 961
   #define X_MAX_CURRENT     1200 // in mA
963 962
   #define X_SENSE_RESISTOR    50 // in mOhms
@@ -1005,7 +1004,7 @@
1005 1004
 
1006 1005
 #endif
1007 1006
 
1008
-// @section TMC2130, TMC2208
1007
+// @section tmc_smart
1009 1008
 
1010 1009
 /**
1011 1010
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1018,7 @@
1019 1018
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1019
  */
1021 1020
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1021
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1022
   //#define X_IS_TMC2130
1039 1023
   //#define X2_IS_TMC2130
1040 1024
   //#define Y_IS_TMC2130
@@ -1046,7 +1030,20 @@
1046 1030
   //#define E2_IS_TMC2130
1047 1031
   //#define E3_IS_TMC2130
1048 1032
   //#define E4_IS_TMC2130
1033
+#endif
1049 1034
 
1035
+/**
1036
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1037
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1038
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1039
+ * to PDN_UART without a resistor.
1040
+ * The drivers can also be used with hardware serial.
1041
+ *
1042
+ * You'll also need the TMC2208Stepper Arduino library
1043
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1044
+ */
1045
+//#define HAVE_TMC2208
1046
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1047
   //#define X_IS_TMC2208
1051 1048
   //#define X2_IS_TMC2208
1052 1049
   //#define Y_IS_TMC2208
@@ -1058,10 +1055,9 @@
1058 1055
   //#define E2_IS_TMC2208
1059 1056
   //#define E3_IS_TMC2208
1060 1057
   //#define E4_IS_TMC2208
1058
+#endif
1061 1059
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1060
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1061
 
1066 1062
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1063
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

@@ -956,21 +956,19 @@
956 956
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
957 957
  * (https://github.com/trinamic/TMC26XStepper.git)
958 958
  */
959
-//#define HAVE_TMCDRIVER
960
-
961
-#if ENABLED(HAVE_TMCDRIVER)
962
-
963
-  //#define X_IS_TMC
964
-  //#define X2_IS_TMC
965
-  //#define Y_IS_TMC
966
-  //#define Y2_IS_TMC
967
-  //#define Z_IS_TMC
968
-  //#define Z2_IS_TMC
969
-  //#define E0_IS_TMC
970
-  //#define E1_IS_TMC
971
-  //#define E2_IS_TMC
972
-  //#define E3_IS_TMC
973
-  //#define E4_IS_TMC
959
+//#define HAVE_TMC26X
960
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
961
+  //#define X_IS_TMC26X
962
+  //#define X2_IS_TMC26X
963
+  //#define Y_IS_TMC26X
964
+  //#define Y2_IS_TMC26X
965
+  //#define Z_IS_TMC26X
966
+  //#define Z2_IS_TMC26X
967
+  //#define E0_IS_TMC26X
968
+  //#define E1_IS_TMC26X
969
+  //#define E2_IS_TMC26X
970
+  //#define E3_IS_TMC26X
971
+  //#define E4_IS_TMC26X
974 972
 
975 973
   #define X_MAX_CURRENT     1000 // in mA
976 974
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1018,7 +1016,7 @@
1018 1016
 
1019 1017
 #endif
1020 1018
 
1021
-// @section TMC2130, TMC2208
1019
+// @section tmc_smart
1022 1020
 
1023 1021
 /**
1024 1022
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1032,22 +1030,7 @@
1032 1030
  * You may also use software SPI if you wish to use general purpose IO pins.
1033 1031
  */
1034 1032
 //#define HAVE_TMC2130
1035
-
1036
-/**
1037
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
- * to PDN_UART without a resistor.
1041
- * The drivers can also be used with hardware serial.
1042
- *
1043
- * You'll also need the TMC2208Stepper Arduino library
1044
- * (https://github.com/teemuatlut/TMC2208Stepper).
1045
- */
1046
-//#define HAVE_TMC2208
1047
-
1048
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1049
-
1050
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1033
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1051 1034
   //#define X_IS_TMC2130
1052 1035
   //#define X2_IS_TMC2130
1053 1036
   //#define Y_IS_TMC2130
@@ -1059,7 +1042,20 @@
1059 1042
   //#define E2_IS_TMC2130
1060 1043
   //#define E3_IS_TMC2130
1061 1044
   //#define E4_IS_TMC2130
1045
+#endif
1062 1046
 
1047
+/**
1048
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1049
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1050
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1051
+ * to PDN_UART without a resistor.
1052
+ * The drivers can also be used with hardware serial.
1053
+ *
1054
+ * You'll also need the TMC2208Stepper Arduino library
1055
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1056
+ */
1057
+//#define HAVE_TMC2208
1058
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1063 1059
   //#define X_IS_TMC2208
1064 1060
   //#define X2_IS_TMC2208
1065 1061
   //#define Y_IS_TMC2208
@@ -1071,10 +1067,9 @@
1071 1067
   //#define E2_IS_TMC2208
1072 1068
   //#define E3_IS_TMC2208
1073 1069
   //#define E4_IS_TMC2208
1070
+#endif
1074 1071
 
1075
-  /**
1076
-   * Stepper driver settings
1077
-   */
1072
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1078 1073
 
1079 1074
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1080 1075
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

@@ -950,21 +950,19 @@
950 950
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
951 951
  * (https://github.com/trinamic/TMC26XStepper.git)
952 952
  */
953
-//#define HAVE_TMCDRIVER
954
-
955
-#if ENABLED(HAVE_TMCDRIVER)
956
-
957
-  //#define X_IS_TMC
958
-  //#define X2_IS_TMC
959
-  //#define Y_IS_TMC
960
-  //#define Y2_IS_TMC
961
-  //#define Z_IS_TMC
962
-  //#define Z2_IS_TMC
963
-  //#define E0_IS_TMC
964
-  //#define E1_IS_TMC
965
-  //#define E2_IS_TMC
966
-  //#define E3_IS_TMC
967
-  //#define E4_IS_TMC
953
+//#define HAVE_TMC26X
954
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
955
+  //#define X_IS_TMC26X
956
+  //#define X2_IS_TMC26X
957
+  //#define Y_IS_TMC26X
958
+  //#define Y2_IS_TMC26X
959
+  //#define Z_IS_TMC26X
960
+  //#define Z2_IS_TMC26X
961
+  //#define E0_IS_TMC26X
962
+  //#define E1_IS_TMC26X
963
+  //#define E2_IS_TMC26X
964
+  //#define E3_IS_TMC26X
965
+  //#define E4_IS_TMC26X
968 966
 
969 967
   #define X_MAX_CURRENT     1000 // in mA
970 968
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1012,7 +1010,7 @@
1012 1010
 
1013 1011
 #endif
1014 1012
 
1015
-// @section TMC2130, TMC2208
1013
+// @section tmc_smart
1016 1014
 
1017 1015
 /**
1018 1016
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1026,22 +1024,7 @@
1026 1024
  * You may also use software SPI if you wish to use general purpose IO pins.
1027 1025
  */
1028 1026
 //#define HAVE_TMC2130
1029
-
1030
-/**
1031
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1032
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1033
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1034
- * to PDN_UART without a resistor.
1035
- * The drivers can also be used with hardware serial.
1036
- *
1037
- * You'll also need the TMC2208Stepper Arduino library
1038
- * (https://github.com/teemuatlut/TMC2208Stepper).
1039
- */
1040
-//#define HAVE_TMC2208
1041
-
1042
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1043
-
1044
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1027
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1045 1028
   //#define X_IS_TMC2130
1046 1029
   //#define X2_IS_TMC2130
1047 1030
   //#define Y_IS_TMC2130
@@ -1053,7 +1036,20 @@
1053 1036
   //#define E2_IS_TMC2130
1054 1037
   //#define E3_IS_TMC2130
1055 1038
   //#define E4_IS_TMC2130
1039
+#endif
1056 1040
 
1041
+/**
1042
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1043
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1044
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1045
+ * to PDN_UART without a resistor.
1046
+ * The drivers can also be used with hardware serial.
1047
+ *
1048
+ * You'll also need the TMC2208Stepper Arduino library
1049
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1050
+ */
1051
+//#define HAVE_TMC2208
1052
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1057 1053
   //#define X_IS_TMC2208
1058 1054
   //#define X2_IS_TMC2208
1059 1055
   //#define Y_IS_TMC2208
@@ -1065,10 +1061,9 @@
1065 1061
   //#define E2_IS_TMC2208
1066 1062
   //#define E3_IS_TMC2208
1067 1063
   //#define E4_IS_TMC2208
1064
+#endif
1068 1065
 
1069
-  /**
1070
-   * Stepper driver settings
1071
-   */
1066
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1072 1067
 
1073 1068
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1074 1069
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

@@ -945,21 +945,19 @@
945 945
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
946 946
  * (https://github.com/trinamic/TMC26XStepper.git)
947 947
  */
948
-//#define HAVE_TMCDRIVER
949
-
950
-#if ENABLED(HAVE_TMCDRIVER)
951
-
952
-  //#define X_IS_TMC
953
-  //#define X2_IS_TMC
954
-  //#define Y_IS_TMC
955
-  //#define Y2_IS_TMC
956
-  //#define Z_IS_TMC
957
-  //#define Z2_IS_TMC
958
-  //#define E0_IS_TMC
959
-  //#define E1_IS_TMC
960
-  //#define E2_IS_TMC
961
-  //#define E3_IS_TMC
962
-  //#define E4_IS_TMC
948
+//#define HAVE_TMC26X
949
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
950
+  //#define X_IS_TMC26X
951
+  //#define X2_IS_TMC26X
952
+  //#define Y_IS_TMC26X
953
+  //#define Y2_IS_TMC26X
954
+  //#define Z_IS_TMC26X
955
+  //#define Z2_IS_TMC26X
956
+  //#define E0_IS_TMC26X
957
+  //#define E1_IS_TMC26X
958
+  //#define E2_IS_TMC26X
959
+  //#define E3_IS_TMC26X
960
+  //#define E4_IS_TMC26X
963 961
 
964 962
   #define X_MAX_CURRENT     1000 // in mA
965 963
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1007,7 +1005,7 @@
1007 1005
 
1008 1006
 #endif
1009 1007
 
1010
-// @section TMC2130, TMC2208
1008
+// @section tmc_smart
1011 1009
 
1012 1010
 /**
1013 1011
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1021,22 +1019,7 @@
1021 1019
  * You may also use software SPI if you wish to use general purpose IO pins.
1022 1020
  */
1023 1021
 //#define HAVE_TMC2130
1024
-
1025
-/**
1026
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1027
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1028
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1029
- * to PDN_UART without a resistor.
1030
- * The drivers can also be used with hardware serial.
1031
- *
1032
- * You'll also need the TMC2208Stepper Arduino library
1033
- * (https://github.com/teemuatlut/TMC2208Stepper).
1034
- */
1035
-//#define HAVE_TMC2208
1036
-
1037
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1038
-
1039
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1022
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1040 1023
   //#define X_IS_TMC2130
1041 1024
   //#define X2_IS_TMC2130
1042 1025
   //#define Y_IS_TMC2130
@@ -1048,7 +1031,20 @@
1048 1031
   //#define E2_IS_TMC2130
1049 1032
   //#define E3_IS_TMC2130
1050 1033
   //#define E4_IS_TMC2130
1034
+#endif
1051 1035
 
1036
+/**
1037
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1038
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1039
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1040
+ * to PDN_UART without a resistor.
1041
+ * The drivers can also be used with hardware serial.
1042
+ *
1043
+ * You'll also need the TMC2208Stepper Arduino library
1044
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1045
+ */
1046
+//#define HAVE_TMC2208
1047
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1052 1048
   //#define X_IS_TMC2208
1053 1049
   //#define X2_IS_TMC2208
1054 1050
   //#define Y_IS_TMC2208
@@ -1060,10 +1056,9 @@
1060 1056
   //#define E2_IS_TMC2208
1061 1057
   //#define E3_IS_TMC2208
1062 1058
   //#define E4_IS_TMC2208
1059
+#endif
1063 1060
 
1064
-  /**
1065
-   * Stepper driver settings
1066
-   */
1061
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1067 1062
 
1068 1063
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1069 1064
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/makibox/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

@@ -943,21 +943,19 @@
943 943
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
944 944
  * (https://github.com/trinamic/TMC26XStepper.git)
945 945
  */
946
-//#define HAVE_TMCDRIVER
947
-
948
-#if ENABLED(HAVE_TMCDRIVER)
949
-
950
-  //#define X_IS_TMC
951
-  //#define X2_IS_TMC
952
-  //#define Y_IS_TMC
953
-  //#define Y2_IS_TMC
954
-  //#define Z_IS_TMC
955
-  //#define Z2_IS_TMC
956
-  //#define E0_IS_TMC
957
-  //#define E1_IS_TMC
958
-  //#define E2_IS_TMC
959
-  //#define E3_IS_TMC
960
-  //#define E4_IS_TMC
946
+//#define HAVE_TMC26X
947
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
948
+  //#define X_IS_TMC26X
949
+  //#define X2_IS_TMC26X
950
+  //#define Y_IS_TMC26X
951
+  //#define Y2_IS_TMC26X
952
+  //#define Z_IS_TMC26X
953
+  //#define Z2_IS_TMC26X
954
+  //#define E0_IS_TMC26X
955
+  //#define E1_IS_TMC26X
956
+  //#define E2_IS_TMC26X
957
+  //#define E3_IS_TMC26X
958
+  //#define E4_IS_TMC26X
961 959
 
962 960
   #define X_MAX_CURRENT     1000 // in mA
963 961
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1005,7 +1003,7 @@
1005 1003
 
1006 1004
 #endif
1007 1005
 
1008
-// @section TMC2130, TMC2208
1006
+// @section tmc_smart
1009 1007
 
1010 1008
 /**
1011 1009
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1019,22 +1017,7 @@
1019 1017
  * You may also use software SPI if you wish to use general purpose IO pins.
1020 1018
  */
1021 1019
 //#define HAVE_TMC2130
1022
-
1023
-/**
1024
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1025
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1026
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1027
- * to PDN_UART without a resistor.
1028
- * The drivers can also be used with hardware serial.
1029
- *
1030
- * You'll also need the TMC2208Stepper Arduino library
1031
- * (https://github.com/teemuatlut/TMC2208Stepper).
1032
- */
1033
-//#define HAVE_TMC2208
1034
-
1035
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1036
-
1037
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1020
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1038 1021
   //#define X_IS_TMC2130
1039 1022
   //#define X2_IS_TMC2130
1040 1023
   //#define Y_IS_TMC2130
@@ -1046,7 +1029,20 @@
1046 1029
   //#define E2_IS_TMC2130
1047 1030
   //#define E3_IS_TMC2130
1048 1031
   //#define E4_IS_TMC2130
1032
+#endif
1049 1033
 
1034
+/**
1035
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1036
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1037
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1038
+ * to PDN_UART without a resistor.
1039
+ * The drivers can also be used with hardware serial.
1040
+ *
1041
+ * You'll also need the TMC2208Stepper Arduino library
1042
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1043
+ */
1044
+//#define HAVE_TMC2208
1045
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1050 1046
   //#define X_IS_TMC2208
1051 1047
   //#define X2_IS_TMC2208
1052 1048
   //#define Y_IS_TMC2208
@@ -1058,10 +1054,9 @@
1058 1054
   //#define E2_IS_TMC2208
1059 1055
   //#define E3_IS_TMC2208
1060 1056
   //#define E4_IS_TMC2208
1057
+#endif
1061 1058
 
1062
-  /**
1063
-   * Stepper driver settings
1064
-   */
1059
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1065 1060
 
1066 1061
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1067 1062
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 30
- 35
Marlin/src/config/examples/wt150/Configuration_adv.h View File

@@ -944,21 +944,19 @@
944 944
  * You will need to import the TMC26XStepper library into the Arduino IDE for this
945 945
  * (https://github.com/trinamic/TMC26XStepper.git)
946 946
  */
947
-//#define HAVE_TMCDRIVER
948
-
949
-#if ENABLED(HAVE_TMCDRIVER)
950
-
951
-  //#define X_IS_TMC
952
-  //#define X2_IS_TMC
953
-  //#define Y_IS_TMC
954
-  //#define Y2_IS_TMC
955
-  //#define Z_IS_TMC
956
-  //#define Z2_IS_TMC
957
-  //#define E0_IS_TMC
958
-  //#define E1_IS_TMC
959
-  //#define E2_IS_TMC
960
-  //#define E3_IS_TMC
961
-  //#define E4_IS_TMC
947
+//#define HAVE_TMC26X
948
+#if ENABLED(HAVE_TMC26X)  // Choose your axes here. This is mandatory!
949
+  //#define X_IS_TMC26X
950
+  //#define X2_IS_TMC26X
951
+  //#define Y_IS_TMC26X
952
+  //#define Y2_IS_TMC26X
953
+  //#define Z_IS_TMC26X
954
+  //#define Z2_IS_TMC26X
955
+  //#define E0_IS_TMC26X
956
+  //#define E1_IS_TMC26X
957
+  //#define E2_IS_TMC26X
958
+  //#define E3_IS_TMC26X
959
+  //#define E4_IS_TMC26X
962 960
 
963 961
   #define X_MAX_CURRENT     1000 // in mA
964 962
   #define X_SENSE_RESISTOR    91 // in mOhms
@@ -1006,7 +1004,7 @@
1006 1004
 
1007 1005
 #endif
1008 1006
 
1009
-// @section TMC2130, TMC2208
1007
+// @section tmc_smart
1010 1008
 
1011 1009
 /**
1012 1010
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -1020,22 +1018,7 @@
1020 1018
  * You may also use software SPI if you wish to use general purpose IO pins.
1021 1019
  */
1022 1020
 //#define HAVE_TMC2130
1023
-
1024
-/**
1025
- * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1026
- * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1027
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1028
- * to PDN_UART without a resistor.
1029
- * The drivers can also be used with hardware serial.
1030
- *
1031
- * You'll also need the TMC2208Stepper Arduino library
1032
- * (https://github.com/teemuatlut/TMC2208Stepper).
1033
- */
1034
-//#define HAVE_TMC2208
1035
-
1036
-#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1037
-
1038
-  // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1021
+#if ENABLED(HAVE_TMC2130)  // Choose your axes here. This is mandatory!
1039 1022
   //#define X_IS_TMC2130
1040 1023
   //#define X2_IS_TMC2130
1041 1024
   //#define Y_IS_TMC2130
@@ -1047,7 +1030,20 @@
1047 1030
   //#define E2_IS_TMC2130
1048 1031
   //#define E3_IS_TMC2130
1049 1032
   //#define E4_IS_TMC2130
1033
+#endif
1050 1034
 
1035
+/**
1036
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1037
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin with a 1K resistor.
1038
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1039
+ * to PDN_UART without a resistor.
1040
+ * The drivers can also be used with hardware serial.
1041
+ *
1042
+ * You'll also need the TMC2208Stepper Arduino library
1043
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1044
+ */
1045
+//#define HAVE_TMC2208
1046
+#if ENABLED(HAVE_TMC2208)  // Choose your axes here. This is mandatory!
1051 1047
   //#define X_IS_TMC2208
1052 1048
   //#define X2_IS_TMC2208
1053 1049
   //#define Y_IS_TMC2208
@@ -1059,10 +1055,9 @@
1059 1055
   //#define E2_IS_TMC2208
1060 1056
   //#define E3_IS_TMC2208
1061 1057
   //#define E4_IS_TMC2208
1058
+#endif
1062 1059
 
1063
-  /**
1064
-   * Stepper driver settings
1065
-   */
1060
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1066 1061
 
1067 1062
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1068 1063
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current

+ 8
- 2
Marlin/src/feature/tmc_util.h View File

@@ -23,9 +23,15 @@
23 23
 #ifndef _TMC_UTIL_H_
24 24
 #define _TMC_UTIL_H_
25 25
 
26
-#include <TMC2130Stepper.h>
26
+#include "../inc/MarlinConfigPre.h"
27 27
 
28
-#include "../inc/MarlinConfig.h"
28
+#if ENABLED(HAVE_TMC2130)
29
+  #include <TMC2130Stepper.h>
30
+#endif
31
+
32
+#if ENABLED(HAVE_TMC2208)
33
+  #include <TMC2208Stepper.h>
34
+#endif
29 35
 
30 36
 extern bool report_tmc_status;
31 37
 

+ 189
- 15
Marlin/src/inc/SanityCheck.h View File

@@ -247,6 +247,11 @@
247 247
   #error "LCD_I2C_SAINSMART_YWROBOT is now LCD_SAINSMART_I2C_(1602|2004). Please update your configuration."
248 248
 #elif defined(MEASURED_LOWER_LIMIT) || defined(MEASURED_UPPER_LIMIT)
249 249
   #error "MEASURED_(UPPER|LOWER)_LIMIT is now FILWIDTH_ERROR_MARGIN. Please update your configuration."
250
+#elif defined(HAVE_TMCDRIVER)
251
+  #error "HAVE_TMCDRIVER is now HAVE_TMC26X. Please update your Configuration_adv.h."
252
+#elif defined(X_IS_TMC) || defined(X2_IS_TMC) || defined(Y_IS_TMC) || defined(Y2_IS_TMC) || defined(Z_IS_TMC) || defined(Z2_IS_TMC) \
253
+   || defined(E0_IS_TMC) || defined(E1_IS_TMC) || defined(E2_IS_TMC) || defined(E3_IS_TMC) || defined(E4_IS_TMC)
254
+  #error "[AXIS]_IS_TMC is now [AXIS]_IS_TMC26X. Please update your Configuration_adv.h."
250 255
 #elif defined(AUTOMATIC_CURRENT_CONTROL)
251 256
   #error "AUTOMATIC_CURRENT_CONTROL is now MONITOR_DRIVER_STATUS. Please update your configuration."
252 257
 #endif
@@ -1497,22 +1502,22 @@ static_assert(1 >= 0
1497 1502
 );
1498 1503
 
1499 1504
 /**
1500
- * Make sure HAVE_TMCDRIVER is warranted
1501
- */
1502
-#if ENABLED(HAVE_TMCDRIVER) && !( \
1503
-         ENABLED(  X_IS_TMC ) \
1504
-      || ENABLED( X2_IS_TMC ) \
1505
-      || ENABLED(  Y_IS_TMC ) \
1506
-      || ENABLED( Y2_IS_TMC ) \
1507
-      || ENABLED(  Z_IS_TMC ) \
1508
-      || ENABLED( Z2_IS_TMC ) \
1509
-      || ENABLED( E0_IS_TMC ) \
1510
-      || ENABLED( E1_IS_TMC ) \
1511
-      || ENABLED( E2_IS_TMC ) \
1512
-      || ENABLED( E3_IS_TMC ) \
1513
-      || ENABLED( E4_IS_TMC ) \
1505
+ * Make sure HAVE_TMC26X is warranted
1506
+ */
1507
+#if ENABLED(HAVE_TMC26X) && !( \
1508
+         ENABLED(  X_IS_TMC26X ) \
1509
+      || ENABLED( X2_IS_TMC26X ) \
1510
+      || ENABLED(  Y_IS_TMC26X ) \
1511
+      || ENABLED( Y2_IS_TMC26X ) \
1512
+      || ENABLED(  Z_IS_TMC26X ) \
1513
+      || ENABLED( Z2_IS_TMC26X ) \
1514
+      || ENABLED( E0_IS_TMC26X ) \
1515
+      || ENABLED( E1_IS_TMC26X ) \
1516
+      || ENABLED( E2_IS_TMC26X ) \
1517
+      || ENABLED( E3_IS_TMC26X ) \
1518
+      || ENABLED( E4_IS_TMC26X ) \
1514 1519
   )
1515
-  #error "HAVE_TMCDRIVER requires at least one TMC stepper to be set."
1520
+  #error "HAVE_TMC26X requires at least one TMC26X stepper to be set."
1516 1521
 #endif
1517 1522
 
1518 1523
 /**
@@ -1627,6 +1632,175 @@ static_assert(1 >= 0
1627 1632
 #endif
1628 1633
 
1629 1634
 /**
1635
+ * Check that each axis has only one driver selected
1636
+ */
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
+);
1802
+
1803
+/**
1630 1804
  * Digipot requirement
1631 1805
  */
1632 1806
 #if ENABLED(DIGIPOT_MCP4018)

+ 2
- 2
Marlin/src/module/stepper.cpp View File

@@ -922,8 +922,8 @@ void Stepper::init() {
922 922
   #endif
923 923
 
924 924
   // Init TMC Steppers
925
-  #if ENABLED(HAVE_TMCDRIVER)
926
-    tmc_init();
925
+  #if ENABLED(HAVE_TMC26X)
926
+    tmc26x_init();
927 927
   #endif
928 928
 
929 929
   // Init TMC2130 Steppers

+ 25
- 26
Marlin/src/module/stepper_indirection.cpp View File

@@ -38,8 +38,7 @@
38 38
 //
39 39
 // TMC26X Driver objects and inits
40 40
 //
41
-#if ENABLED(HAVE_TMCDRIVER)
42
-
41
+#if ENABLED(HAVE_TMC26X)
43 42
   #include <SPI.h>
44 43
 
45 44
   #ifdef STM32F7
@@ -50,37 +49,37 @@
50 49
 
51 50
   #define _TMC_DEFINE(ST) TMC26XStepper stepper##ST(200, ST##_ENABLE_PIN, ST##_STEP_PIN, ST##_DIR_PIN, ST##_MAX_CURRENT, ST##_SENSE_RESISTOR)
52 51
 
53
-  #if ENABLED(X_IS_TMC)
52
+  #if ENABLED(X_IS_TMC26X)
54 53
     _TMC_DEFINE(X);
55 54
   #endif
56
-  #if ENABLED(X2_IS_TMC)
55
+  #if ENABLED(X2_IS_TMC26X)
57 56
     _TMC_DEFINE(X2);
58 57
   #endif
59
-  #if ENABLED(Y_IS_TMC)
58
+  #if ENABLED(Y_IS_TMC26X)
60 59
     _TMC_DEFINE(Y);
61 60
   #endif
62
-  #if ENABLED(Y2_IS_TMC)
61
+  #if ENABLED(Y2_IS_TMC26X)
63 62
     _TMC_DEFINE(Y2);
64 63
   #endif
65
-  #if ENABLED(Z_IS_TMC)
64
+  #if ENABLED(Z_IS_TMC26X)
66 65
     _TMC_DEFINE(Z);
67 66
   #endif
68
-  #if ENABLED(Z2_IS_TMC)
67
+  #if ENABLED(Z2_IS_TMC26X)
69 68
     _TMC_DEFINE(Z2);
70 69
   #endif
71
-  #if ENABLED(E0_IS_TMC)
70
+  #if ENABLED(E0_IS_TMC26X)
72 71
     _TMC_DEFINE(E0);
73 72
   #endif
74
-  #if ENABLED(E1_IS_TMC)
73
+  #if ENABLED(E1_IS_TMC26X)
75 74
     _TMC_DEFINE(E1);
76 75
   #endif
77
-  #if ENABLED(E2_IS_TMC)
76
+  #if ENABLED(E2_IS_TMC26X)
78 77
     _TMC_DEFINE(E2);
79 78
   #endif
80
-  #if ENABLED(E3_IS_TMC)
79
+  #if ENABLED(E3_IS_TMC26X)
81 80
     _TMC_DEFINE(E3);
82 81
   #endif
83
-  #if ENABLED(E4_IS_TMC)
82
+  #if ENABLED(E4_IS_TMC26X)
84 83
     _TMC_DEFINE(E4);
85 84
   #endif
86 85
 
@@ -89,43 +88,43 @@
89 88
     stepper##A.start(); \
90 89
   }while(0)
91 90
 
92
-  void tmc_init() {
93
-    #if ENABLED(X_IS_TMC)
91
+  void tmc26x_init() {
92
+    #if ENABLED(X_IS_TMC26X)
94 93
       _TMC_INIT(X);
95 94
     #endif
96
-    #if ENABLED(X2_IS_TMC)
95
+    #if ENABLED(X2_IS_TMC26X)
97 96
       _TMC_INIT(X2);
98 97
     #endif
99
-    #if ENABLED(Y_IS_TMC)
98
+    #if ENABLED(Y_IS_TMC26X)
100 99
       _TMC_INIT(Y);
101 100
     #endif
102
-    #if ENABLED(Y2_IS_TMC)
101
+    #if ENABLED(Y2_IS_TMC26X)
103 102
       _TMC_INIT(Y2);
104 103
     #endif
105
-    #if ENABLED(Z_IS_TMC)
104
+    #if ENABLED(Z_IS_TMC26X)
106 105
       _TMC_INIT(Z);
107 106
     #endif
108
-    #if ENABLED(Z2_IS_TMC)
107
+    #if ENABLED(Z2_IS_TMC26X)
109 108
       _TMC_INIT(Z2);
110 109
     #endif
111
-    #if ENABLED(E0_IS_TMC)
110
+    #if ENABLED(E0_IS_TMC26X)
112 111
       _TMC_INIT(E0);
113 112
     #endif
114
-    #if ENABLED(E1_IS_TMC)
113
+    #if ENABLED(E1_IS_TMC26X)
115 114
       _TMC_INIT(E1);
116 115
     #endif
117
-    #if ENABLED(E2_IS_TMC)
116
+    #if ENABLED(E2_IS_TMC26X)
118 117
       _TMC_INIT(E2);
119 118
     #endif
120
-    #if ENABLED(E3_IS_TMC)
119
+    #if ENABLED(E3_IS_TMC26X)
121 120
       _TMC_INIT(E3);
122 121
     #endif
123
-    #if ENABLED(E4_IS_TMC)
122
+    #if ENABLED(E4_IS_TMC26X)
124 123
       _TMC_INIT(E4);
125 124
     #endif
126 125
   }
127 126
 
128
-#endif // HAVE_TMCDRIVER
127
+#endif // HAVE_TMC26X
129 128
 
130 129
 //
131 130
 // TMC2130 Driver objects and inits

+ 13
- 13
Marlin/src/module/stepper_indirection.h View File

@@ -47,14 +47,14 @@
47 47
 #include "../inc/MarlinConfig.h"
48 48
 
49 49
 // TMC26X drivers have STEP/DIR on normal pins, but ENABLE via SPI
50
-#if ENABLED(HAVE_TMCDRIVER)
50
+#if ENABLED(HAVE_TMC26X)
51 51
   #include <SPI.h>
52 52
   #ifdef STM32F7
53 53
     #include "../HAL/HAL_STM32F7/TMC2660.h"
54 54
   #else
55 55
     #include <TMC26XStepper.h>
56 56
   #endif
57
-  void tmc_init();
57
+  void tmc26x_init();
58 58
 #endif
59 59
 
60 60
 #if ENABLED(HAVE_TMC2130)
@@ -85,7 +85,7 @@
85 85
   #define X_DIR_WRITE(STATE) stepperX.Step_Clock(STATE)
86 86
   #define X_DIR_READ (stepperX.getStatus() & STATUS_DIR)
87 87
 #else
88
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(X_IS_TMC)
88
+  #if ENABLED(X_IS_TMC26X)
89 89
     extern TMC26XStepper stepperX;
90 90
     #define X_ENABLE_INIT NOOP
91 91
     #define X_ENABLE_WRITE(STATE) stepperX.setEnabled(STATE)
@@ -118,7 +118,7 @@
118 118
   #define Y_DIR_WRITE(STATE) stepperY.Step_Clock(STATE)
119 119
   #define Y_DIR_READ (stepperY.getStatus() & STATUS_DIR)
120 120
 #else
121
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(Y_IS_TMC)
121
+  #if ENABLED(Y_IS_TMC26X)
122 122
     extern TMC26XStepper stepperY;
123 123
     #define Y_ENABLE_INIT NOOP
124 124
     #define Y_ENABLE_WRITE(STATE) stepperY.setEnabled(STATE)
@@ -151,7 +151,7 @@
151 151
   #define Z_DIR_WRITE(STATE) stepperZ.Step_Clock(STATE)
152 152
   #define Z_DIR_READ (stepperZ.getStatus() & STATUS_DIR)
153 153
 #else
154
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(Z_IS_TMC)
154
+  #if ENABLED(Z_IS_TMC26X)
155 155
     extern TMC26XStepper stepperZ;
156 156
     #define Z_ENABLE_INIT NOOP
157 157
     #define Z_ENABLE_WRITE(STATE) stepperZ.setEnabled(STATE)
@@ -185,7 +185,7 @@
185 185
     #define X2_DIR_WRITE(STATE) stepperX2.Step_Clock(STATE)
186 186
     #define X2_DIR_READ (stepperX2.getStatus() & STATUS_DIR)
187 187
   #else
188
-    #if ENABLED(HAVE_TMCDRIVER) && ENABLED(X2_IS_TMC)
188
+    #if ENABLED(X2_IS_TMC26X)
189 189
       extern TMC26XStepper stepperX2;
190 190
       #define X2_ENABLE_INIT NOOP
191 191
       #define X2_ENABLE_WRITE(STATE) stepperX2.setEnabled(STATE)
@@ -220,7 +220,7 @@
220 220
     #define Y2_DIR_WRITE(STATE) stepperY2.Step_Clock(STATE)
221 221
     #define Y2_DIR_READ (stepperY2.getStatus() & STATUS_DIR)
222 222
   #else
223
-    #if ENABLED(HAVE_TMCDRIVER) && ENABLED(Y2_IS_TMC)
223
+    #if ENABLED(Y2_IS_TMC26X)
224 224
       extern TMC26XStepper stepperY2;
225 225
       #define Y2_ENABLE_INIT NOOP
226 226
       #define Y2_ENABLE_WRITE(STATE) stepperY2.setEnabled(STATE)
@@ -255,7 +255,7 @@
255 255
     #define Z2_DIR_WRITE(STATE) stepperZ2.Step_Clock(STATE)
256 256
     #define Z2_DIR_READ (stepperZ2.getStatus() & STATUS_DIR)
257 257
   #else
258
-    #if ENABLED(HAVE_TMCDRIVER) && ENABLED(Z2_IS_TMC)
258
+    #if ENABLED(Z2_IS_TMC26X)
259 259
       extern TMC26XStepper stepperZ2;
260 260
       #define Z2_ENABLE_INIT NOOP
261 261
       #define Z2_ENABLE_WRITE(STATE) stepperZ2.setEnabled(STATE)
@@ -289,7 +289,7 @@
289 289
   #define E0_DIR_WRITE(STATE) stepperE0.Step_Clock(STATE)
290 290
   #define E0_DIR_READ (stepperE0.getStatus() & STATUS_DIR)
291 291
 #else
292
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(E0_IS_TMC)
292
+  #if ENABLED(E0_IS_TMC26X)
293 293
     extern TMC26XStepper stepperE0;
294 294
     #define E0_ENABLE_INIT NOOP
295 295
     #define E0_ENABLE_WRITE(STATE) stepperE0.setEnabled(STATE)
@@ -322,7 +322,7 @@
322 322
   #define E1_DIR_WRITE(STATE) stepperE1.Step_Clock(STATE)
323 323
   #define E1_DIR_READ (stepperE1.getStatus() & STATUS_DIR)
324 324
 #else
325
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(E1_IS_TMC)
325
+  #if ENABLED(E1_IS_TMC26X)
326 326
     extern TMC26XStepper stepperE1;
327 327
     #define E1_ENABLE_INIT NOOP
328 328
     #define E1_ENABLE_WRITE(STATE) stepperE1.setEnabled(STATE)
@@ -355,7 +355,7 @@
355 355
   #define E2_DIR_WRITE(STATE) stepperE2.Step_Clock(STATE)
356 356
   #define E2_DIR_READ (stepperE2.getStatus() & STATUS_DIR)
357 357
 #else
358
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(E2_IS_TMC)
358
+  #if ENABLED(E2_IS_TMC26X)
359 359
     extern TMC26XStepper stepperE2;
360 360
     #define E2_ENABLE_INIT NOOP
361 361
     #define E2_ENABLE_WRITE(STATE) stepperE2.setEnabled(STATE)
@@ -388,7 +388,7 @@
388 388
   #define E3_DIR_WRITE(STATE) stepperE3.Step_Clock(STATE)
389 389
   #define E3_DIR_READ (stepperE3.getStatus() & STATUS_DIR)
390 390
 #else
391
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(E3_IS_TMC)
391
+  #if ENABLED(E3_IS_TMC26X)
392 392
     extern TMC26XStepper stepperE3;
393 393
     #define E3_ENABLE_INIT NOOP
394 394
     #define E3_ENABLE_WRITE(STATE) stepperE3.setEnabled(STATE)
@@ -421,7 +421,7 @@
421 421
   #define E4_DIR_WRITE(STATE) stepperE4.Step_Clock(STATE)
422 422
   #define E4_DIR_READ (stepperE4.getStatus() & STATUS_DIR)
423 423
 #else
424
-  #if ENABLED(HAVE_TMCDRIVER) && ENABLED(E4_IS_TMC)
424
+  #if ENABLED(E4_IS_TMC26X)
425 425
     extern TMC26XStepper stepperE4;
426 426
     #define E4_ENABLE_INIT NOOP
427 427
     #define E4_ENABLE_WRITE(STATE) stepperE4.setEnabled(STATE)

Loading…
Cancel
Save