浏览代码

Add VAKE / VAKE403D support (#15631)

madmattco 5 年前
父节点
当前提交
049e8d5963
共有 3 个文件被更改,包括 197 次插入0 次删除
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 194
    0
      Marlin/src/pins/stm32/pins_VAKE403D.h

+ 1
- 0
Marlin/src/core/boards.h 查看文件

@@ -301,6 +301,7 @@
301 301
 #define BOARD_BIGTREE_BTT002_V1_0     4208  // BigTreeTech BTT002 v1.0 (STM32F407VE)
302 302
 #define BOARD_LERDGE_K                4209  // Lerdge K (STM32F407ZG)
303 303
 #define BOARD_LERDGE_X                4210  // Lerdge X (STM32F407VE)
304
+#define BOARD_VAKE403D                4211  // VAkE 403D (STM32F446VET6)
304 305
 
305 306
 //
306 307
 // ARM Cortex M7

+ 2
- 0
Marlin/src/pins/pins.h 查看文件

@@ -521,6 +521,8 @@
521 521
   #include "stm32/pins_LERDGE_K.h"              // STM32F4                                env:STM32F4
522 522
 #elif MB(LERDGE_X)
523 523
   #include "stm32/pins_LERDGE_X.h"              // STM32F4                                env:STM32F4
524
+#elif MB(VAKE403D)
525
+  #include "stm32/pins_VAKE403D.h"              // STM32F4                                env:STM32F4
524 526
 
525 527
 //
526 528
 // ARM Cortex M7

+ 194
- 0
Marlin/src/pins/stm32/pins_VAKE403D.h 查看文件

@@ -0,0 +1,194 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2019 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
+#pragma once
23
+
24
+#if !defined(STM32F4) && !defined(STM32F4xx)
25
+  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
+#elif HOTENDS > 2 || E_STEPPERS > 2
27
+  #error "STM32F4 supports up to 2 hotends / E-steppers."
28
+#endif
29
+
30
+#define DEFAULT_MACHINE_NAME "STM32F446VET6"
31
+#define BOARD_NAME           "STM32F4 VAkE"
32
+
33
+//#define I2C_EEPROM
34
+
35
+#define E2END 0xFFF // EEPROM end address (4kB)
36
+
37
+//
38
+// Servos
39
+//
40
+//#define SERVO0_PIN         PE13
41
+//#define SERVO1_PIN         PE14
42
+
43
+//
44
+// Limit Switches
45
+//
46
+#define X_STOP_PIN         PE10
47
+#define Y_STOP_PIN         PE9
48
+#define Z_STOP_PIN         PE8
49
+
50
+//
51
+// Z Probe (when not Z_MIN_PIN)
52
+//
53
+#ifndef Z_MIN_PROBE_PIN
54
+  #define Z_MIN_PROBE_PIN  PA4
55
+#endif
56
+
57
+//
58
+// Filament runout
59
+//
60
+#define FIL_RUNOUT_PIN     PA3
61
+
62
+//
63
+// Steppers
64
+//
65
+
66
+#define STEPPER_ENABLE_PIN PB2
67
+
68
+#define X_STEP_PIN         PC6   // X_STEP
69
+#define X_DIR_PIN          PC7   // X_DIR
70
+#define X_ENABLE_PIN       PB2   //
71
+#ifndef X_CS_PIN
72
+  #define X_CS_PIN         PC8   // X_CS
73
+#endif
74
+
75
+#define Y_STEP_PIN         PD9   // Y_STEP
76
+#define Y_DIR_PIN          PD10  // Y_DIR
77
+#define Y_ENABLE_PIN       PB2   //
78
+#ifndef Y_CS_PIN
79
+  #define Y_CS_PIN         PD11  // Y_CS
80
+#endif
81
+
82
+#define Z_STEP_PIN         PE15  // Z_STEP
83
+#define Z_DIR_PIN          PB10  // Z_DIR
84
+#define Z_ENABLE_PIN       PB2
85
+#ifndef Z_CS_PIN
86
+  #define Z_CS_PIN         PD8
87
+#endif
88
+
89
+#define E0_STEP_PIN        PB1
90
+#define E0_DIR_PIN         PB13
91
+#define E0_ENABLE_PIN      PB2
92
+#ifndef E0_CS_PIN
93
+  #define E0_CS_PIN        PE11
94
+#endif
95
+
96
+#define E1_STEP_PIN        PC4
97
+#define E1_DIR_PIN         PC5
98
+#define E1_ENABLE_PIN      PB2
99
+#ifndef E1_CS_PIN
100
+  #define E1_CS_PIN        PB0
101
+#endif
102
+
103
+#define SCK_PIN            PE12  // PA5   // SPI1 for SD card
104
+#define MISO_PIN           PE13  // PA6
105
+#define MOSI_PIN           PE14  // PA7
106
+
107
+// added for SD card : optional or not ???
108
+//#define SD_CHIP_SELECT_PIN SDSS   // The default chip select pin for the SD card is SS.
109
+// The following three pins must not be redefined for hardware SPI.
110
+//#define SPI_MOSI_PIN MOSI_PIN       // SPI Master Out Slave In pin
111
+//#define SPI_MISO_PIN MISO_PIN       // SPI Master In Slave Out pin
112
+//#define SPI_SCK_PIN SCK_PIN         // SPI Clock pin
113
+
114
+//
115
+// Temperature Sensors (Analog inputs)
116
+//
117
+
118
+#define TEMP_0_PIN         PC0   // Analog Input
119
+#define TEMP_1_PIN         PC1   // Analog Input
120
+#define TEMP_2_PIN         PC2   // Analog Input
121
+#define TEMP_3_PIN         PC3   // Analog Input
122
+#define TEMP_BED_PIN       PC3   // Analog Input
123
+
124
+//
125
+// Heaters / Fans
126
+//
127
+
128
+#define HEATER_0_PIN       PD15
129
+#define HEATER_1_PIN       PD14
130
+#define HEATER_BED_PIN     PD12
131
+
132
+#ifndef FAN_PIN
133
+  #define FAN_PIN          PD13
134
+#endif
135
+#define FAN1_PIN           PB5   // PA0
136
+#define FAN2_PIN           PB4   // PA1
137
+
138
+#define ORIG_E0_AUTO_FAN_PIN PD13   // Use this by NOT overriding E0_AUTO_FAN_PIN
139
+
140
+//
141
+// Misc. Functions
142
+//
143
+
144
+//#define CASE_LIGHT_PIN_CI PF13
145
+//#define CASE_LIGHT_PIN_DO PF14
146
+//#define NEOPIXEL_PIN      PF13
147
+
148
+//
149
+// Prusa i3 MK2 Multi Material Multiplexer Support
150
+//
151
+//#define E_MUX0_PIN         PG3
152
+//#define E_MUX1_PIN         PG4
153
+
154
+#define LED_PIN            PB14   // Alive
155
+#define PS_ON_PIN          PE0
156
+#define KILL_PIN           PD5
157
+#define POWER_LOSS_PIN     PA4   // ?? Power loss / nAC_FAULT
158
+
159
+#if ENABLED(SDSUPPORT)
160
+  #define SD_DETECT_PIN    PB7
161
+  #define SS_PIN           PB_15  // USD_CS -> CS for onboard SD
162
+#endif
163
+
164
+//
165
+// LCD / Controller
166
+//
167
+#if HAS_SPI_LCD
168
+  #if ENABLED(SDSUPPORT)
169
+    #define SDSS           PB6   // CS for SD card in LCD
170
+  #endif
171
+  #define BEEPER_PIN       PC9
172
+  #define LCD_PINS_RS      PC12
173
+  #define LCD_PINS_ENABLE  PD7
174
+  #define LCD_PINS_D4      PD1
175
+  #define LCD_PINS_D5      PD2
176
+  #define LCD_PINS_D6      PD3
177
+  #define LCD_PINS_D7      PD4
178
+  #define BTN_EN1          PD6
179
+  #define BTN_EN2          PD0
180
+  #define BTN_ENC          PB12
181
+#endif
182
+
183
+//
184
+// ST7920 Delays
185
+//
186
+#ifndef ST7920_DELAY_1
187
+  #define ST7920_DELAY_1 DELAY_NS(96)
188
+#endif
189
+#ifndef ST7920_DELAY_2
190
+  #define ST7920_DELAY_2 DELAY_NS(48)
191
+#endif
192
+#ifndef ST7920_DELAY_3
193
+  #define ST7920_DELAY_3 DELAY_NS(715)
194
+#endif

正在加载...
取消
保存