Skip to content

Commit

Permalink
Update platformio.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored Dec 28, 2020
1 parent 47c8ba6 commit 894bf56
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1279,15 +1279,17 @@ debug_init_break =

[stm32_flash_drive]
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc.zip
build_flags = -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
build_flags = ${common_stm32.build_flags}
-DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
-DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4

#
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
#
[env:BIGTREE_SKR_PRO_usb_flash_drive]
extends = env:BIGTREE_SKR_PRO
platform_packages = ${stm32_flash_drive.platform_packages}
build_flags = ${common_stm32.build_flags} ${stm32_flash_drive.build_flags}
build_flags = ${stm32_flash_drive.build_flags}

#
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
Expand All @@ -1307,7 +1309,7 @@ build_flags = ${common_stm32.build_flags}
[env:BIGTREE_GTR_V1_0_usb_flash_drive]
extends = env:BIGTREE_GTR_V1_0
platform_packages = ${stm32_flash_drive.platform_packages}
build_flags = ${common_stm32.build_flags} ${stm32_flash_drive.build_flags}
build_flags = ${stm32_flash_drive.build_flags}

#
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
Expand Down Expand Up @@ -1413,7 +1415,7 @@ extra_scripts = ${common.extra_scripts}
platform = ${common_stm32.platform}
platform_packages = ${stm32_flash_drive.platform_packages}
extends = common_stm32
build_flags = ${common_stm32.build_flags} ${stm32_flash_drive.build_flags}
build_flags = ${stm32_flash_drive.build_flags}
board = genericSTM32F407VET6
board_build.core = stm32
board_build.variant = MARLIN_F4x7Vx
Expand Down Expand Up @@ -1456,7 +1458,7 @@ extra_scripts = ${common.extra_scripts}
[env:mks_robin_nano_v3_usb_flash_drive]
extends = env:mks_robin_nano_v3
platform_packages = ${stm32_flash_drive.platform_packages}
build_flags = ${common_stm32.build_flags} ${stm32_flash_drive.build_flags}
build_flags = ${stm32_flash_drive.build_flags}
-DUSBCON
-DUSE_USBHOST_HS
-DUSBD_IRQ_PRIO=5
Expand Down

0 comments on commit 894bf56

Please sign in to comment.