Browse Source

Allow override of TMC_SW_* pins, etc.

Ludy 6 years ago
parent
commit
ba22857f93
1 changed files with 26 additions and 16 deletions
  1. 26
    16
      Marlin/src/pins/pins_BIGTREE_SKR_PRO_V1.1.h

+ 26
- 16
Marlin/src/pins/pins_BIGTREE_SKR_PRO_V1.1.h View File

@@ -1,9 +1,9 @@
1 1
 /**
2 2
  * Marlin 3D Printer Firmware
3
- * Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
3
+ * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *
5 5
  * Based on Sprinter and grbl.
6
- * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7 7
  *
8 8
  * This program is free software: you can redistribute it and/or modify
9 9
  * it under the terms of the GNU General Public License as published by
@@ -104,14 +104,20 @@
104 104
 // Software SPI pins for TMC2130 stepper drivers
105 105
 //
106 106
 #if ENABLED(TMC_USE_SW_SPI)
107
-  #define TMC_SW_MOSI      PC12
108
-  #define TMC_SW_MISO      PC11
109
-  #define TMC_SW_SCK       PC10
107
+  #ifndef TMC_SW_MOSI
108
+    #define TMC_SW_MOSI      PC12
109
+  #endif
110
+  #ifndef TMC_SW_MISO
111
+    #define TMC_SW_MISO      PC11
112
+  #endif
113
+  #ifndef TMC_SW_SCK
114
+    #define TMC_SW_SCK       PC10
115
+  #endif
110 116
 #endif
111 117
 
112 118
 #if HAS_TMC220x
113 119
   /**
114
-   * TMC2208 stepper drivers
120
+   * TMC2208/TMC2209 stepper drivers
115 121
    *
116 122
    * Hardware serial communication ports.
117 123
    * If undefined software serial is used according to the pins below
@@ -174,16 +180,20 @@
174 180
 //
175 181
 #define SDSS               PB12
176 182
 
177
-/*
178
-|               _____                                             _____
179
-|           NC | · · | GND                                    5V | · · | GND
180
-|        RESET | · · | PF12(SD_DETECT)             (LCD_D7)  PG7 | · · | PG6  (LCD_D6)
181
-|   (MOSI)PB15 | · · | PF11(BTN_EN2)               (LCD_D5)  PG3 | · · | PG2  (LCD_D4)
182
-|  (SD_SS)PB12 | · · | PG10(BTN_EN1)               (LCD_RS) PD10 | · · | PD11 (LCD_EN)
183
-|    (SCK)PB13 | · · | PB14(MISO)                 (BTN_ENC)  PA8 | · · | PG4  (BEEPER)
184
-|                ̄ ̄                                                ̄ ̄
185
-|               EXP2                                              EXP1
186
-*/
183
+/**
184
+ *               _____                                             _____
185
+ *           NC | · · | GND                                    5V | · · | GND
186
+ *        RESET | · · | PF12(SD_DETECT)             (LCD_D7)  PG7 | · · | PG6  (LCD_D6)
187
+ *   (MOSI)PB15 | · · | PF11(BTN_EN2)               (LCD_D5)  PG3 | · · | PG2  (LCD_D4)
188
+ *  (SD_SS)PB12 | · · | PG10(BTN_EN1)               (LCD_RS) PD10 | · · | PD11 (LCD_EN)
189
+ *    (SCK)PB13 | · · | PB14(MISO)                 (BTN_ENC)  PA8 | · · | PG4  (BEEPER)
190
+ *                ̄ ̄                                                ̄ ̄
191
+ *               EXP2                                              EXP1
192
+ */
193
+
194
+//
195
+// LCDs and Controllers
196
+//
187 197
 #if HAS_SPI_LCD
188 198
   #define BEEPER_PIN       PG4
189 199
   #define BTN_ENC          PA8

Loading…
Cancel
Save