Browse Source

Lerdge K/S/X support for Flash Drive (#20593)

Keith Bennett 4 years ago
parent
commit
d62aa6221b
No account linked to committer's email address

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

@@ -581,11 +581,11 @@
581 581
 #elif MB(BTT_BTT002_V1_0)
582 582
   #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002
583 583
 #elif MB(LERDGE_K)
584
-  #include "stm32f4/pins_LERDGE_K.h"            // STM32F4                                env:LERDGEK
584
+  #include "stm32f4/pins_LERDGE_K.h"            // STM32F4                                env:LERDGEK env:LERDGEK_usb_flash_drive
585 585
 #elif MB(LERDGE_S)
586
-  #include "stm32f4/pins_LERDGE_S.h"            // STM32F4                                env:LERDGES
586
+  #include "stm32f4/pins_LERDGE_S.h"            // STM32F4                                env:LERDGES env:LERDGES_usb_flash_drive
587 587
 #elif MB(LERDGE_X)
588
-  #include "stm32f4/pins_LERDGE_X.h"            // STM32F4                                env:LERDGEX
588
+  #include "stm32f4/pins_LERDGE_X.h"            // STM32F4                                env:LERDGEX env:LERDGEX_usb_flash_drive
589 589
 #elif MB(VAKE403D)
590 590
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
591 591
 #elif MB(FYSETC_S6)

+ 3
- 0
Marlin/src/pins/stm32f4/pins_LERDGE_K.h View File

@@ -29,6 +29,9 @@
29 29
 
30 30
 #define I2C_EEPROM
31 31
 
32
+// USB Flash Drive support
33
+#define HAS_OTG_USB_HOST_SUPPORT
34
+
32 35
 //
33 36
 // Servos
34 37
 //

+ 3
- 0
Marlin/src/pins/stm32f4/pins_LERDGE_S.h View File

@@ -32,6 +32,9 @@
32 32
 
33 33
 //#define I2C_EEPROM
34 34
 
35
+// USB Flash Drive support
36
+#define HAS_OTG_USB_HOST_SUPPORT
37
+
35 38
 //
36 39
 // Servos
37 40
 //

+ 3
- 0
Marlin/src/pins/stm32f4/pins_LERDGE_X.h View File

@@ -32,6 +32,9 @@
32 32
 
33 33
 #define I2C_EEPROM
34 34
 
35
+// USB Flash Drive support
36
+#define HAS_OTG_USB_HOST_SUPPORT
37
+
35 38
 //
36 39
 // Servos
37 40
 //

+ 24
- 0
platformio.ini View File

@@ -1374,6 +1374,14 @@ extends              = lerdge_common
1374 1374
 board_build.firmware = Lerdge_X_firmware_force.bin
1375 1375
 
1376 1376
 #
1377
+# Lerdge X with USB Flash Drive Support
1378
+#
1379
+[env:LERDGEX_usb_flash_drive]
1380
+extends           = LERDGEX
1381
+platform_packages = ${stm32_flash_drive.platform_packages}
1382
+build_flags       = ${stm32_flash_drive.build_flags}
1383
+
1384
+#
1377 1385
 # Lerdge S
1378 1386
 #
1379 1387
 [env:LERDGES]
@@ -1381,6 +1389,14 @@ extends              = lerdge_common
1381 1389
 board_build.firmware = Lerdge_firmware_force.bin
1382 1390
 
1383 1391
 #
1392
+# Lerdge S with USB Flash Drive Support
1393
+#
1394
+[env:LERDGES_usb_flash_drive]
1395
+extends           = LERDGES
1396
+platform_packages = ${stm32_flash_drive.platform_packages}
1397
+build_flags       = ${stm32_flash_drive.build_flags}
1398
+
1399
+#
1384 1400
 # Lerdge K
1385 1401
 #
1386 1402
 [env:LERDGEK]
@@ -1390,6 +1406,14 @@ build_flags          = ${lerdge_common.build_flags}
1390 1406
   -DLERDGEK
1391 1407
 
1392 1408
 #
1409
+# Lerdge K with USB Flash Drive Support
1410
+#
1411
+[env:LERDGEK_usb_flash_drive]
1412
+extends           = LERDGEK
1413
+platform_packages = ${stm32_flash_drive.platform_packages}
1414
+build_flags       = ${stm32_flash_drive.build_flags}
1415
+
1416
+#
1393 1417
 # RUMBA32
1394 1418
 #
1395 1419
 [env:rumba32]

Loading…
Cancel
Save