|
@@ -0,0 +1,113 @@
|
|
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
|
+/**
|
|
24
|
+ * Creality v4.5.2 (STM32F103RET6) board pin assignments
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#if NOT_TARGET(__STM32F1__)
|
|
28
|
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
|
29
|
+#elif HOTENDS > 1 || E_STEPPERS > 1
|
|
30
|
+ #error "CREALITY_V452 supports up to 1 hotends / E-steppers. Comment out this line to continue."
|
|
31
|
+#endif
|
|
32
|
+
|
|
33
|
+#define BOARD_NAME "Creality v4.5.2"
|
|
34
|
+#define DEFAULT_MACHINE_NAME "Creality3D"
|
|
35
|
+
|
|
36
|
+#define BOARD_NO_NATIVE_USB
|
|
37
|
+
|
|
38
|
+//
|
|
39
|
+// EEPROM
|
|
40
|
+//
|
|
41
|
+#if NO_EEPROM_SELECTED
|
|
42
|
+ #define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
|
43
|
+ //#define SDCARD_EEPROM_EMULATION
|
|
44
|
+#endif
|
|
45
|
+
|
|
46
|
+#if ENABLED(IIC_BL24CXX_EEPROM)
|
|
47
|
+ #define IIC_EEPROM_SDA PA11
|
|
48
|
+ #define IIC_EEPROM_SCL PA12
|
|
49
|
+ #define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
|
50
|
+#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
|
51
|
+ #define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
|
52
|
+#endif
|
|
53
|
+
|
|
54
|
+//
|
|
55
|
+// Limit Switches
|
|
56
|
+//
|
|
57
|
+#define X_MIN_PIN PC4
|
|
58
|
+// #define X_MAX_PIN PA7
|
|
59
|
+#define Y_MIN_PIN PC5
|
|
60
|
+#define Z_MIN_PIN PA4
|
|
61
|
+#define PROBE_TARE_PIN PA5
|
|
62
|
+
|
|
63
|
+//
|
|
64
|
+// Steppers
|
|
65
|
+//
|
|
66
|
+#define X_ENABLE_PIN PC3
|
|
67
|
+#define X_STEP_PIN PB8
|
|
68
|
+#define X_DIR_PIN PB7
|
|
69
|
+
|
|
70
|
+#define Y_ENABLE_PIN PC3
|
|
71
|
+#define Y_STEP_PIN PB6
|
|
72
|
+#define Y_DIR_PIN PB5
|
|
73
|
+
|
|
74
|
+#define Z_ENABLE_PIN PC3
|
|
75
|
+#define Z_STEP_PIN PB4
|
|
76
|
+#define Z_DIR_PIN PB3
|
|
77
|
+
|
|
78
|
+#define E0_ENABLE_PIN PC3
|
|
79
|
+#define E0_STEP_PIN PC2
|
|
80
|
+#define E0_DIR_PIN PB9
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+//
|
|
84
|
+// Release PB4 (Z_STEP_PIN) from JTAG NRST role
|
|
85
|
+//
|
|
86
|
+#define DISABLE_DEBUG
|
|
87
|
+
|
|
88
|
+//
|
|
89
|
+// Temperature Sensors
|
|
90
|
+//
|
|
91
|
+#define TEMP_0_PIN PB1 // TH1
|
|
92
|
+#define TEMP_BED_PIN PB0 // TB1
|
|
93
|
+
|
|
94
|
+//
|
|
95
|
+// Heaters / Fans
|
|
96
|
+
|
|
97
|
+#define HEATER_0_PIN PA1 // HEATER1
|
|
98
|
+#define HEATER_BED_PIN PA2 // HOT BED
|
|
99
|
+
|
|
100
|
+#define FAN_PIN PA0 // FAN
|
|
101
|
+#define FAN_SOFT_PWM
|
|
102
|
+
|
|
103
|
+/* SD card detect */
|
|
104
|
+#define SD_DETECT_PIN PC7
|
|
105
|
+#define NO_SD_HOST_DRIVE // SD is only seen by the printer
|
|
106
|
+
|
|
107
|
+#define SDIO_SUPPORT // Extra added by Creality
|
|
108
|
+#define SDIO_CLOCK 6000000 // In original source code overridden by Creality in sdio.h
|
|
109
|
+
|
|
110
|
+#define CASE_LIGHT_PIN PA6
|
|
111
|
+
|
|
112
|
+#define FIL_RUNOUT_PIN PA7
|
|
113
|
+#define PROBE_ENABLE_PIN PC6 // Optoswitch to Enable Z Probe
|