summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-11-18 23:00:16 +0700
committerhathach <[email protected]>2024-11-18 23:02:17 +0700
commitd37707d6dd6147511cfaa10f21bdc4e28f2cdf69 (patch)
tree2a05c8046b69e6ee43758aff7be48d3f997cd8ad /hw
parentdab600bea2bb5ff426e69f10aafa6332f7c8507e (diff)
move handle ep slave/dma wihtin compiler macro
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/family_support.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake
index aa5e037d1..57fa63261 100644
--- a/hw/bsp/family_support.cmake
+++ b/hw/bsp/family_support.cmake
@@ -289,6 +289,11 @@ function(family_add_tinyusb TARGET OPT_MCU RTOS)
)
endif ()
+ # compile define from command line
+ if(DEFINED CFLAGS_CLI)
+ target_compile_options(${TARGET}-tinyusb PUBLIC ${CFLAGS_CLI})
+ endif()
+
endfunction()
# Add bin/hex output