|
@@ -0,0 +1,90 @@
|
|
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
|
+ /**
|
|
24
|
+ * 2017 Victor Perez Marlin for stm32f1 test
|
|
25
|
+ * 2018 Modified by Pablo Crespo for Morpheus Board (https://github.com/pscrespo/Morpheus-STM32)
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+/**
|
|
29
|
+ * MORPHEUS Board pin assignments
|
|
30
|
+ */
|
|
31
|
+
|
|
32
|
+#ifndef __STM32F1__
|
|
33
|
+ #error "Oops! Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu."
|
|
34
|
+#endif
|
|
35
|
+
|
|
36
|
+#define BOARD_NAME "Bluepill based board"
|
|
37
|
+
|
|
38
|
+//
|
|
39
|
+// Limit Switches
|
|
40
|
+//
|
|
41
|
+#define X_MIN_PIN PB14
|
|
42
|
+#define Y_MIN_PIN PB13
|
|
43
|
+#define Z_MIN_PIN PB12
|
|
44
|
+
|
|
45
|
+//
|
|
46
|
+// Z Probe (when not Z_MIN_PIN)
|
|
47
|
+//
|
|
48
|
+#ifndef Z_MIN_PROBE_PIN
|
|
49
|
+ #define Z_MIN_PROBE_PIN PB9
|
|
50
|
+#endif
|
|
51
|
+
|
|
52
|
+//
|
|
53
|
+// Steppers
|
|
54
|
+//
|
|
55
|
+// X & Y enable are the same
|
|
56
|
+#define X_STEP_PIN PB7
|
|
57
|
+#define X_DIR_PIN PB6
|
|
58
|
+#define X_ENABLE_PIN PB8
|
|
59
|
+
|
|
60
|
+#define Y_STEP_PIN PB5
|
|
61
|
+#define Y_DIR_PIN PB4
|
|
62
|
+#define Y_ENABLE_PIN PB8
|
|
63
|
+
|
|
64
|
+#define Z_STEP_PIN PA15
|
|
65
|
+#define Z_DIR_PIN PA10
|
|
66
|
+#define Z_ENABLE_PIN PB3
|
|
67
|
+
|
|
68
|
+#define E0_STEP_PIN PA8
|
|
69
|
+#define E0_DIR_PIN PB15
|
|
70
|
+#define E0_ENABLE_PIN PA9
|
|
71
|
+
|
|
72
|
+//
|
|
73
|
+// Temperature Sensors
|
|
74
|
+//
|
|
75
|
+#define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
|
|
76
|
+#define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)
|
|
77
|
+
|
|
78
|
+//
|
|
79
|
+// Heaters / Fans
|
|
80
|
+//
|
|
81
|
+#define HEATER_0_PIN PA2 // HOTEND MOSFET
|
|
82
|
+#define HEATER_BED_PIN PA0 // BED MOSFET
|
|
83
|
+
|
|
84
|
+#define FAN_PIN PA1 // FAN1 header on board - PRINT FAN
|
|
85
|
+
|
|
86
|
+//
|
|
87
|
+// Misc.
|
|
88
|
+//
|
|
89
|
+#define LED_PIN PC13
|
|
90
|
+#define SDSS PA3
|