Skip to content

Commit 5e5c0d6

Browse files
thisiskeithbthinkyhead
authored andcommitted
Lerdge K/S/X support for Flash Drive (#20593)
1 parent 3dde272 commit 5e5c0d6

5 files changed

Lines changed: 36 additions & 3 deletions

File tree

Marlin/src/pins/pins.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,11 @@
581581
#elif MB(BTT_BTT002_V1_0)
582582
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
583583
#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
585585
#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
587587
#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
589589
#elif MB(VAKE403D)
590590
#include "stm32f4/pins_VAKE403D.h" // STM32F4
591591
#elif MB(FYSETC_S6)

Marlin/src/pins/stm32f4/pins_LERDGE_K.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
#define I2C_EEPROM
3131

32+
// USB Flash Drive support
33+
#define HAS_OTG_USB_HOST_SUPPORT
34+
3235
//
3336
// Servos
3437
//

Marlin/src/pins/stm32f4/pins_LERDGE_S.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
//#define I2C_EEPROM
3434

35+
// USB Flash Drive support
36+
#define HAS_OTG_USB_HOST_SUPPORT
37+
3538
//
3639
// Servos
3740
//

Marlin/src/pins/stm32f4/pins_LERDGE_X.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
#define I2C_EEPROM
3434

35+
// USB Flash Drive support
36+
#define HAS_OTG_USB_HOST_SUPPORT
37+
3538
//
3639
// Servos
3740
//

platformio.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,13 +1373,29 @@ build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUS
13731373
extends = lerdge_common
13741374
board_build.firmware = Lerdge_X_firmware_force.bin
13751375

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+
13761384
#
13771385
# Lerdge S
13781386
#
13791387
[env:LERDGES]
13801388
extends = lerdge_common
13811389
board_build.firmware = Lerdge_firmware_force.bin
13821390

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+
13831399
#
13841400
# Lerdge K
13851401
#
@@ -1389,6 +1405,14 @@ board_build.firmware = Lerdge_K_firmware_force.bin
13891405
build_flags = ${lerdge_common.build_flags}
13901406
-DLERDGEK
13911407

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+
13921416
#
13931417
# RUMBA32
13941418
#

0 commit comments

Comments
 (0)