|
@@ -0,0 +1,134 @@
|
|
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 TARGET_STM32F1
|
|
24
|
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
|
25
|
+#endif
|
|
26
|
+
|
|
27
|
+#ifndef BOARD_NAME
|
|
28
|
+ #define BOARD_NAME "BIGTREE SKR mini V1.1"
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+// Ignore temp readings during develpment.
|
|
32
|
+//#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
|
|
33
|
+
|
|
34
|
+//
|
|
35
|
+// Limit Switches
|
|
36
|
+//
|
|
37
|
+#define X_MIN_PIN PC2
|
|
38
|
+#define X_MAX_PIN PA2
|
|
39
|
+#define Y_MIN_PIN PC1
|
|
40
|
+#define Y_MAX_PIN PA1
|
|
41
|
+#define Z_MIN_PIN PC0
|
|
42
|
+#define Z_MAX_PIN PC3
|
|
43
|
+
|
|
44
|
+//
|
|
45
|
+// Steppers
|
|
46
|
+//
|
|
47
|
+
|
|
48
|
+/**
|
|
49
|
+ * TODO: Currently using same Enable pin for all steppers.
|
|
50
|
+ */
|
|
51
|
+
|
|
52
|
+#define X_STEP_PIN PC6
|
|
53
|
+#define X_DIR_PIN PC7
|
|
54
|
+#define X_ENABLE_PIN PB15
|
|
55
|
+
|
|
56
|
+#define Y_STEP_PIN PB13
|
|
57
|
+#define Y_DIR_PIN PB14
|
|
58
|
+#define Y_ENABLE_PIN PB12
|
|
59
|
+
|
|
60
|
+#define Z_STEP_PIN PB10
|
|
61
|
+#define Z_DIR_PIN PB11
|
|
62
|
+#define Z_ENABLE_PIN PB2
|
|
63
|
+
|
|
64
|
+#define E0_STEP_PIN PC5
|
|
65
|
+#define E0_DIR_PIN PB0
|
|
66
|
+#define E0_ENABLE_PIN PC4
|
|
67
|
+
|
|
68
|
+#if ENABLED(TMC_USE_SW_SPI)
|
|
69
|
+ #define TMC_SW_SCK PB3
|
|
70
|
+ #define TMC_SW_MISO PB4
|
|
71
|
+ #define TMC_SW_MOSI PB5
|
|
72
|
+#endif
|
|
73
|
+
|
|
74
|
+//
|
|
75
|
+// Heaters / Fans
|
|
76
|
+//
|
|
77
|
+#define HEATER_0_PIN PA8
|
|
78
|
+#define FAN_PIN PC8
|
|
79
|
+#define HEATER_BED_PIN PC9
|
|
80
|
+
|
|
81
|
+//
|
|
82
|
+// Temperature Sensors
|
|
83
|
+//
|
|
84
|
+#define TEMP_BED_PIN PB1 // Analog Input
|
|
85
|
+#define TEMP_0_PIN PA0 // Analog Input
|
|
86
|
+
|
|
87
|
+//
|
|
88
|
+// LCD Pins
|
|
89
|
+//
|
|
90
|
+
|
|
91
|
+/**
|
|
92
|
+ * _____ _____
|
|
93
|
+ * NC | · · | GND 5V | · · | GND
|
|
94
|
+ * RESET | · · | 1.31(SD_DETECT) (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
|
|
95
|
+ * (MOSI)0.18 | · · | 3.25(BTN_EN2) (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
|
|
96
|
+ * (SD_SS)0.16 | · · | 3.26(BTN_EN1) (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
|
|
97
|
+ * (SCK)0.15 | · · | 0.17(MISO) (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
|
|
98
|
+ *  ̄ ̄  ̄ ̄
|
|
99
|
+ * EXP2 EXP1
|
|
100
|
+ */
|
|
101
|
+
|
|
102
|
+#if ENABLED(ULTRA_LCD)
|
|
103
|
+
|
|
104
|
+ #define BEEPER_PIN PC10
|
|
105
|
+ #define BTN_ENC PC11
|
|
106
|
+ #define LCD_PINS_RS PC12
|
|
107
|
+
|
|
108
|
+ #define BTN_EN1 PD2
|
|
109
|
+ #define BTN_EN2 PB8
|
|
110
|
+
|
|
111
|
+ #define LCD_PINS_ENABLE PB6
|
|
112
|
+ #define LCD_PINS_D4 PC13
|
|
113
|
+
|
|
114
|
+ #if ENABLED(ULTIPANEL)
|
|
115
|
+ #define LCD_PINS_D5 PB7
|
|
116
|
+ #define LCD_PINS_D6 PC15
|
|
117
|
+ #define LCD_PINS_D7 PC14
|
|
118
|
+ #endif
|
|
119
|
+
|
|
120
|
+#endif // ULTRA_LCD
|
|
121
|
+
|
|
122
|
+//
|
|
123
|
+// SD Card
|
|
124
|
+//
|
|
125
|
+
|
|
126
|
+// Marlin uses the SD drive attached to the LCD
|
|
127
|
+//#define STM32_SD_LCD
|
|
128
|
+
|
|
129
|
+#ifdef STM32_SD_LCD
|
|
130
|
+ #define SD_DETECT_PIN PB9
|
|
131
|
+ #define ENABLE_SPI3
|
|
132
|
+#else
|
|
133
|
+ #define SD_DETECT_PIN PA3
|
|
134
|
+#endif
|