Kaynağa Gözat

MKS Robin 2 (STM32F407ZE) base support (#16270)

Luu Lac 5 yıl önce
ebeveyn
işleme
baa101253a

+ 1
- 0
Marlin/src/core/boards.h Dosyayı Görüntüle

@@ -311,6 +311,7 @@
311 311
 #define BOARD_VAKE403D                4211  // VAkE 403D (STM32F446VET6)
312 312
 #define BOARD_FYSETC_S6               4212  // FYSETC S6 board
313 313
 #define BOARD_FLYF407ZG               4213  // FLYF407ZG board (STM32F407ZG)
314
+#define BOARD_MKS_ROBIN2              4214  // MKS_ROBIN2 (STM32F407ZE)
314 315
 
315 316
 //
316 317
 // ARM Cortex M7

+ 2
- 0
Marlin/src/pins/pins.h Dosyayı Görüntüle

@@ -539,6 +539,8 @@
539 539
   #include "stm32/pins_FYSETC_S6.h"             // STM32F4                                env:FYSETC_S6
540 540
 #elif MB(FLYF407ZG)
541 541
   #include "stm32/pins_FLYF407ZG.h"             // STM32F4                                env:FLYF407ZG
542
+#elif MB(MKS_ROBIN2)
543
+  #include "pins_MKS_ROBIN2.h"                  // STM32F4                                env:MKS_ROBIN2
542 544
 
543 545
 //
544 546
 // ARM Cortex M7

+ 102
- 0
Marlin/src/pins/stm32/pins_MKS_ROBIN2.h Dosyayı Görüntüle

@@ -0,0 +1,102 @@
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
+#ifndef STM32F4
25
+  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
+#elif HOTENDS > 2 || E_STEPPERS > 2
27
+  #error "MKS_ROBIN2 supports up to 2 hotends / E-steppers."
28
+#endif
29
+
30
+#ifndef BOARD_INFO_NAME
31
+  #define BOARD_NAME "MKS_ROBIN2"
32
+#endif
33
+
34
+#ifndef DEFAULT_MACHINE_NAME
35
+  #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
36
+#endif
37
+
38
+#define SRAM_EEPROM_EMULATION
39
+
40
+//
41
+// Limit Switches
42
+//
43
+#define X_MIN_PIN          PG8
44
+#define X_MAX_PIN          PG7
45
+#define Y_MIN_PIN          PG6
46
+#define Y_MAX_PIN          PG5
47
+#define Z_MIN_PIN          PG4
48
+#define Z_MAX_PIN          PG3
49
+
50
+//
51
+// Servos
52
+//
53
+#define SERVO0_PIN         PB0   // XS2-5
54
+#define SERVO1_PIN         PF7   // XS1-5
55
+#define SERVO2_PIN         PF8   // XS1-6
56
+
57
+//
58
+// Steppers
59
+//
60
+#define X_STEP_PIN         PE6
61
+#define X_DIR_PIN          PE5
62
+#define X_ENABLE_PIN       PC13
63
+
64
+#define Y_STEP_PIN         PE3
65
+#define Y_DIR_PIN          PE2
66
+#define Y_ENABLE_PIN       PE4
67
+
68
+#define Z_STEP_PIN         PE0
69
+#define Z_DIR_PIN          PB9
70
+#define Z_ENABLE_PIN       PE1
71
+
72
+#define E0_STEP_PIN        PG10
73
+#define E0_DIR_PIN         PG9
74
+#define E0_ENABLE_PIN      PB8
75
+
76
+#define E1_STEP_PIN        PD3
77
+#define E1_DIR_PIN         PA15
78
+#define E1_ENABLE_PIN      PD6
79
+
80
+
81
+//
82
+// Temperature Sensors
83
+//
84
+#define TEMP_0_PIN         PC1   // T1 <-> E0
85
+#define TEMP_1_PIN         PC2   // T2 <-> E1
86
+#define TEMP_BED_PIN       PC0   // T0 <-> Bed
87
+
88
+//
89
+// Heaters / Fans
90
+//
91
+#define HEATER_0_PIN       PF3   // Heater0
92
+#define HEATER_1_PIN       PF2   // Heater1
93
+#define HEATER_BED_PIN     PF4   // Hotbed
94
+#define FAN_PIN            PA7   // Fan0
95
+
96
+//
97
+// Misc. Functions
98
+//
99
+#define SDSS               -1    // PB12
100
+
101
+#define SD_DETECT_PIN      PF9
102
+#define BEEPER_PIN         PG2

Loading…
İptal
Kaydet