Преглед на файлове

FYSETC F6 v1.4 board support (#16321)

George Fu преди 4 години
родител
ревизия
ceeba58dc9
променени са 5 файла, в които са добавени 118 реда и са изтрити 27 реда
  1. 12
    11
      Marlin/src/core/boards.h
  2. 2
    1
      Marlin/src/pins/pins.h
  3. 43
    15
      Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
  4. 50
    0
      Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
  5. 11
    0
      platformio.ini

+ 12
- 11
Marlin/src/core/boards.h Целия файл

@@ -90,17 +90,18 @@
90 90
 #define BOARD_RAMPS_ENDER_4           1134  // Creality: Ender-4, CR-8
91 91
 #define BOARD_RAMPS_CREALITY          1135  // Creality: CR10S, CR20, CR-X
92 92
 #define BOARD_RAMPS_DAGOMA            1136  // Dagoma F5
93
-#define BOARD_FYSETC_F6_13            1137  // FYSETC F6
94
-#define BOARD_DUPLICATOR_I3_PLUS      1138  // Wanhao Duplicator i3 Plus
95
-#define BOARD_VORON                   1139  // VORON Design
96
-#define BOARD_TRONXY_V3_1_0           1140  // Tronxy TRONXY-V3-1.0
97
-#define BOARD_Z_BOLT_X_SERIES         1141  // Z-Bolt X Series
98
-#define BOARD_TT_OSCAR                1142  // TT OSCAR
99
-#define BOARD_OVERLORD                1143  // Overlord/Overlord Pro
100
-#define BOARD_HJC2560C_REV1           1144  // ADIMLab Gantry v1
101
-#define BOARD_HJC2560C_REV2           1145  // ADIMLab Gantry v2
102
-#define BOARD_TANGO                   1146  // BIQU Tango V1
103
-#define BOARD_MKS_GEN_L_V2            1147  // MKS GEN L V2
93
+#define BOARD_FYSETC_F6_13            1137  // FYSETC F6 1.3
94
+#define BOARD_FYSETC_F6_14            1138  // FYSETC F6 1.4
95
+#define BOARD_DUPLICATOR_I3_PLUS      1139  // Wanhao Duplicator i3 Plus
96
+#define BOARD_VORON                   1140  // VORON Design
97
+#define BOARD_TRONXY_V3_1_0           1141  // Tronxy TRONXY-V3-1.0
98
+#define BOARD_Z_BOLT_X_SERIES         1142  // Z-Bolt X Series
99
+#define BOARD_TT_OSCAR                1143  // TT OSCAR
100
+#define BOARD_OVERLORD                1144  // Overlord/Overlord Pro
101
+#define BOARD_HJC2560C_REV1           1145  // ADIMLab Gantry v1
102
+#define BOARD_HJC2560C_REV2           1146  // ADIMLab Gantry v2
103
+#define BOARD_TANGO                   1147  // BIQU Tango V1
104
+#define BOARD_MKS_GEN_L_V2            1148  // MKS GEN L V2
104 105
 
105 106
 //
106 107
 // RAMBo and derivatives

+ 2
- 1
Marlin/src/pins/pins.h Целия файл

@@ -170,6 +170,8 @@
170 170
   #include "ramps/pins_RAMPS_DAGOMA.h"          // ATmega2560                             env:megaatmega2560
171 171
 #elif MB(FYSETC_F6_13)
172 172
   #include "ramps/pins_FYSETC_F6_13.h"          // ATmega2560                             env:FYSETC_F6_13
173
+#elif MB(FYSETC_F6_14)
174
+  #include "ramps/pins_FYSETC_F6_14.h"          // ATmega2560                             env:FYSETC_F6_14
173 175
 #elif MB(DUPLICATOR_I3_PLUS)
174 176
   #include "ramps/pins_DUPLICATOR_I3_PLUS.h"    // ATmega2560                             env:megaatmega2560
175 177
 #elif MB(VORON)
@@ -185,7 +187,6 @@
185 187
 #elif MB(MKS_GEN_L_V2)
186 188
   #include "ramps/pins_MKS_GEN_L_V2.h"          // ATmega2560                             env:megaatmega2560
187 189
 
188
-
189 190
 //
190 191
 // RAMBo and derivatives
191 192
 //

+ 43
- 15
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h Целия файл

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 //
25
-// FYSETC F6 pin assignments
25
+// FYSETC F6 1.3 (and 1.4) pin assignments
26 26
 //
27 27
 
28 28
 #ifndef __AVR_ATmega2560__
@@ -33,7 +33,9 @@
33 33
   //#error "SD_DETECT_INVERTED must be disabled for the FYSETC_F6_13 board."
34 34
 #endif
35 35
 
36
-#define BOARD_INFO_NAME "FYSETC F6 1.3"
36
+#ifndef BOARD_INFO_NAME
37
+  #define BOARD_INFO_NAME "FYSETC F6 1.3"
38
+#endif
37 39
 
38 40
 #define RESET_PIN          30
39 41
 #define SPI_FLASH_CS       83
@@ -54,7 +56,9 @@
54 56
 #define Y_MIN_PIN          14
55 57
 #define Y_MAX_PIN          15
56 58
 #define Z_MIN_PIN          12
57
-#define Z_MAX_PIN           9
59
+#ifndef Z_MAX_PIN
60
+  #define Z_MAX_PIN         9
61
+#endif
58 62
 
59 63
 #ifndef FIL_RUNOUT_PIN
60 64
   #define FIL_RUNOUT_PIN   SERVO2_PIN
@@ -124,18 +128,42 @@
124 128
    * Software serial communication pins.
125 129
    * At the moment, F6 rx pins are not pc interrupt pins
126 130
    */
127
-  #define X_SERIAL_RX_PIN  -1   // 71
128
-  #define X_SERIAL_TX_PIN  72
129
-  #define Y_SERIAL_RX_PIN  -1   // 73
130
-  #define Y_SERIAL_TX_PIN  75
131
-  #define Z_SERIAL_RX_PIN  -1   // 78
132
-  #define Z_SERIAL_TX_PIN  79
133
-  #define E0_SERIAL_RX_PIN -1   // 76
134
-  #define E0_SERIAL_TX_PIN 77
135
-  #define E1_SERIAL_RX_PIN -1   // 80
136
-  #define E1_SERIAL_TX_PIN 81
137
-  #define E2_SERIAL_RX_PIN -1   // 22
138
-  #define E2_SERIAL_TX_PIN 82
131
+  #ifndef X_SERIAL_RX_PIN
132
+    #define X_SERIAL_RX_PIN  -1   // 71
133
+  #endif
134
+  #ifndef X_SERIAL_TX_PIN
135
+    #define X_SERIAL_TX_PIN  72
136
+  #endif
137
+  #ifndef Y_SERIAL_RX_PIN
138
+    #define Y_SERIAL_RX_PIN  -1   // 73
139
+  #endif
140
+  #ifndef Y_SERIAL_TX_PIN
141
+    #define Y_SERIAL_TX_PIN  75
142
+  #endif
143
+  #ifndef Z_SERIAL_RX_PIN
144
+    #define Z_SERIAL_RX_PIN  -1   // 78
145
+  #endif
146
+  #ifndef Z_SERIAL_TX_PIN
147
+    #define Z_SERIAL_TX_PIN  79
148
+  #endif
149
+  #ifndef E0_SERIAL_RX_PIN
150
+    #define E0_SERIAL_RX_PIN -1   // 76
151
+  #endif
152
+  #ifndef E0_SERIAL_TX_PIN
153
+    #define E0_SERIAL_TX_PIN 77
154
+  #endif
155
+  #ifndef E1_SERIAL_RX_PIN
156
+    #define E1_SERIAL_RX_PIN -1   // 80
157
+  #endif
158
+  #ifndef E1_SERIAL_TX_PIN
159
+    #define E1_SERIAL_TX_PIN 81
160
+  #endif
161
+  #ifndef E2_SERIAL_RX_PIN
162
+    #define E2_SERIAL_RX_PIN -1   // 22
163
+  #endif
164
+  #ifndef E2_SERIAL_TX_PIN
165
+    #define E2_SERIAL_TX_PIN 82
166
+  #endif
139 167
 #endif
140 168
 
141 169
 //

+ 50
- 0
Marlin/src/pins/ramps/pins_FYSETC_F6_14.h Целия файл

@@ -0,0 +1,50 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+//
25
+// FYSETC F6 v1.4 pin assignments
26
+//
27
+
28
+#define BOARD_NAME "FYSETC F6 1.4"
29
+
30
+#define Z_MAX_PIN           2
31
+
32
+#if HAS_TMC220x
33
+  /**
34
+   * TMC2208/TMC2209 stepper drivers
35
+   */
36
+  #define X_SERIAL_RX_PIN  72
37
+  #define X_SERIAL_TX_PIN  71
38
+  #define Y_SERIAL_RX_PIN  73
39
+  #define Y_SERIAL_TX_PIN  78
40
+  #define Z_SERIAL_RX_PIN  75
41
+  #define Z_SERIAL_TX_PIN  79
42
+  #define E0_SERIAL_RX_PIN 77
43
+  #define E0_SERIAL_TX_PIN 81
44
+  #define E1_SERIAL_RX_PIN 76
45
+  #define E1_SERIAL_TX_PIN 80
46
+  #define E2_SERIAL_RX_PIN 62
47
+  #define E2_SERIAL_TX_PIN 82
48
+#endif
49
+
50
+#include "pins_FYSETC_F6_13.h"

+ 11
- 0
platformio.ini Целия файл

@@ -99,6 +99,17 @@ lib_deps          = ${common.lib_deps}
99 99
 src_filter        = ${common.default_src_filter} +<src/HAL/HAL_AVR>
100 100
 
101 101
 #
102
+# FYSETC F6 V1.4
103
+#
104
+[env:FYSETC_F6_14]
105
+platform          = atmelavr
106
+board             = fysetc_f6_14
107
+board_build.f_cpu = 16000000L
108
+lib_deps          = ${common.lib_deps}
109
+  TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
110
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_AVR>
111
+
112
+#
102 113
 # Sanguinololu (ATmega644p)
103 114
 #
104 115
 [env:sanguino_atmega644p]

Loading…
Отказ
Запис