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
 #elif MB(BTT_BTT002_V1_0)
581
 #elif MB(BTT_BTT002_V1_0)
582
   #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002
582
   #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002
583
 #elif MB(LERDGE_K)
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
 #elif MB(LERDGE_S)
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
 #elif MB(LERDGE_X)
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
 #elif MB(VAKE403D)
589
 #elif MB(VAKE403D)
590
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
590
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
591
 #elif MB(FYSETC_S6)
591
 #elif MB(FYSETC_S6)

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

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

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

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

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

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

+ 24
- 0
platformio.ini View File

1374
 board_build.firmware = Lerdge_X_firmware_force.bin
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
 # Lerdge S
1385
 # Lerdge S
1378
 #
1386
 #
1379
 [env:LERDGES]
1387
 [env:LERDGES]
1381
 board_build.firmware = Lerdge_firmware_force.bin
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
 # Lerdge K
1400
 # Lerdge K
1385
 #
1401
 #
1386
 [env:LERDGEK]
1402
 [env:LERDGEK]
1390
   -DLERDGEK
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
 # RUMBA32
1417
 # RUMBA32
1394
 #
1418
 #
1395
 [env:rumba32]
1419
 [env:rumba32]

Loading…
Cancel
Save