|
@@ -0,0 +1,110 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+#pragma once
|
|
23
|
+
|
|
24
|
+#ifndef BOARD_INFO_NAME
|
|
25
|
+ #define BOARD_INFO_NAME "FYSETC SPIDER"
|
|
26
|
+#endif
|
|
27
|
+#ifndef DEFAULT_MACHINE_NAME
|
|
28
|
+ #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+//
|
|
32
|
+// EEPROM Emulation
|
|
33
|
+//
|
|
34
|
+#if NO_EEPROM_SELECTED
|
|
35
|
+ #undef NO_EEPROM_SELECTED
|
|
36
|
+ //#define FLASH_EEPROM_EMULATION
|
|
37
|
+ //#define SRAM_EEPROM_EMULATION
|
|
38
|
+ #define I2C_EEPROM
|
|
39
|
+#endif
|
|
40
|
+
|
|
41
|
+#if ENABLED(I2C_EEPROM)
|
|
42
|
+ #define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
|
43
|
+#endif
|
|
44
|
+
|
|
45
|
+//
|
|
46
|
+// Steppers
|
|
47
|
+//
|
|
48
|
+#define X2_STEP_PIN PD12
|
|
49
|
+#define X2_DIR_PIN PC4
|
|
50
|
+#define X2_ENABLE_PIN PE8
|
|
51
|
+#define X2_CS_PIN PA15
|
|
52
|
+
|
|
53
|
+#define Z2_STEP_PIN PE1
|
|
54
|
+#define Z2_DIR_PIN PE0
|
|
55
|
+#define Z2_ENABLE_PIN PC5
|
|
56
|
+#define Z2_CS_PIN PD11
|
|
57
|
+
|
|
58
|
+//
|
|
59
|
+// Heaters / Fans
|
|
60
|
+//
|
|
61
|
+#define HEATER_0_PIN PB15
|
|
62
|
+#define HEATER_1_PIN PC8
|
|
63
|
+#define HEATER_2_PIN PB3
|
|
64
|
+#define HEATER_BED_PIN PB4
|
|
65
|
+
|
|
66
|
+//
|
|
67
|
+// Steppers
|
|
68
|
+//
|
|
69
|
+#define X_ENABLE_PIN PE9
|
|
70
|
+
|
|
71
|
+#if HAS_TMC_UART
|
|
72
|
+ #define X_SERIAL_TX_PIN PE7
|
|
73
|
+ #define X_SERIAL_RX_PIN PE7
|
|
74
|
+ #define Y_SERIAL_TX_PIN PE15
|
|
75
|
+ #define Y_SERIAL_RX_PIN PE15
|
|
76
|
+ #define Z_SERIAL_TX_PIN PD10
|
|
77
|
+ #define Z_SERIAL_RX_PIN PD10
|
|
78
|
+ #define E0_SERIAL_TX_PIN PD7
|
|
79
|
+ #define E0_SERIAL_RX_PIN PD7
|
|
80
|
+ #define E1_SERIAL_TX_PIN PC14
|
|
81
|
+ #define E1_SERIAL_RX_PIN PC14
|
|
82
|
+ #define E2_SERIAL_TX_PIN PC15
|
|
83
|
+ #define E2_SERIAL_RX_PIN PC15
|
|
84
|
+ #define X2_SERIAL_TX_PIN PA15
|
|
85
|
+ #define X2_SERIAL_RX_PIN PA15
|
|
86
|
+ #define Z2_SERIAL_TX_PIN PD11
|
|
87
|
+ #define Z2_SERIAL_RX_PIN PD11
|
|
88
|
+#endif
|
|
89
|
+
|
|
90
|
+//
|
|
91
|
+// Software SPI pins for TMC2130 stepper drivers
|
|
92
|
+//
|
|
93
|
+#define TMC_USE_SW_SPI
|
|
94
|
+#if ENABLED(TMC_USE_SW_SPI)
|
|
95
|
+ #ifndef TMC_SW_MOSI
|
|
96
|
+ #define TMC_SW_MOSI PE14
|
|
97
|
+ #endif
|
|
98
|
+ #ifndef TMC_SW_MISO
|
|
99
|
+ #define TMC_SW_MISO PE13
|
|
100
|
+ #endif
|
|
101
|
+ #ifndef TMC_SW_SCK
|
|
102
|
+ #define TMC_SW_SCK PE12
|
|
103
|
+ #endif
|
|
104
|
+#endif
|
|
105
|
+
|
|
106
|
+#if HOTENDS > 3 || E_STEPPERS > 3
|
|
107
|
+ #error "FYSETC SPIDER supports up to 3 hotends / E-steppers."
|
|
108
|
+#else
|
|
109
|
+ #include "pins_FYSETC_S6.h"
|
|
110
|
+#endif
|