Kaynağa Gözat

Split up SKR V2 Rev A / B (#21805)

Keith Bennett 3 yıl önce
ebeveyn
işleme
cbcc6ef9c4
No account linked to committer's email address

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

@@ -367,22 +367,23 @@
367 367
 #define BOARD_BTT_SKR_PRO_V1_2        4208  // BigTreeTech SKR Pro v1.2 (STM32F407ZGT6)
368 368
 #define BOARD_BTT_BTT002_V1_0         4209  // BigTreeTech BTT002 v1.0 (STM32F407VGT6)
369 369
 #define BOARD_BTT_E3_RRF              4210  // BigTreeTech E3 RRF (STM32F407VGT6)
370
-#define BOARD_BTT_SKR_V2_0            4211  // BigTreeTech SKR v2.0 (STM32F407VGT6)
371
-#define BOARD_BTT_GTR_V1_0            4212  // BigTreeTech GTR v1.0 (STM32F407IGT)
372
-#define BOARD_LERDGE_K                4213  // Lerdge K (STM32F407ZG)
373
-#define BOARD_LERDGE_S                4214  // Lerdge S (STM32F407VE)
374
-#define BOARD_LERDGE_X                4215  // Lerdge X (STM32F407VE)
375
-#define BOARD_VAKE403D                4216  // VAkE 403D (STM32F446VET6)
376
-#define BOARD_FYSETC_S6               4217  // FYSETC S6 (STM32F446VET6)
377
-#define BOARD_FYSETC_S6_V2_0          4218  // FYSETC S6 v2.0 (STM32F446VET6)
378
-#define BOARD_FYSETC_SPIDER           4219  // FYSETC Spider (STM32F446VET6)
379
-#define BOARD_FLYF407ZG               4220  // FLYF407ZG (STM32F407ZG)
380
-#define BOARD_MKS_ROBIN2              4221  // MKS_ROBIN2 (STM32F407ZE)
381
-#define BOARD_MKS_ROBIN_PRO_V2        4222  // MKS Robin Pro V2 (STM32F407VE)
382
-#define BOARD_MKS_ROBIN_NANO_V3       4223  // MKS Robin Nano V3 (STM32F407VG)
383
-#define BOARD_ANET_ET4                4224  // ANET ET4 V1.x (STM32F407VGT6)
384
-#define BOARD_ANET_ET4P               4225 // ANET ET4P V1.x (STM32F407VGT6)
385
-#define BOARD_FYSETC_CHEETAH_V20      4226  // FYSETC Cheetah V2.0
370
+#define BOARD_BTT_SKR_V2_0_REV_A      4211  // BigTreeTech SKR v2.0 Rev A (STM32F407VGT6)
371
+#define BOARD_BTT_SKR_V2_0_REV_B      4212  // BigTreeTech SKR v2.0 Rev B (STM32F407VGT6)
372
+#define BOARD_BTT_GTR_V1_0            4213  // BigTreeTech GTR v1.0 (STM32F407IGT)
373
+#define BOARD_LERDGE_K                4214  // Lerdge K (STM32F407ZG)
374
+#define BOARD_LERDGE_S                4215  // Lerdge S (STM32F407VE)
375
+#define BOARD_LERDGE_X                4216  // Lerdge X (STM32F407VE)
376
+#define BOARD_VAKE403D                4217  // VAkE 403D (STM32F446VET6)
377
+#define BOARD_FYSETC_S6               4218  // FYSETC S6 (STM32F446VET6)
378
+#define BOARD_FYSETC_S6_V2_0          4219  // FYSETC S6 v2.0 (STM32F446VET6)
379
+#define BOARD_FYSETC_SPIDER           4220  // FYSETC Spider (STM32F446VET6)
380
+#define BOARD_FLYF407ZG               4221  // FLYF407ZG (STM32F407ZG)
381
+#define BOARD_MKS_ROBIN2              4222  // MKS_ROBIN2 (STM32F407ZE)
382
+#define BOARD_MKS_ROBIN_PRO_V2        4223  // MKS Robin Pro V2 (STM32F407VE)
383
+#define BOARD_MKS_ROBIN_NANO_V3       4224  // MKS Robin Nano V3 (STM32F407VG)
384
+#define BOARD_ANET_ET4                4225  // ANET ET4 V1.x (STM32F407VGT6)
385
+#define BOARD_ANET_ET4P               4226  // ANET ET4P V1.x (STM32F407VGT6)
386
+#define BOARD_FYSETC_CHEETAH_V20      4227  // FYSETC Cheetah V2.0
386 387
 
387 388
 //
388 389
 // ARM Cortex M7

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

@@ -596,8 +596,10 @@
596 596
   #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002
597 597
 #elif MB(BTT_E3_RRF)
598 598
   #include "stm32f4/pins_BTT_E3_RRF.h"          // STM32F4                                env:BIGTREE_E3_RRF
599
-#elif MB(BTT_SKR_V2_0)
600
-  #include "stm32f4/pins_BTT_SKR_V2_0.h"        // STM32F4                                env:BIGTREE_SKR_2
599
+#elif MB(BTT_SKR_V2_0_REV_A)
600
+  #include "stm32f4/pins_BTT_SKR_V2_0_REV_A.h"  // STM32F4                                env:BIGTREE_SKR_2
601
+#elif MB(BTT_SKR_V2_0_REV_B)
602
+  #include "stm32f4/pins_BTT_SKR_V2_0_REV_B.h"  // STM32F4                                env:BIGTREE_SKR_2
601 603
 #elif MB(LERDGE_K)
602 604
   #include "stm32f4/pins_LERDGE_K.h"            // STM32F4                                env:LERDGEK env:LERDGEK_usb_flash_drive
603 605
 #elif MB(LERDGE_S)
@@ -706,6 +708,7 @@
706 708
   #define BOARD_RUMBA32_AUS3D           -1019
707 709
   #define BOARD_RAMPS_DAGOMA            -1020
708 710
   #define BOARD_RAMPS_LONGER3D_LK4PRO   -1021
711
+  #define BOARD_BTT_SKR_V2_0            -1022
709 712
 
710 713
   #if MB(MKS_13)
711 714
     #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
@@ -753,6 +756,8 @@
753 756
     #error "BOARD_RAMPS_DAGOMA is now BOARD_DAGOMA_F5. Please update your configuration."
754 757
   #elif MB(RAMPS_LONGER3D_LK4PRO)
755 758
     #error "BOARD_RAMPS_LONGER3D_LK4PRO is now BOARD_LONGER3D_LKx_PRO. Please update your configuration."
759
+  #elif MB(BTT_SKR_V2_0)
760
+    #error "BTT_SKR_V2_0 is now BTT_SKR_V2_0_REV_A or BTT_SKR_V2_0_REV_B. Please update your configuration."
756 761
   #else
757 762
     #error "Unknown MOTHERBOARD value set in Configuration.h"
758 763
   #endif
@@ -779,6 +784,7 @@
779 784
   #undef BOARD_RUMBA32_AUS3D
780 785
   #undef BOARD_RAMPS_DAGOMA
781 786
   #undef BOARD_RAMPS_LONGER3D_LK4PRO
787
+  #undef BOARD_BTT_SKR_V2_0
782 788
 
783 789
 #endif
784 790
 

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

@@ -0,0 +1,29 @@
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 "BTT SKR V2 Rev.A"
25
+
26
+#error "SKR V2 Rev.A requires modification or drivers may be damaged. See https://bit.ly/3t5d9JQ for more information. Comment out this line to continue."
27
+#define DISABLE_DRIVER_SAFE_POWER_PROTECT
28
+
29
+#include "pins_BTT_SKR_V2_0_common.h"

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

@@ -0,0 +1,26 @@
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 "BTT SKR V2 Rev.B"
25
+
26
+#include "pins_BTT_SKR_V2_0_common.h"

Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0.h → Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h Dosyayı Görüntüle

@@ -23,8 +23,6 @@
23 23
 
24 24
 #include "env_validate.h"
25 25
 
26
-#define BOARD_INFO_NAME "BTT SKR V2.0"
27
-
28 26
 // Use one of these or SDCard-based Emulation will be used
29 27
 #if NO_EEPROM_SELECTED
30 28
   //#define SRAM_EEPROM_EMULATION                 // Use BackSRAM-based EEPROM emulation

Loading…
İptal
Kaydet