Ver código fonte

[2.0.x] Add Morpheus Board support (#11651)

Pablo Crespo 6 anos atrás
pai
commit
409a0632af
3 arquivos alterados com 93 adições e 0 exclusões
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 90
    0
      Marlin/src/pins/pins_MORPHEUS.h

+ 1
- 0
Marlin/src/core/boards.h Ver arquivo

@@ -216,6 +216,7 @@
216 216
 #define BOARD_MALYAN_M200      1801   // STM32C8T6 Libmaple based stm32f1 controller
217 217
 #define BOARD_STM3R_MINI       1803   // STM32 Libmaple based stm32f1 controller
218 218
 #define BOARD_GTM32_PRO_VB     1805   // STM32f103VET6 controller
219
+#define BOARD_MORPHEUS         1806   // STM32F103C8/STM32F103CB Libmaple based stm32f1 controller
219 220
 
220 221
 //
221 222
 // STM32 ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h Ver arquivo

@@ -374,6 +374,8 @@
374 374
   #include "pins_CHITU3D.h"           // STM32F1                                    env:STM32F1
375 375
 #elif MB(GTM32_PRO_VB)
376 376
   #include "pins_GTM32_PRO_VB.h"      // STM32F1                                    env:STM32F1
377
+#elif MB(MORPHEUS)
378
+  #include "pins_MORPHEUS.h"          // STM32F1                                    env:STM32F1
377 379
 
378 380
 //
379 381
 // STM32 ARM Cortex-M4F

+ 90
- 0
Marlin/src/pins/pins_MORPHEUS.h Ver arquivo

@@ -0,0 +1,90 @@
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
+ /**
24
+  * 2017 Victor Perez Marlin for stm32f1 test
25
+  * 2018 Modified by Pablo Crespo for Morpheus Board (https://github.com/pscrespo/Morpheus-STM32)
26
+  */
27
+
28
+/**
29
+ * MORPHEUS Board pin assignments
30
+ */
31
+
32
+#ifndef __STM32F1__
33
+  #error "Oops!  Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu."
34
+#endif
35
+
36
+#define BOARD_NAME "Bluepill based board"
37
+
38
+//
39
+// Limit Switches
40
+//
41
+#define X_MIN_PIN          PB14
42
+#define Y_MIN_PIN          PB13
43
+#define Z_MIN_PIN          PB12
44
+
45
+//
46
+// Z Probe (when not Z_MIN_PIN)
47
+//
48
+#ifndef Z_MIN_PROBE_PIN
49
+  #define Z_MIN_PROBE_PIN  PB9
50
+#endif
51
+
52
+//
53
+// Steppers
54
+//
55
+// X & Y enable are the same
56
+#define X_STEP_PIN         PB7
57
+#define X_DIR_PIN          PB6
58
+#define X_ENABLE_PIN       PB8
59
+
60
+#define Y_STEP_PIN         PB5
61
+#define Y_DIR_PIN          PB4
62
+#define Y_ENABLE_PIN       PB8
63
+
64
+#define Z_STEP_PIN         PA15
65
+#define Z_DIR_PIN          PA10
66
+#define Z_ENABLE_PIN       PB3
67
+
68
+#define E0_STEP_PIN        PA8
69
+#define E0_DIR_PIN         PB15
70
+#define E0_ENABLE_PIN      PA9
71
+
72
+//
73
+// Temperature Sensors
74
+//
75
+#define TEMP_0_PIN         PB1   // Analog Input (HOTEND thermistor)
76
+#define TEMP_BED_PIN       PB0   // Analog Input (BED thermistor)
77
+
78
+//
79
+// Heaters / Fans
80
+//
81
+#define HEATER_0_PIN       PA2   // HOTEND MOSFET
82
+#define HEATER_BED_PIN     PA0   // BED MOSFET
83
+
84
+#define FAN_PIN            PA1   // FAN1 header on board - PRINT FAN
85
+
86
+//
87
+// Misc.
88
+//
89
+#define LED_PIN            PC13
90
+#define SDSS               PA3

Carregando…
Cancelar
Salvar