|
@@ -0,0 +1,148 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (C) 2016 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
|
+
|
|
23
|
+#ifndef STM32F4
|
|
24
|
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
|
25
|
+#endif
|
|
26
|
+
|
|
27
|
+#ifndef MACHINE_NAME
|
|
28
|
+ #define MACHINE_NAME "STEVAL-3DP001V1"
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+#define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
|
|
32
|
+
|
|
33
|
+//
|
|
34
|
+// Limit Switches
|
|
35
|
+//
|
|
36
|
+#define X_MIN_PIN 38 // PD8 X_STOP
|
|
37
|
+#define X_MAX_PIN -1
|
|
38
|
+#define Y_MIN_PIN 39 // PD9 Y_STOP
|
|
39
|
+#define Y_MAX_PIN -1
|
|
40
|
+#define Z_MIN_PIN 40 // PD10 Z_STOP
|
|
41
|
+#define Z_MAX_PIN -1
|
|
42
|
+
|
|
43
|
+//
|
|
44
|
+// Z Probe (when not Z_MIN_PIN)
|
|
45
|
+//
|
|
46
|
+// #ifndef Z_MIN_PROBE_PIN
|
|
47
|
+// #define Z_MIN_PROBE_PIN 11 // PA4
|
|
48
|
+// #endif
|
|
49
|
+
|
|
50
|
+#define SCK_PIN 16 // PB13 SPI_S
|
|
51
|
+#define MISO_PIN 17 // PB14 SPI_M
|
|
52
|
+#define MOSI_PIN 18 // PB15 SPI_M
|
|
53
|
+
|
|
54
|
+//
|
|
55
|
+// Steppers
|
|
56
|
+//
|
|
57
|
+
|
|
58
|
+#define X_STEP_PIN 60 // PE14 X_PWM
|
|
59
|
+#define X_DIR_PIN 61 // PE15 X_DIR
|
|
60
|
+#define X_ENABLE_PIN 59 // PE13 X_RES
|
|
61
|
+#define X_CS_PIN 11 // PA4 SPI_CS
|
|
62
|
+
|
|
63
|
+#define Y_STEP_PIN 62 // PB10 Y_PWM
|
|
64
|
+#define Y_DIR_PIN 63 // PE9 Y_DIR
|
|
65
|
+#define Y_ENABLE_PIN 64 // PE10 Y_RES
|
|
66
|
+#define Y_CS_PIN 11 // PA4 SPI_CS
|
|
67
|
+
|
|
68
|
+#define Z_STEP_PIN 66 // PC6 Z_PWM
|
|
69
|
+#define Z_DIR_PIN 67 // PC0 Z_DIR
|
|
70
|
+#define Z_ENABLE_PIN 65 // PC15 Z_RES
|
|
71
|
+#define Z_CS_PIN 11 // PA4 SPI_CS
|
|
72
|
+
|
|
73
|
+#define E0_STEP_PIN 70 // PD12 E1_PW
|
|
74
|
+#define E0_DIR_PIN 68 // PC13 E1_DIR
|
|
75
|
+#define E0_ENABLE_PIN 69 // PC14 E1_RE
|
|
76
|
+#define E0_CS_PIN 11 // PA4 SPI_CS
|
|
77
|
+
|
|
78
|
+#define E1_STEP_PIN 72 // PE5 E2_PWM
|
|
79
|
+#define E1_DIR_PIN 73 // PE6 E2_DIR
|
|
80
|
+#define E1_ENABLE_PIN 71 // PE4 E2_RESE
|
|
81
|
+#define E1_CS_PIN 11 // PA4 SPI_CS
|
|
82
|
+
|
|
83
|
+#define E2_STEP_PIN 76 // PB8 E3_PWM
|
|
84
|
+#define E2_DIR_PIN 74 // PE2 E3_DIR
|
|
85
|
+#define E2_ENABLE_PIN 75 // PE3 E3_RESE
|
|
86
|
+#define E2_CS_PIN 11 // PA4 SPI_CS
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+//
|
|
90
|
+// Temperature Sensors
|
|
91
|
+//
|
|
92
|
+#define TEMP_0_PIN 52 // PA0 E1_THER
|
|
93
|
+#define TEMP_1_PIN 53 // PA1 E2_THER
|
|
94
|
+#define TEMP_BED_PIN 50 // PC2 BED_THE
|
|
95
|
+
|
|
96
|
+//
|
|
97
|
+// Heaters / Fans
|
|
98
|
+//
|
|
99
|
+#define HEATER_0_PIN 52 // PA0 E1_THER
|
|
100
|
+#define HEATER_1_PIN 53 // PA1 E2_THER
|
|
101
|
+#define HEATER_BED_PIN 50 // PC2 BED_THE
|
|
102
|
+
|
|
103
|
+#define FAN_PIN 56 // PC4 E1_FAN PWM pin, Part cooling fan
|
|
104
|
+#define FAN1_PIN 57 // PC5 E2_FAN PWM pin, Extruder fan
|
|
105
|
+#define FAN2_PIN 58 // PE8 E3_FAN PWM pin, Controller fan
|
|
106
|
+
|
|
107
|
+//
|
|
108
|
+// Misc functions
|
|
109
|
+//
|
|
110
|
+#define SDSS 11 // PA4 SPI_CS
|
|
111
|
+#define LED_PIN -1 // Heart beat
|
|
112
|
+#define PS_ON_PIN -1
|
|
113
|
+#define KILL_PIN -1
|
|
114
|
+#define PWR_LOSS -1 // Power loss / nAC_FAULT
|
|
115
|
+
|
|
116
|
+//
|
|
117
|
+// LCD / Controller
|
|
118
|
+//
|
|
119
|
+//#define SD_DETECT_PIN 24 // PA15 SD_CA
|
|
120
|
+//#define BEEPER_PIN 23 // PC9 SDIO_D1
|
|
121
|
+//#define LCD_PINS_RS 63 // PE9 Y_DIR
|
|
122
|
+//#define LCD_PINS_ENABLE 58 // PE8 E3_FAN
|
|
123
|
+//#define LCD_PINS_D4 15 // PB12 SPI_C
|
|
124
|
+//#define LCD_PINS_D5 16 // PB13 SPI_S
|
|
125
|
+//#define LCD_PINS_D6 17 // PB14 SPI_M
|
|
126
|
+//#define LCD_PINS_D7 18 // PB15 SPI_M
|
|
127
|
+//#define BTN_EN1 56 // PC4 E1_FAN
|
|
128
|
+//#define BTN_EN2 57 // PC5 E2_FAN
|
|
129
|
+//#define BTN_ENC 51 // PC3 BED_THE
|
|
130
|
+
|
|
131
|
+//
|
|
132
|
+// Filament runout detection
|
|
133
|
+//
|
|
134
|
+//#define FIL_RUNOUT_PIN 55 // PA3 BED_THE
|
|
135
|
+
|
|
136
|
+//
|
|
137
|
+// Extension pins
|
|
138
|
+//
|
|
139
|
+//#define EXT0_PIN 48 // PB0 E2_HEAT
|
|
140
|
+//#define EXT1_PIN 49 // PB1 E3_HEAT
|
|
141
|
+//#define EXT2_PIN // PB2
|
|
142
|
+//#define EXT3_PIN 38 // PD8 X_STOP
|
|
143
|
+//#define EXT4_PIN 39 // PD9 Y_STOP
|
|
144
|
+//#define EXT5_PIN 40 // PD10 Z_STOP
|
|
145
|
+//#define EXT6_PIN 41 // PD11
|
|
146
|
+//#define EXT7_PIN 70 // PD12 E1_PW
|
|
147
|
+//#define EXT8_PIN 62 // PB10 Y_PWM
|
|
148
|
+//#define EXT9_PIN // PB11
|