Browse Source

📌 Creality 4.3.1 board variants (#22704)

Co-authored-by: Chico <jjjm6000@gmail.com>
Scott Lahteine 3 years ago
parent
commit
29d3996a55
No account linked to committer's email address

+ 15
- 11
Marlin/src/core/boards.h View File

340
 #define BOARD_CREALITY_V427           4040  // Creality v4.2.7 (STM32F103RE)
340
 #define BOARD_CREALITY_V427           4040  // Creality v4.2.7 (STM32F103RE)
341
 #define BOARD_CREALITY_V4210          4041  // Creality v4.2.10 (STM32F103RE) as found in the CR-30
341
 #define BOARD_CREALITY_V4210          4041  // Creality v4.2.10 (STM32F103RE) as found in the CR-30
342
 #define BOARD_CREALITY_V431           4042  // Creality v4.3.1 (STM32F103RE)
342
 #define BOARD_CREALITY_V431           4042  // Creality v4.3.1 (STM32F103RE)
343
-#define BOARD_CREALITY_V452           4043  // Creality v4.5.2 (STM32F103RE)
344
-#define BOARD_CREALITY_V453           4044  // Creality v4.5.3 (STM32F103RE)
345
-#define BOARD_TRIGORILLA_PRO          4045  // Trigorilla Pro (STM32F103ZET6)
346
-#define BOARD_FLY_MINI                4046  // FLYmaker FLY MINI (STM32F103RCT6)
347
-#define BOARD_FLSUN_HISPEED           4047  // FLSUN HiSpeedV1 (STM32F103VET6)
348
-#define BOARD_BEAST                   4048  // STM32F103RET6 Libmaple-based controller
349
-#define BOARD_MINGDA_MPX_ARM_MINI     4049  // STM32F103ZET6 Mingda MD-16
350
-#define BOARD_GTM32_PRO_VD            4050  // STM32F103VET6 controller
351
-#define BOARD_ZONESTAR_ZM3E2          4051  // Zonestar ZM3E2    (STM32F103RCT6)
352
-#define BOARD_ZONESTAR_ZM3E4          4052  // Zonestar ZM3E4 V1 (STM32F103VCT6)
353
-#define BOARD_ZONESTAR_ZM3E4V2        4053  // Zonestar ZM3E4 V2 (STM32F103VCT6)
343
+#define BOARD_CREALITY_V431_A         4043  // Creality v4.3.1a (STM32F103RE)
344
+#define BOARD_CREALITY_V431_B         4044  // Creality v4.3.1b (STM32F103RE)
345
+#define BOARD_CREALITY_V431_C         4045  // Creality v4.3.1c (STM32F103RE)
346
+#define BOARD_CREALITY_V431_D         4046  // Creality v4.3.1d (STM32F103RE)
347
+#define BOARD_CREALITY_V452           4047  // Creality v4.5.2 (STM32F103RE)
348
+#define BOARD_CREALITY_V453           4048  // Creality v4.5.3 (STM32F103RE)
349
+#define BOARD_TRIGORILLA_PRO          4049  // Trigorilla Pro (STM32F103ZET6)
350
+#define BOARD_FLY_MINI                4050  // FLYmaker FLY MINI (STM32F103RCT6)
351
+#define BOARD_FLSUN_HISPEED           4051  // FLSUN HiSpeedV1 (STM32F103VET6)
352
+#define BOARD_BEAST                   4052  // STM32F103RET6 Libmaple-based controller
353
+#define BOARD_MINGDA_MPX_ARM_MINI     4053  // STM32F103ZET6 Mingda MD-16
354
+#define BOARD_GTM32_PRO_VD            4054  // STM32F103VET6 controller
355
+#define BOARD_ZONESTAR_ZM3E2          4055  // Zonestar ZM3E2    (STM32F103RCT6)
356
+#define BOARD_ZONESTAR_ZM3E4          4056  // Zonestar ZM3E4 V1 (STM32F103VCT6)
357
+#define BOARD_ZONESTAR_ZM3E4V2        4057  // Zonestar ZM3E4 V2 (STM32F103VCT6)
354
 
358
 
355
 //
359
 //
356
 // ARM Cortex-M4F
360
 // ARM Cortex-M4F

+ 1
- 1
Marlin/src/pins/pins.h View File

549
   #include "stm32f1/pins_CREALITY_V4210.h"      // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
549
   #include "stm32f1/pins_CREALITY_V4210.h"      // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
550
 #elif MB(CREALITY_V427)
550
 #elif MB(CREALITY_V427)
551
   #include "stm32f1/pins_CREALITY_V427.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
551
   #include "stm32f1/pins_CREALITY_V427.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
552
-#elif MB(CREALITY_V431)
552
+#elif MB(CREALITY_V431, CREALITY_V431_A, CREALITY_V431_B, CREALITY_V431_C, CREALITY_V431_D)
553
   #include "stm32f1/pins_CREALITY_V431.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
553
   #include "stm32f1/pins_CREALITY_V431.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
554
 #elif MB(CREALITY_V452)
554
 #elif MB(CREALITY_V452)
555
   #include "stm32f1/pins_CREALITY_V452.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
555
   #include "stm32f1/pins_CREALITY_V452.h"       // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple

+ 4
- 4
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h View File

88
 //
88
 //
89
 // Steppers
89
 // Steppers
90
 //
90
 //
91
-#define X_ENABLE_PIN                        PC3
92
 #ifndef X_STEP_PIN
91
 #ifndef X_STEP_PIN
93
   #define X_STEP_PIN                        PC2
92
   #define X_STEP_PIN                        PC2
94
 #endif
93
 #endif
95
 #ifndef X_DIR_PIN
94
 #ifndef X_DIR_PIN
96
   #define X_DIR_PIN                         PB9
95
   #define X_DIR_PIN                         PB9
97
 #endif
96
 #endif
97
+#define X_ENABLE_PIN                        PC3   // Shared
98
 
98
 
99
-#define Y_ENABLE_PIN                        PC3
100
 #ifndef Y_STEP_PIN
99
 #ifndef Y_STEP_PIN
101
   #define Y_STEP_PIN                        PB8
100
   #define Y_STEP_PIN                        PB8
102
 #endif
101
 #endif
103
 #ifndef Y_DIR_PIN
102
 #ifndef Y_DIR_PIN
104
   #define Y_DIR_PIN                         PB7
103
   #define Y_DIR_PIN                         PB7
105
 #endif
104
 #endif
105
+#define Y_ENABLE_PIN                X_ENABLE_PIN
106
 
106
 
107
-#define Z_ENABLE_PIN                        PC3
108
 #ifndef Z_STEP_PIN
107
 #ifndef Z_STEP_PIN
109
   #define Z_STEP_PIN                        PB6
108
   #define Z_STEP_PIN                        PB6
110
 #endif
109
 #endif
111
 #ifndef Z_DIR_PIN
110
 #ifndef Z_DIR_PIN
112
   #define Z_DIR_PIN                         PB5
111
   #define Z_DIR_PIN                         PB5
113
 #endif
112
 #endif
113
+#define Z_ENABLE_PIN                X_ENABLE_PIN
114
 
114
 
115
-#define E0_ENABLE_PIN                       PC3
116
 #ifndef E0_STEP_PIN
115
 #ifndef E0_STEP_PIN
117
   #define E0_STEP_PIN                       PB4
116
   #define E0_STEP_PIN                       PB4
118
 #endif
117
 #endif
119
 #ifndef E0_DIR_PIN
118
 #ifndef E0_DIR_PIN
120
   #define E0_DIR_PIN                        PB3
119
   #define E0_DIR_PIN                        PB3
121
 #endif
120
 #endif
121
+#define E0_ENABLE_PIN               X_ENABLE_PIN
122
 
122
 
123
 //
123
 //
124
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
124
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role

+ 15
- 4
Marlin/src/pins/stm32f1/pins_CREALITY_V431.h View File

31
 //
31
 //
32
 // Steppers
32
 // Steppers
33
 //
33
 //
34
-#define X_STEP_PIN                        PB8
35
-#define X_DIR_PIN                         PB7
34
+#if MB(CREALITY_V431, CREALITY_V431_A, CREALITY_V431_B)
36
 
35
 
37
-#define Y_STEP_PIN                        PC2
38
-#define Y_DIR_PIN                         PB9
36
+  #define X_STEP_PIN                        PB8
37
+  #define X_DIR_PIN                         PB7
38
+
39
+  #define Y_STEP_PIN                        PC2
40
+  #define Y_DIR_PIN                         PB9
41
+
42
+#endif
43
+
44
+#if MB(CREALITY_V431_B, CREALITY_V431_C)
45
+
46
+  #define E0_STEP_PIN                       PB3
47
+  #define E0_DIR_PIN                        PB4
48
+
49
+#endif
39
 
50
 
40
 #include "pins_CREALITY_V4.h"
51
 #include "pins_CREALITY_V4.h"

Loading…
Cancel
Save