|
|
@ -1376,6 +1376,7 @@ build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUS
|
|
|
|
# Lerdge X
|
|
|
|
# Lerdge X
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGEX]
|
|
|
|
[env:LERDGEX]
|
|
|
|
|
|
|
|
platform = ${lerdge_common.platform}
|
|
|
|
extends = lerdge_common
|
|
|
|
extends = lerdge_common
|
|
|
|
board_build.firmware = Lerdge_X_firmware_force.bin
|
|
|
|
board_build.firmware = Lerdge_X_firmware_force.bin
|
|
|
|
|
|
|
|
|
|
|
@ -1383,6 +1384,7 @@ board_build.firmware = Lerdge_X_firmware_force.bin
|
|
|
|
# Lerdge X with USB Flash Drive Support
|
|
|
|
# Lerdge X with USB Flash Drive Support
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGEX_usb_flash_drive]
|
|
|
|
[env:LERDGEX_usb_flash_drive]
|
|
|
|
|
|
|
|
platform = ${LERDGEX.platform}
|
|
|
|
extends = LERDGEX
|
|
|
|
extends = LERDGEX
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
@ -1391,6 +1393,7 @@ build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
# Lerdge S
|
|
|
|
# Lerdge S
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGES]
|
|
|
|
[env:LERDGES]
|
|
|
|
|
|
|
|
platform = ${lerdge_common.platform}
|
|
|
|
extends = lerdge_common
|
|
|
|
extends = lerdge_common
|
|
|
|
board_build.firmware = Lerdge_firmware_force.bin
|
|
|
|
board_build.firmware = Lerdge_firmware_force.bin
|
|
|
|
|
|
|
|
|
|
|
@ -1398,6 +1401,7 @@ board_build.firmware = Lerdge_firmware_force.bin
|
|
|
|
# Lerdge S with USB Flash Drive Support
|
|
|
|
# Lerdge S with USB Flash Drive Support
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGES_usb_flash_drive]
|
|
|
|
[env:LERDGES_usb_flash_drive]
|
|
|
|
|
|
|
|
platform = ${LERDGES.platform}
|
|
|
|
extends = LERDGES
|
|
|
|
extends = LERDGES
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
@ -1406,6 +1410,7 @@ build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
# Lerdge K
|
|
|
|
# Lerdge K
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGEK]
|
|
|
|
[env:LERDGEK]
|
|
|
|
|
|
|
|
platform = ${lerdge_common.platform}
|
|
|
|
extends = lerdge_common
|
|
|
|
extends = lerdge_common
|
|
|
|
board_build.firmware = Lerdge_K_firmware_force.bin
|
|
|
|
board_build.firmware = Lerdge_K_firmware_force.bin
|
|
|
|
build_flags = ${lerdge_common.build_flags}
|
|
|
|
build_flags = ${lerdge_common.build_flags}
|
|
|
@ -1415,6 +1420,7 @@ build_flags = ${lerdge_common.build_flags}
|
|
|
|
# Lerdge K with USB Flash Drive Support
|
|
|
|
# Lerdge K with USB Flash Drive Support
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:LERDGEK_usb_flash_drive]
|
|
|
|
[env:LERDGEK_usb_flash_drive]
|
|
|
|
|
|
|
|
platform = ${LERDGEK.platform}
|
|
|
|
extends = LERDGEK
|
|
|
|
extends = LERDGEK
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
@ -1480,13 +1486,19 @@ extra_scripts = ${common.extra_scripts}
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
|
|
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
|
|
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# This SPI is used by Robin Nano V3
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
[stm32f4_I2C1]
|
|
|
|
|
|
|
|
build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MKS Robin Nano V3
|
|
|
|
# MKS Robin Nano V3
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:mks_robin_nano_v3]
|
|
|
|
[env:mks_robin_nano_v3]
|
|
|
|
platform = ${common_stm32.platform}
|
|
|
|
platform = ${common_stm32.platform}
|
|
|
|
extends = common_stm32
|
|
|
|
extends = common_stm32
|
|
|
|
build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
|
|
|
build_flags = ${common_stm32.build_flags} ${stm32f4_I2C1.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
|
|
|
|
board = genericSTM32F407VGT6
|
|
|
|
board = genericSTM32F407VGT6
|
|
|
|
board_build.core = stm32
|
|
|
|
board_build.core = stm32
|
|
|
|
board_build.variant = MARLIN_F4x7Vx
|
|
|
|
board_build.variant = MARLIN_F4x7Vx
|
|
|
@ -1508,8 +1520,7 @@ extra_scripts = ${common.extra_scripts}
|
|
|
|
[env:mks_robin_nano_v3_usb_flash_drive]
|
|
|
|
[env:mks_robin_nano_v3_usb_flash_drive]
|
|
|
|
extends = env:mks_robin_nano_v3
|
|
|
|
extends = env:mks_robin_nano_v3
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
platform_packages = ${stm32_flash_drive.platform_packages}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
|
|
|
-DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
|
|
|
|
|
|
|
-DUSBCON
|
|
|
|
-DUSBCON
|
|
|
|
-DUSE_USBHOST_HS
|
|
|
|
-DUSE_USBHOST_HS
|
|
|
|
-DUSBD_IRQ_PRIO=5
|
|
|
|
-DUSBD_IRQ_PRIO=5
|
|
|
@ -1522,11 +1533,11 @@ build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
|
|
|
|
# Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
|
|
|
|
#
|
|
|
|
#
|
|
|
|
[env:mks_robin_nano_v3_usb_flash_drive_msc]
|
|
|
|
[env:mks_robin_nano_v3_usb_flash_drive_msc]
|
|
|
|
|
|
|
|
platform = ${common_stm32.platform}
|
|
|
|
extends = env:mks_robin_nano_v3
|
|
|
|
extends = env:mks_robin_nano_v3
|
|
|
|
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
|
|
|
|
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
|
|
|
|
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
|
|
|
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags}
|
|
|
|
build_flags = ${stm32_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
|
|
|
-DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
|
|
|
|
|
|
|
-DUSBCON
|
|
|
|
-DUSBCON
|
|
|
|
-DUSE_USBHOST_HS
|
|
|
|
-DUSE_USBHOST_HS
|
|
|
|
-DUSBD_IRQ_PRIO=5
|
|
|
|
-DUSBD_IRQ_PRIO=5
|
|
|
|