Explorar el Código

Add AZSMZ Mini (#8005)

* Add AZSMZ Mini

* Remove tabs, adjust spacing

* Renumber boards to group by family

* Patch up spacing

* Tweak
jeffyl hace 6 años
padre
commit
7b3098bbd5
Se han modificado 3 ficheros con 154 adiciones y 9 borrados
  1. 8
    8
      Marlin/src/core/boards.h
  2. 3
    1
      Marlin/src/pins/pins.h
  3. 143
    0
      Marlin/src/pins/pins_AZSMZ_MINI.h

+ 8
- 8
Marlin/src/core/boards.h Ver fichero

@@ -124,14 +124,14 @@
124 124
 #define BOARD_RAMPS4DUE_EEF    1546  // RAMPS4DUE (Power outputs: Hotend0, Hotend1, Fan)
125 125
 #define BOARD_RAMPS4DUE_SF     1548  // RAMPS4DUE (Power outputs: Spindle, Controller Fan)
126 126
 #define BOARD_ALLIGATOR        1602  // Alligator Board R2
127
-#define BOARD_RAMPS_14_RE_ARM_EFB      1743   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
128
-#define BOARD_RAMPS_14_RE_ARM_EEB      1744   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
129
-#define BOARD_RAMPS_14_RE_ARM_EFF      1745   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
130
-#define BOARD_RAMPS_14_RE_ARM_EEF      1746   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
131
-#define BOARD_RAMPS_14_RE_ARM_SF       1748   // Re-ARM with RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
132
-#define BOARD_STM32F1R         		   1800   // STM3R Libmaple based stm32f1 controller
133
-#define BOARD_MKS_SBASE        		   1850   // MKS-Sbase (Power outputs: Hotend0, Hotend1, Bed, Fan)
134
-
127
+#define BOARD_RAMPS_14_RE_ARM_EFB 1743   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
128
+#define BOARD_RAMPS_14_RE_ARM_EEB 1744   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
129
+#define BOARD_RAMPS_14_RE_ARM_EFF 1745   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
130
+#define BOARD_RAMPS_14_RE_ARM_EEF 1746   // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
131
+#define BOARD_RAMPS_14_RE_ARM_SF  1748   // Re-ARM with RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
132
+#define BOARD_MKS_SBASE           1750   // MKS-Sbase (Power outputs: Hotend0, Hotend1, Bed, Fan)
133
+#define BOARD_AZSMZ_MINI          1751   // AZSMZ Mini
134
+#define BOARD_STM32F1R         1800   // STM3R Libmaple based STM32F1 controller
135 135
 
136 136
 
137 137
 #define MB(board) (MOTHERBOARD==BOARD_##board)

+ 3
- 1
Marlin/src/pins/pins.h Ver fichero

@@ -302,8 +302,10 @@
302 302
   #include "pins_ALLIGATOR_R2.h"
303 303
 #elif MB(STM32F1R)
304 304
   #include "pins_STM32F1R.h"
305
-  #elif MB(MKS_SBASE)
305
+#elif MB(MKS_SBASE)
306 306
   #include "pins_MKS_SBASE.h"
307
+#elif MB(AZSMZ_MINI)
308
+  #include "pins_AZSMZ_MINI.h"
307 309
 #else
308 310
   #error "Unknown MOTHERBOARD value set in Configuration.h"
309 311
 #endif

+ 143
- 0
Marlin/src/pins/pins_AZSMZ_MINI.h Ver fichero

@@ -0,0 +1,143 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2017 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
+ * AZSMZ MINI pin assignments
25
+ */
26
+
27
+//#if !defined(TARGET_LPC1768)
28
+#if DISABLED(IS_REARM)
29
+  #error "Oops!  Make sure you have Re-Arm selected."
30
+#endif
31
+
32
+#ifndef BOARD_NAME
33
+  #define BOARD_NAME "AZSMZ MINI"
34
+#endif
35
+
36
+#define LARGE_FLASH true
37
+
38
+//
39
+// Servos
40
+//
41
+#define SERVO0_PIN         53
42
+    
43
+//
44
+// Limit Switches
45
+//
46
+#define X_MIN_PIN           3
47
+#define Y_MIN_PIN          14
48
+#define Z_MIN_PIN          18
49
+#define Z_MAX_PIN          19
50
+
51
+//
52
+// Steppers
53
+//
54
+#define X_STEP_PIN         26
55
+#define X_DIR_PIN          28
56
+#define X_ENABLE_PIN       24
57
+
58
+#define Y_STEP_PIN         54
59
+#define Y_DIR_PIN          55
60
+#define Y_ENABLE_PIN       38
61
+
62
+#define Z_STEP_PIN         60
63
+#define Z_DIR_PIN          61
64
+#define Z_ENABLE_PIN       56
65
+
66
+#define E0_STEP_PIN        46
67
+#define E0_DIR_PIN         48
68
+#define E0_ENABLE_PIN      62
69
+
70
+#define E1_STEP_PIN        36
71
+#define E1_DIR_PIN         34
72
+#define E1_ENABLE_PIN      30
73
+
74
+//
75
+// Temperature Sensors
76
+//  3.3V max when defined as an analog input
77
+//
78
+#define TEMP_0_PIN          0  // A0 (TH1)
79
+#define TEMP_BED_PIN        1  // A1 (TH2)
80
+#define TEMP_1_PIN          2  // A2 (TH3)
81
+
82
+//
83
+// Heaters / Fans
84
+//
85
+// EFB
86
+#define HEATER_0_PIN        8
87
+#define HEATER_BED_PIN     10
88
+#define FAN_PIN             9
89
+#define FAN1_PIN           63
90
+
91
+#if ENABLED(AZSMZ_12864)
92
+  #define BEEPER_PIN       37
93
+  #define DOGLCD_A0        59
94
+  #define DOGLCD_CS        41
95
+  #define BTN_EN1          13
96
+  #define BTN_EN2          15
97
+  #define BTN_ENC          31
98
+  #define LCD_SDSS         16
99
+  #define SD_DETECT_PIN    33
100
+#endif
101
+
102
+//
103
+// Ethernet pins
104
+//
105
+#define ENET_MDIO          71
106
+#define ENET_RX_ER         73
107
+#define ENET_RXD1          75
108
+#define ENET_MOC           70
109
+#define REF_CLK            72
110
+#define ENET_RXD0          74
111
+#define ENET_CRS           76
112
+#define ENET_TX_EN         77
113
+#define ENET_TXD0          78
114
+#define ENET_TXD1          79
115
+
116
+/**
117
+ *  PWMs
118
+ *
119
+ *  There are 6 PWMs.  Each PWM can be assigned to one of two pins.
120
+ *
121
+ *  SERVO2 does NOT have a PWM assigned to it.
122
+ *
123
+ *  PWM1.1   DIO4    SERVO3_PIN       FIL_RUNOUT_PIN   5V output, PWM
124
+ *  PWM1.1   DIO26   E0_STEP_PIN
125
+ *  PWM1.2   DIO11   SERVO0_PIN
126
+ *  PWM1.2   DIO54   X_STEP_PIN
127
+ *  PWM1.3   DIO6    SERVO1_PIN       J5-1
128
+ *  PWM1.3   DIO60   Y_STEP_PIN
129
+ *  PWM1.4   DIO53   SDSS(SSEL0)      J3-5  AUX-3
130
+ *  PWM1.4   DIO46   Z_STEP_PIN
131
+ *  PWM1.5   DIO3    X_MIN_PIN        10K PULLUP TO 3.3v, 1K SERIES
132
+ *  PWM1.5   DIO9    RAMPS_D9_PIN
133
+ *  PWM1.6   DIO14   Y_MIN_PIN        10K PULLUP TO 3.3v, 1K SERIES
134
+ *  PWM1.6   DIO10   RAMPS_D10_PIN
135
+ */
136
+
137
+ /**
138
+  * Special pins
139
+  *   D37 - not 5V tolerant
140
+  *   D49 - not 5V tolerant
141
+  *   D57 - open collector
142
+  *   D58 - open collector
143
+  */

Loading…
Cancelar
Guardar