From 894bf568b1d9f3c8ce0b70fbc0b071d2335b8a71 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 27 Dec 2020 22:49:19 -0600 Subject: [PATCH] Update platformio.ini --- platformio.ini | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index d397030b2b3d1..56f13621cbb46 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1279,7 +1279,9 @@ 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 @@ -1287,7 +1289,7 @@ build_flags = -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED -DUSBHOST [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) @@ -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) @@ -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 @@ -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