Skip to content

Commit 3c51e47

Browse files
thisiskeithbthinkyhead
authored andcommitted
Lerdge K/S/X support for Flash Drive (MarlinFirmware#20593)
1 parent 65f9376 commit 3c51e47

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
@@ -583,11 +583,11 @@
583583
#elif MB(BTT_BTT002_V1_0)
584584
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
585585
#elif MB(LERDGE_K)
586-
#include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:LERDGEK
586+
#include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:LERDGEK env:LERDGEK_usb_flash_drive
587587
#elif MB(LERDGE_S)
588-
#include "stm32f4/pins_LERDGE_S.h" // STM32F4 env:LERDGES
588+
#include "stm32f4/pins_LERDGE_S.h" // STM32F4 env:LERDGES env:LERDGES_usb_flash_drive
589589
#elif MB(LERDGE_X)
590-
#include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:LERDGEX
590+
#include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:LERDGEX env:LERDGEX_usb_flash_drive
591591
#elif MB(VAKE403D)
592592
#include "stm32f4/pins_VAKE403D.h" // STM32F4
593593
#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
@@ -1385,13 +1385,29 @@ build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUS
13851385
extends = lerdge_common
13861386
board_build.firmware = Lerdge_X_firmware_force.bin
13871387

1388+
#
1389+
# Lerdge X with USB Flash Drive Support
1390+
#
1391+
[env:LERDGEX_usb_flash_drive]
1392+
extends = LERDGEX
1393+
platform_packages = ${stm32_flash_drive.platform_packages}
1394+
build_flags = ${stm32_flash_drive.build_flags}
1395+
13881396
#
13891397
# Lerdge S
13901398
#
13911399
[env:LERDGES]
13921400
extends = lerdge_common
13931401
board_build.firmware = Lerdge_firmware_force.bin
13941402

1403+
#
1404+
# Lerdge S with USB Flash Drive Support
1405+
#
1406+
[env:LERDGES_usb_flash_drive]
1407+
extends = LERDGES
1408+
platform_packages = ${stm32_flash_drive.platform_packages}
1409+
build_flags = ${stm32_flash_drive.build_flags}
1410+
13951411
#
13961412
# Lerdge K
13971413
#
@@ -1401,6 +1417,14 @@ board_build.firmware = Lerdge_K_firmware_force.bin
14011417
build_flags = ${lerdge_common.build_flags}
14021418
-DLERDGEK
14031419

1420+
#
1421+
# Lerdge K with USB Flash Drive Support
1422+
#
1423+
[env:LERDGEK_usb_flash_drive]
1424+
extends = LERDGEK
1425+
platform_packages = ${stm32_flash_drive.platform_packages}
1426+
build_flags = ${stm32_flash_drive.build_flags}
1427+
14041428
#
14051429
# RUMBA32
14061430
#

0 commit comments

Comments
 (0)