|
@@ -0,0 +1,88 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2020 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
|
+#pragma once
|
|
24
|
+
|
|
25
|
+#if NONE(__STM32F1__, STM32F1xx, STM32F0xx)
|
|
26
|
+ #error "Oops! Select a 'Malyan M300' board in 'Tools > Board.'"
|
|
27
|
+#endif
|
|
28
|
+
|
|
29
|
+#define BOARD_INFO_NAME "Malyan M300"
|
|
30
|
+
|
|
31
|
+//
|
|
32
|
+// EEPROM Emulation
|
|
33
|
+//
|
|
34
|
+#define FLASH_EEPROM_EMULATION
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// SD CARD SPI
|
|
38
|
+//
|
|
39
|
+#define SDSS SS_PIN
|
|
40
|
+
|
|
41
|
+//
|
|
42
|
+// Timers
|
|
43
|
+//
|
|
44
|
+#undef STEP_TIMER
|
|
45
|
+#undef TEMP_TIMER
|
|
46
|
+#define STEP_TIMER 6
|
|
47
|
+#define TEMP_TIMER 7
|
|
48
|
+
|
|
49
|
+//
|
|
50
|
+// Limit Switches
|
|
51
|
+//
|
|
52
|
+#define X_MAX_PIN PC13
|
|
53
|
+#define Y_MAX_PIN PC14
|
|
54
|
+#define Z_MAX_PIN PC15
|
|
55
|
+#define Z_MIN_PIN PB7
|
|
56
|
+
|
|
57
|
+//
|
|
58
|
+// Steppers
|
|
59
|
+//
|
|
60
|
+#define X_STEP_PIN PB14
|
|
61
|
+#define X_DIR_PIN PB13
|
|
62
|
+#define X_ENABLE_PIN PB10
|
|
63
|
+
|
|
64
|
+#define Y_STEP_PIN PB12
|
|
65
|
+#define Y_DIR_PIN PB11
|
|
66
|
+#define Y_ENABLE_PIN PB10
|
|
67
|
+
|
|
68
|
+#define Z_STEP_PIN PB2
|
|
69
|
+#define Z_DIR_PIN PB1
|
|
70
|
+#define Z_ENABLE_PIN PB10
|
|
71
|
+
|
|
72
|
+#define E0_STEP_PIN PA7
|
|
73
|
+#define E0_DIR_PIN PA6
|
|
74
|
+#define E0_ENABLE_PIN PB0
|
|
75
|
+
|
|
76
|
+//
|
|
77
|
+// Temperature Sensors
|
|
78
|
+//
|
|
79
|
+#define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
|
|
80
|
+#define TEMP_BED_PIN PA4 // Analog Input (BED thermistor)
|
|
81
|
+
|
|
82
|
+//
|
|
83
|
+// Heaters / Fans
|
|
84
|
+//
|
|
85
|
+#define HEATER_0_PIN PA1 // HOTEND0 MOSFET
|
|
86
|
+#define HEATER_BED_PIN PA5 // BED MOSFET
|
|
87
|
+
|
|
88
|
+#define AUTO_FAN_PIN PA8
|