|
@@ -0,0 +1,194 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
4
|
+ * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
5
|
+ *
|
|
6
|
+ * Based on Sprinter and grbl.
|
|
7
|
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
8
|
+ *
|
|
9
|
+ * This program is free software: you can redistribute it and/or modify
|
|
10
|
+ * it under the terms of the GNU General Public License as published by
|
|
11
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+ * (at your option) any later version.
|
|
13
|
+ *
|
|
14
|
+ * This program is distributed in the hope that it will be useful,
|
|
15
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+ * GNU General Public License for more details.
|
|
18
|
+ *
|
|
19
|
+ * You should have received a copy of the GNU General Public License
|
|
20
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+ *
|
|
22
|
+ */
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * Cohesion3D ReMix pin assignments
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#ifndef TARGET_LPC1768
|
|
29
|
+ #error "Oops! Make sure you have LPC1768 selected."
|
|
30
|
+#endif
|
|
31
|
+
|
|
32
|
+#ifndef BOARD_NAME
|
|
33
|
+ #define BOARD_NAME "Cohesion3D ReMix"
|
|
34
|
+#endif
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// Servos
|
|
38
|
+//
|
|
39
|
+#define SERVO0_PIN P2_04
|
|
40
|
+
|
|
41
|
+//
|
|
42
|
+// Limit Switches
|
|
43
|
+//
|
|
44
|
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V
|
|
45
|
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V
|
|
46
|
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
|
|
47
|
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
|
|
48
|
+#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
|
|
49
|
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
|
|
50
|
+
|
|
51
|
+//
|
|
52
|
+// Steppers
|
|
53
|
+//
|
|
54
|
+#define X_STEP_PIN P2_00
|
|
55
|
+#define X_DIR_PIN P0_05
|
|
56
|
+#define X_ENABLE_PIN P0_04
|
|
57
|
+#define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
|
|
58
|
+
|
|
59
|
+#define Y_STEP_PIN P2_01
|
|
60
|
+#define Y_DIR_PIN P0_11
|
|
61
|
+#define Y_ENABLE_PIN P0_10
|
|
62
|
+#define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
|
|
63
|
+
|
|
64
|
+#define Z_STEP_PIN P2_02
|
|
65
|
+#define Z_DIR_PIN P0_20
|
|
66
|
+#define Z_ENABLE_PIN P0_19
|
|
67
|
+#define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
|
|
68
|
+
|
|
69
|
+#define E0_STEP_PIN P2_03
|
|
70
|
+#define E0_DIR_PIN P0_22
|
|
71
|
+#define E0_ENABLE_PIN P0_21
|
|
72
|
+#define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
|
|
73
|
+
|
|
74
|
+#define E1_STEP_PIN P2_08
|
|
75
|
+#define E1_DIR_PIN P2_13
|
|
76
|
+#define E1_ENABLE_PIN P4_29
|
|
77
|
+#define E1_CS_PIN P1_01 // Ethernet Expansion - Pin 14
|
|
78
|
+
|
|
79
|
+#define E2_STEP_PIN P1_20
|
|
80
|
+#define E2_DIR_PIN P1_19
|
|
81
|
+#define E2_ENABLE_PIN P1_21
|
|
82
|
+#define E2_CS_PIN P1_18 // FET 6
|
|
83
|
+
|
|
84
|
+//
|
|
85
|
+// Default pins for TMC software SPI
|
|
86
|
+//
|
|
87
|
+#if ENABLED(TMC_USE_SW_SPI)
|
|
88
|
+ #ifndef TMC_SW_MOSI
|
|
89
|
+ #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
|
|
90
|
+ #endif
|
|
91
|
+ #ifndef TMC_SW_MISO
|
|
92
|
+ #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
|
|
93
|
+ #endif
|
|
94
|
+ #ifndef TMC_SW_SCK
|
|
95
|
+ #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
|
|
96
|
+ #endif
|
|
97
|
+#endif
|
|
98
|
+
|
|
99
|
+//
|
|
100
|
+// Analog Inputs
|
|
101
|
+// 3.3V max when defined as an analog input
|
|
102
|
+//
|
|
103
|
+#define TEMP_0_PIN 0 // P0_23
|
|
104
|
+#define TEMP_BED_PIN 1 // P0_24
|
|
105
|
+#define TEMP_1_PIN 2 // P0_25
|
|
106
|
+#if ENABLED(FILAMENT_WIDTH_SENSOR)
|
|
107
|
+ #define FILWIDTH_PIN 3 // P0_26
|
|
108
|
+#else
|
|
109
|
+ #define TEMP_2_PIN 3 // P0_26
|
|
110
|
+#endif
|
|
111
|
+
|
|
112
|
+//
|
|
113
|
+// Heaters / Fans
|
|
114
|
+//
|
|
115
|
+#define HEATER_BED_PIN P2_05
|
|
116
|
+#define HEATER_0_PIN P2_07 // FET 1
|
|
117
|
+#define HEATER_1_PIN P1_23 // FET 2
|
|
118
|
+#if HOTENDS == 3
|
|
119
|
+ #define HEATER_2_PIN P1_22 // FET 3
|
|
120
|
+ #define AUTO_FAN_PIN P1_18 // FET 6
|
|
121
|
+#else
|
|
122
|
+ #define AUTO_FAN_PIN P1_22 // FET 3
|
|
123
|
+#endif
|
|
124
|
+#define FAN_PIN P2_06 // ReMix FET 4, Mini FET 3
|
|
125
|
+
|
|
126
|
+//
|
|
127
|
+// Auto fans
|
|
128
|
+//
|
|
129
|
+#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
130
|
+#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
131
|
+#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
132
|
+
|
|
133
|
+//
|
|
134
|
+// Misc. Functions
|
|
135
|
+//
|
|
136
|
+#define LED_PIN P4_28 // Play LED
|
|
137
|
+
|
|
138
|
+//
|
|
139
|
+// M3/M4/M5 - Spindle/Laser Control
|
|
140
|
+//
|
|
141
|
+#if ENABLED(SPINDLE_LASER_ENABLE)
|
|
142
|
+ #undef HEATER_0_PIN
|
|
143
|
+ #define SPINDLE_LASER_ENABLE_PIN P2_07 // FET 1
|
|
144
|
+ #undef HEATER_BED_PIN
|
|
145
|
+ #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
|
146
|
+ #undef FAN_PIN
|
|
147
|
+ #define SPINDLE_DIR_PIN P2_06 // ReMix FET 4, Mini FET 3
|
|
148
|
+#endif
|
|
149
|
+
|
|
150
|
+//
|
|
151
|
+// LCD / Controller
|
|
152
|
+//
|
|
153
|
+// LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
|
|
154
|
+// defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
|
|
155
|
+//
|
|
156
|
+// A remote SD card is currently not supported because the pins routed to the EXP2
|
|
157
|
+// connector are shared with the onboard SD card, and Marlin does not support reading
|
|
158
|
+// G-code files from the onboard SD card.
|
|
159
|
+//
|
|
160
|
+#if ENABLED(ULTRA_LCD)
|
|
161
|
+
|
|
162
|
+ #define BEEPER_PIN P1_31 // EXP1-1
|
|
163
|
+ #define SD_DETECT_PIN P0_27 // EXP2-7
|
|
164
|
+
|
|
165
|
+ #define BTN_EN1 P3_26 // EXP2-5
|
|
166
|
+ #define BTN_EN2 P3_25 // EXP2-3
|
|
167
|
+ #define BTN_ENC P1_30 // EXP1-2
|
|
168
|
+
|
|
169
|
+ #define LCD_PINS_RS P0_16 // EXP1-4
|
|
170
|
+ #define LCD_SDSS P0_28 // EXP2-4
|
|
171
|
+ #define LCD_PINS_ENABLE P0_18 // EXP1-3
|
|
172
|
+ #define LCD_PINS_D4 P0_15 // EXP1-5
|
|
173
|
+
|
|
174
|
+ #define KILL_PIN P2_11 // EXP2-10
|
|
175
|
+
|
|
176
|
+ #if ENABLED(SDSUPPORT)
|
|
177
|
+ #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
|
|
178
|
+ #endif
|
|
179
|
+
|
|
180
|
+#endif // ULTRA_LCD
|
|
181
|
+
|
|
182
|
+//
|
|
183
|
+// Ethernet pins
|
|
184
|
+//
|
|
185
|
+#define ENET_MDIO P1_17
|
|
186
|
+#define ENET_RX_ER P1_14
|
|
187
|
+#define ENET_RXD1 P1_10
|
|
188
|
+#define ENET_MOC P1_16
|
|
189
|
+#define REF_CLK P1_15
|
|
190
|
+#define ENET_RXD0 P1_09
|
|
191
|
+#define ENET_CRS P1_08
|
|
192
|
+#define ENET_TX_EN P1_04
|
|
193
|
+#define ENET_TXD0 P1_00
|
|
194
|
+#define ENET_TXD1 P1_01
|