Browse Source

✨ Chitu3D V9 board (#22401)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
VTXtruder 4 years ago
parent
commit
50ada44e7e
No account linked to committer's email address

+ 13
- 12
Marlin/src/core/boards.h View File

@@ -333,18 +333,19 @@
333 333
 #define BOARD_CCROBOT_MEEB_3DP        4035  // ccrobot-online.com MEEB_3DP (STM32F103RC)
334 334
 #define BOARD_CHITU3D_V5              4036  // Chitu3D TronXY X5SA V5 Board
335 335
 #define BOARD_CHITU3D_V6              4037  // Chitu3D TronXY X5SA V6 Board
336
-#define BOARD_CREALITY_V4             4038  // Creality v4.x (STM32F103RE)
337
-#define BOARD_CREALITY_V427           4039  // Creality v4.2.7 (STM32F103RE)
338
-#define BOARD_CREALITY_V4210          4040  // Creality v4.2.10 (STM32F103RE) as found in the CR-30
339
-#define BOARD_CREALITY_V431           4041  // Creality v4.3.1 (STM32F103RE)
340
-#define BOARD_CREALITY_V452           4042  // Creality v4.5.2 (STM32F103RE)
341
-#define BOARD_CREALITY_V453           4043  // Creality v4.5.3 (STM32F103RE)
342
-#define BOARD_TRIGORILLA_PRO          4044  // Trigorilla Pro (STM32F103ZET6)
343
-#define BOARD_FLY_MINI                4045  // FLYmaker FLY MINI (STM32F103RCT6)
344
-#define BOARD_FLSUN_HISPEED           4046  // FLSUN HiSpeedV1 (STM32F103VET6)
345
-#define BOARD_BEAST                   4047  // STM32F103RET6 Libmaple-based controller
346
-#define BOARD_MINGDA_MPX_ARM_MINI     4048  // STM32F103ZET6 Mingda MD-16
347
-#define BOARD_GTM32_PRO_VD            4049  // STM32F103VET6 controller
336
+#define BOARD_CHITU3D_V9              4038  // Chitu3D TronXY X5SA V9 Board
337
+#define BOARD_CREALITY_V4             4039  // Creality v4.x (STM32F103RE)
338
+#define BOARD_CREALITY_V427           4040  // Creality v4.2.7 (STM32F103RE)
339
+#define BOARD_CREALITY_V4210          4041  // Creality v4.2.10 (STM32F103RE) as found in the CR-30
340
+#define BOARD_CREALITY_V431           4042  // Creality v4.3.1 (STM32F103RE)
341
+#define BOARD_CREALITY_V452           4043  // Creality v4.5.2 (STM32F103RE)
342
+#define BOARD_CREALITY_V453           4044  // Creality v4.5.3 (STM32F103RE)
343
+#define BOARD_TRIGORILLA_PRO          4045  // Trigorilla Pro (STM32F103ZET6)
344
+#define BOARD_FLY_MINI                4046  // FLYmaker FLY MINI (STM32F103RCT6)
345
+#define BOARD_FLSUN_HISPEED           4047  // FLSUN HiSpeedV1 (STM32F103VET6)
346
+#define BOARD_BEAST                   4048  // STM32F103RET6 Libmaple-based controller
347
+#define BOARD_MINGDA_MPX_ARM_MINI     4049  // STM32F103ZET6 Mingda MD-16
348
+#define BOARD_GTM32_PRO_VD            4050  // STM32F103VET6 controller
348 349
 
349 350
 //
350 351
 // ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -537,6 +537,8 @@
537 537
   #include "stm32f1/pins_CHITU3D_V5.h"          // STM32F1                                env:chitu_f103 env:chitu_f103_maple env:chitu_v5_gpio_init env:chitu_v5_gpio_init_maple
538 538
 #elif MB(CHITU3D_V6)
539 539
   #include "stm32f1/pins_CHITU3D_V6.h"          // STM32F1                                env:chitu_f103 env:chitu_f103_maple
540
+#elif MB(CHITU3D_V9)
541
+  #include "stm32f1/pins_CHITU3D_V9.h"          // STM32F1                                env:chitu_f103 env:chitu_f103_maple
540 542
 #elif MB(CREALITY_V4)
541 543
   #include "stm32f1/pins_CREALITY_V4.h"         // STM32F1                                env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
542 544
 #elif MB(CREALITY_V4210)

+ 1
- 6
Marlin/src/pins/stm32f1/pins_CHITU3D.h View File

@@ -81,12 +81,7 @@
81 81
 // Heaters / Fans
82 82
 //
83 83
 #define HEATER_0_PIN                        PD12  // HOT-END
84
-#define HEATER_1_PIN                        -1
85
-#define HEATER_2_PIN                        -1
86
-
87 84
 #define HEATER_BED_PIN                      PG11  // HOT-BED
88
-#define HEATER_BED2_PIN                     -1    // BED2
89
-#define HEATER_BED3_PIN                     -1    // BED3
90 85
 
91 86
 #ifndef FAN_PIN
92 87
   #define FAN_PIN                           PG14  // MAIN BOARD FAN
@@ -97,8 +92,8 @@
97 92
 //
98 93
 // Temperature Sensors
99 94
 //
100
-#define TEMP_BED_PIN                        PA0   // Analog Input
101 95
 #define TEMP_0_PIN                          PA1   // Analog Input
96
+#define TEMP_BED_PIN                        PA0   // Analog Input
102 97
 
103 98
 //
104 99
 // LCD Pins

+ 3
- 143
Marlin/src/pins/stm32f1/pins_CHITU3D_V5.h View File

@@ -21,148 +21,8 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "env_validate.h"
24
+#define BOARD_INFO_NAME "Chitu3D V5"
25 25
 
26
-/**
27
- * 2017 Victor Perez Marlin for stm32f1 test
28
- */
29
-
30
-#define BOARD_INFO_NAME      "Chitu3D V5"
31
-#define DEFAULT_MACHINE_NAME "STM32F103ZET6"
32
-
33
-#define BOARD_NO_NATIVE_USB
34
-
35
-#define DISABLE_JTAG
36
-
37
-//
38
-// EEPROM
39
-//
40
-#define FLASH_EEPROM_EMULATION
41
-#if ENABLED(FLASH_EEPROM_EMULATION)
42
-  // SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
43
-  #define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
44
-  #define EEPROM_PAGE_SIZE     (0x800U)           // 2KB, but will use 2x more (4KB)
45
-  #define MARLIN_EEPROM_SIZE    EEPROM_PAGE_SIZE
46
-#else
47
-  #define MARLIN_EEPROM_SIZE              0x800U  // On SD, Limit to 2KB, require this amount of RAM
48
-#endif
49
-
50
-//
51
-// Limit Switches
52
-//
53
-#define X_STOP_PIN                          PG10
54
-#define Y_STOP_PIN                          PA12
55
-#define Z_STOP_PIN                          PA14
56
-
57
-//
58
-// Steppers
59
-//
60
-#define X_ENABLE_PIN                        PC13
61
-#define X_STEP_PIN                          PE5
62
-#define X_DIR_PIN                           PE6
63
-
64
-#define Y_ENABLE_PIN                        PE4
65
-#define Y_STEP_PIN                          PE2
66
-#define Y_DIR_PIN                           PE3
67
-
68
-#define Z_ENABLE_PIN                        PE1
69
-#define Z_STEP_PIN                          PB9
70
-#define Z_DIR_PIN                           PE0
71
-
72
-#define E0_ENABLE_PIN                       PB8
73
-#define E0_STEP_PIN                         PB4
74
-#define E0_DIR_PIN                          PB5
75
-
76
-#define E1_ENABLE_PIN                       PG8
77
-#define E1_STEP_PIN                         PC7
78
-#define E1_DIR_PIN                          PC6
79
-
80
-//
81
-// Temperature Sensors
82
-//
83
-#define TEMP_0_PIN                          PA1   // TH1
84
-#define TEMP_BED_PIN                        PA0   // TB1
85
-
86
-//
87
-// Heaters
88
-//
89
-#define HEATER_0_PIN                        PG12  // HEATER1
90
-#define HEATER_BED_PIN                      PG11  // HOT BED
91
-
92
-//
93
-// Fans
94
-//
95
-#define CONTROLLER_FAN_PIN                  PD6   // BOARD FAN
96
-#define FAN_PIN                             PG13  // FAN
97
-#define FAN2_PIN                            PG14
98
-
99
-//
100
-// Misc
101
-//
102
-#define BEEPER_PIN                          PB0
103
-//#define LED_PIN                           -1
104
-//#define POWER_LOSS_PIN                    -1
105
-#define FIL_RUNOUT_PIN                      PA15
106
-
107
-// SPI Flash
108
-#define HAS_SPI_FLASH                          1
109
-#if HAS_SPI_FLASH
110
-  #define SPI_FLASH_SIZE                0x200000  // 2MB
111
-#endif
112
-
113
-// SPI 2
114
-#define W25QXX_CS_PIN                       PB12
115
-#define W25QXX_MOSI_PIN                     PB15
116
-#define W25QXX_MISO_PIN                     PB14
117
-#define W25QXX_SCK_PIN                      PB13
118
-
119
-//
120
-// TFT with FSMC interface
121
-//
122
-#if HAS_FSMC_TFT
123
-  #define TOUCH_CS_PIN                      PB7   // SPI1_NSS
124
-  #define TOUCH_SCK_PIN                     PA5   // SPI1_SCK
125
-  #define TOUCH_MISO_PIN                    PA6   // SPI1_MISO
126
-  #define TOUCH_MOSI_PIN                    PA7   // SPI1_MOSI
127
-
128
-  #define TFT_RESET_PIN                     PF11
129
-  #define TFT_BACKLIGHT_PIN                 PD13
130
-
131
-  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
132
-  #define FSMC_CS_PIN                       PD7
133
-  #define FSMC_RS_PIN                       PD11
134
-  #define FSMC_DMA_DEV                      DMA2
135
-  #define FSMC_DMA_CHANNEL               DMA_CH5
136
-
137
-  #define TFT_CS_PIN                 FSMC_CS_PIN
138
-  #define TFT_RS_PIN                 FSMC_RS_PIN
139
-#endif
140
-
141
-#if ENABLED(TFT_LVGL_UI)
142
-  // LVGL
143
-  #define HAS_SPI_FLASH_FONT                   1
144
-  #define HAS_GCODE_PREVIEW                    1
145
-  #define HAS_GCODE_DEFAULT_VIEW_IN_FLASH      0
146
-  #define HAS_LANG_SELECT_SCREEN               1
147
-  #define HAS_BAK_VIEW_IN_FLASH                0
148
-  #define HAS_LOGO_IN_FLASH                    0
149
-#elif ENABLED(TFT_COLOR_UI)
150
-  // Color UI
151
-  #define TFT_BUFFER_SIZE                  14400
152
-#endif
153
-
154
-// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
155
-// Needs to use SPI2
156
-#define SPI_DEVICE                             2
157
-#define SD_SCK_PIN                          PB13
158
-#define SD_MISO_PIN                         PB14
159
-#define SD_MOSI_PIN                         PB15
160
-#define SD_SS_PIN                           PB12
26
+#define Z_STOP_PIN                          PG9
161 27
 
162
-//
163
-// SD Card
164
-//
165
-#define SDIO_SUPPORT
166
-#define SD_DETECT_PIN                       -1    // PF0, but it isn't connected
167
-#define SDIO_CLOCK                       4500000
168
-#define SDIO_READ_RETRIES                     16
28
+#include "pins_CHITU3D_common.h"

+ 2
- 148
Marlin/src/pins/stm32f1/pins_CHITU3D_V6.h View File

@@ -21,160 +21,14 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "env_validate.h"
25
-
26
-/**
27
- * 2017 Victor Perez Marlin for stm32f1 test
28
- */
29
-
30
-#define BOARD_INFO_NAME      "Chitu3D"
31
-#define DEFAULT_MACHINE_NAME "STM32F103ZET6"
32
-
33
-#define BOARD_NO_NATIVE_USB
34
-
35
-#define DISABLE_JTAG
36
-
37
-//
38
-// EEPROM
39
-//
40
-
41
-#if NO_EEPROM_SELECTED
42
-  #define FLASH_EEPROM_EMULATION
43
-#endif
44
-
45
-#if ENABLED(FLASH_EEPROM_EMULATION)
46
-  // SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
47
-  #define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
48
-  #define EEPROM_PAGE_SIZE     (0x800U)           // 2KB, but will use 2x more (4KB)
49
-  #define MARLIN_EEPROM_SIZE    EEPROM_PAGE_SIZE
50
-#else
51
-  #define MARLIN_EEPROM_SIZE              0x800U  // On SD, Limit to 2KB, require this amount of RAM
52
-#endif
53
-
54
-//
55
-// Limit Switches
56
-//
57
-#define X_STOP_PIN                          PG10
58
-#define Y_STOP_PIN                          PA12
59
-#define Z_STOP_PIN                          PG9
60
-
61
-//
62
-// Steppers
63
-//
64
-#define X_ENABLE_PIN                        PC13
65
-#define X_STEP_PIN                          PE5
66
-#define X_DIR_PIN                           PE6
67
-
68
-#define Y_ENABLE_PIN                        PE4
69
-#define Y_STEP_PIN                          PE2
70
-#define Y_DIR_PIN                           PE3
71
-
72
-#define Z_ENABLE_PIN                        PE1
73
-#define Z_STEP_PIN                          PB9
74
-#define Z_DIR_PIN                           PE0
24
+#define BOARD_INFO_NAME "Chitu3D V6"
75 25
 
76 26
 #define Z2_ENABLE_PIN                       PF3
77 27
 #define Z2_STEP_PIN                         PF5
78 28
 #define Z2_DIR_PIN                          PF1
79 29
 
80
-#define E0_ENABLE_PIN                       PB8
81
-#define E0_STEP_PIN                         PB4
82
-#define E0_DIR_PIN                          PB5
83
-
84
-#define E1_ENABLE_PIN                       PG8
85
-#define E1_STEP_PIN                         PC7
86
-#define E1_DIR_PIN                          PC6
87
-
88
-//
89
-// Temperature Sensors
90
-//
91
-#define TEMP_0_PIN                          PA1   // TH1
92
-#define TEMP_BED_PIN                        PA0   // TB1
93
-
94
-//
95
-// Heaters
96
-//
97
-#define HEATER_0_PIN                        PG12  // HEATER1
98
-#define HEATER_BED_PIN                      PG11  // HOT BED
99
-//#define HEATER_BED_INVERTING              true
100
-
101
-//
102
-// Fans
103
-//
104
-#define CONTROLLER_FAN_PIN                  PD6   // BOARD FAN
105
-#define FAN_PIN                             PG13  // FAN
106
-#define FAN2_PIN                            PG14
107
-
108
-//
109
-// Misc
110
-//
111
-#define BEEPER_PIN                          PB0
112
-//#define LED_PIN                           PD3
113
-//#define POWER_LOSS_PIN                    PG2   // PG4 PW_DET
114
-
115
-#ifndef FIL_RUNOUT_PIN
116
-  #define FIL_RUNOUT_PIN                    PA15  // MT_DET
117
-#endif
118 30
 #ifndef FIL_RUNOUT2_PIN
119 31
   #define FIL_RUNOUT2_PIN                   PF13
120 32
 #endif
121 33
 
122
-// SPI Flash
123
-#define HAS_SPI_FLASH                          1
124
-#if HAS_SPI_FLASH
125
-  #define SPI_FLASH_SIZE                0x200000  // 2MB
126
-#endif
127
-
128
-// SPI 2
129
-#define W25QXX_CS_PIN                       PB12
130
-#define W25QXX_MOSI_PIN                     PB15
131
-#define W25QXX_MISO_PIN                     PB14
132
-#define W25QXX_SCK_PIN                      PB13
133
-
134
-//
135
-// TFT with FSMC interface
136
-//
137
-#if HAS_FSMC_TFT
138
-  #define TOUCH_CS_PIN                      PB7   // SPI1_NSS
139
-  #define TOUCH_SCK_PIN                     PA5   // SPI1_SCK
140
-  #define TOUCH_MISO_PIN                    PA6   // SPI1_MISO
141
-  #define TOUCH_MOSI_PIN                    PA7   // SPI1_MOSI
142
-
143
-  #define TFT_RESET_PIN                     PF11
144
-  #define TFT_BACKLIGHT_PIN                 PD13
145
-
146
-  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
147
-  #define FSMC_CS_PIN                       PD7
148
-  #define FSMC_RS_PIN                       PD11
149
-  #define FSMC_DMA_DEV                      DMA2
150
-  #define FSMC_DMA_CHANNEL               DMA_CH5
151
-#endif
152
-
153
-#if ENABLED(TFT_LVGL_UI)
154
-  // LVGL
155
-  #define HAS_SPI_FLASH_FONT                   1
156
-  #define HAS_GCODE_PREVIEW                    1
157
-  #define HAS_GCODE_DEFAULT_VIEW_IN_FLASH      0
158
-  #define HAS_LANG_SELECT_SCREEN               1
159
-  #define HAS_BAK_VIEW_IN_FLASH                0
160
-  #define HAS_LOGO_IN_FLASH                    0
161
-#elif ENABLED(TFT_COLOR_UI)
162
-  // Color UI
163
-  #define TFT_BUFFER_SIZE                  14400
164
-#endif
165
-
166
-// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
167
-// so SPI2 is required.
168
-#define SPI_DEVICE                             2
169
-#define SD_SCK_PIN                          PB13
170
-#define SD_MISO_PIN                         PB14
171
-#define SD_MOSI_PIN                         PB15
172
-#define SD_SS_PIN                           PB12
173
-
174
-//
175
-// SD Card
176
-//
177
-#define SDIO_SUPPORT
178
-#define SD_DETECT_PIN                       -1    // PF0, but it isn't connected
179
-#define SDIO_CLOCK                       4500000
180
-#define SDIO_READ_RETRIES                     16
34
+#include "pins_CHITU3D_common.h"

+ 36
- 0
Marlin/src/pins/stm32f1/pins_CHITU3D_V9.h View File

@@ -0,0 +1,36 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#define BOARD_INFO_NAME "Chitu3D V9"
25
+
26
+#define Z_STOP_PIN                          PA14
27
+
28
+#define Z2_ENABLE_PIN                       PF3
29
+#define Z2_STEP_PIN                         PF5
30
+#define Z2_DIR_PIN                          PF1
31
+
32
+#ifndef FIL_RUNOUT2_PIN
33
+  #define FIL_RUNOUT2_PIN                   PF13
34
+#endif
35
+
36
+#include "pins_CHITU3D_common.h"

+ 177
- 0
Marlin/src/pins/stm32f1/pins_CHITU3D_common.h View File

@@ -0,0 +1,177 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#include "env_validate.h"
25
+
26
+#ifndef BOARD_INFO_NAME
27
+  #define BOARD_INFO_NAME      "Chitu3D"
28
+#endif
29
+#ifndef DEFAULT_MACHINE_NAME
30
+  #define DEFAULT_MACHINE_NAME "STM32F103ZET6"
31
+#endif
32
+
33
+#define BOARD_NO_NATIVE_USB
34
+#define DISABLE_JTAG
35
+
36
+//
37
+// EEPROM
38
+//
39
+
40
+#if NO_EEPROM_SELECTED
41
+  #define FLASH_EEPROM_EMULATION
42
+#endif
43
+
44
+#if ENABLED(FLASH_EEPROM_EMULATION)
45
+  // SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
46
+  #define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
47
+  #define EEPROM_PAGE_SIZE     (0x800U)           // 2KB, but will use 2x more (4KB)
48
+  #define MARLIN_EEPROM_SIZE    EEPROM_PAGE_SIZE
49
+#else
50
+  #define MARLIN_EEPROM_SIZE              0x800U  // On SD, Limit to 2KB, require this amount of RAM
51
+#endif
52
+
53
+//
54
+// Limit Switches
55
+//
56
+#define X_STOP_PIN                          PG10
57
+#define Y_STOP_PIN                          PA12
58
+#ifndef Z_STOP_PIN
59
+  #define Z_STOP_PIN                        PG9
60
+#endif
61
+
62
+//
63
+// Steppers
64
+//
65
+#define X_ENABLE_PIN                        PC13
66
+#define X_STEP_PIN                          PE5
67
+#define X_DIR_PIN                           PE6
68
+
69
+#define Y_ENABLE_PIN                        PE4
70
+#define Y_STEP_PIN                          PE2
71
+#define Y_DIR_PIN                           PE3
72
+
73
+#define Z_ENABLE_PIN                        PE1
74
+#define Z_STEP_PIN                          PB9
75
+#define Z_DIR_PIN                           PE0
76
+
77
+#define E0_ENABLE_PIN                       PB8
78
+#define E0_STEP_PIN                         PB4
79
+#define E0_DIR_PIN                          PB5
80
+
81
+#define E1_ENABLE_PIN                       PG8
82
+#define E1_STEP_PIN                         PC7
83
+#define E1_DIR_PIN                          PC6
84
+
85
+//
86
+// Temperature Sensors
87
+//
88
+#define TEMP_0_PIN                          PA1   // TH1 Analog Input
89
+#define TEMP_BED_PIN                        PA0   // TB1 Analog Input
90
+
91
+//
92
+// Heaters
93
+//
94
+#define HEATER_0_PIN                        PG12  // HEATER1
95
+#define HEATER_BED_PIN                      PG11  // HOT BED
96
+//#define HEATER_BED_INVERTING              true
97
+
98
+//
99
+// Fans
100
+//
101
+#define CONTROLLER_FAN_PIN                  PD6   // BOARD FAN
102
+#define FAN_PIN                             PG13  // FAN
103
+#define FAN2_PIN                            PG14
104
+
105
+//
106
+// Misc
107
+//
108
+#define BEEPER_PIN                          PB0
109
+//#define LED_PIN                           PD3
110
+//#define POWER_LOSS_PIN                    PG2   // PG4 PW_DET
111
+
112
+#ifndef FIL_RUNOUT_PIN
113
+  #define FIL_RUNOUT_PIN                    PA15  // MT_DET
114
+#endif
115
+
116
+// SPI Flash
117
+#define HAS_SPI_FLASH                          1
118
+#if HAS_SPI_FLASH
119
+  #define SPI_FLASH_SIZE                0x200000  // 2MB
120
+#endif
121
+
122
+// SPI 2
123
+#define W25QXX_CS_PIN                       PB12
124
+#define W25QXX_MOSI_PIN                     PB15
125
+#define W25QXX_MISO_PIN                     PB14
126
+#define W25QXX_SCK_PIN                      PB13
127
+
128
+//
129
+// TFT with FSMC interface
130
+//
131
+#if HAS_FSMC_TFT
132
+  #define TOUCH_CS_PIN                      PB7   // SPI1_NSS
133
+  #define TOUCH_SCK_PIN                     PA5   // SPI1_SCK
134
+  #define TOUCH_MISO_PIN                    PA6   // SPI1_MISO
135
+  #define TOUCH_MOSI_PIN                    PA7   // SPI1_MOSI
136
+
137
+  #define TFT_RESET_PIN                     PF11
138
+  #define TFT_BACKLIGHT_PIN                 PD13
139
+
140
+  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
141
+  #define FSMC_CS_PIN                       PD7
142
+  #define FSMC_RS_PIN                       PD11
143
+  #define FSMC_DMA_DEV                      DMA2
144
+  #define FSMC_DMA_CHANNEL               DMA_CH5
145
+
146
+  #define TFT_CS_PIN                 FSMC_CS_PIN
147
+  #define TFT_RS_PIN                 FSMC_RS_PIN
148
+#endif
149
+
150
+#if ENABLED(TFT_LVGL_UI)
151
+  // LVGL
152
+  #define HAS_SPI_FLASH_FONT                   1
153
+  #define HAS_GCODE_PREVIEW                    1
154
+  #define HAS_GCODE_DEFAULT_VIEW_IN_FLASH      0
155
+  #define HAS_LANG_SELECT_SCREEN               1
156
+  #define HAS_BAK_VIEW_IN_FLASH                0
157
+  #define HAS_LOGO_IN_FLASH                    0
158
+#elif ENABLED(TFT_COLOR_UI)
159
+  // Color UI
160
+  #define TFT_BUFFER_SIZE                  14400
161
+#endif
162
+
163
+// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
164
+// so SPI2 is required.
165
+#define SPI_DEVICE                             2
166
+#define SD_SCK_PIN                          PB13
167
+#define SD_MISO_PIN                         PB14
168
+#define SD_MOSI_PIN                         PB15
169
+#define SD_SS_PIN                           PB12
170
+
171
+//
172
+// SD Card
173
+//
174
+#define SDIO_SUPPORT
175
+#define SD_DETECT_PIN                       -1    // PF0, but it isn't connected
176
+#define SDIO_CLOCK                       4500000
177
+#define SDIO_READ_RETRIES                     16

Loading…
Cancel
Save