summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hooper <[email protected]>2023-07-03 11:21:47 -0400
committerAndrew Hooper <[email protected]>2023-07-03 11:21:47 -0400
commit34966304dd2b32b141ad107eb75cdf77d22e031f (patch)
tree1ae01e4112ac272f0921f1c122d4769ef4a5d16d
parent9554a354d401c0df7e0dec19721b0296f806340b (diff)
Restore RTOS argument for stm32f4
-rw-r--r--hw/bsp/stm32f4/family.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/bsp/stm32f4/family.cmake b/hw/bsp/stm32f4/family.cmake
index 7d9bbf331..a2f36a9e8 100644
--- a/hw/bsp/stm32f4/family.cmake
+++ b/hw/bsp/stm32f4/family.cmake
@@ -79,8 +79,9 @@ endfunction()
#------------------------------------
# Functions
#------------------------------------
-function(family_configure_example TARGET)
- family_configure_common(${TARGET})
+function(family_configure_example TARGET RTOS)
+ family_configure_common(${TARGET} ${RTOS})
+
# Board target
add_board_target(board_${BOARD})
@@ -100,7 +101,7 @@ function(family_configure_example TARGET)
)
# Add TinyUSB target and port source
- family_add_tinyusb(${TARGET} OPT_MCU_STM32F4)
+ family_add_tinyusb(${TARGET} OPT_MCU_STM32F4 ${RTOS})
if (MCU_VARIANT STREQUAL "stm32f407xx")
target_sources(${TARGET}-tinyusb PUBLIC
${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c