@@ -12,4 +12,4 @@ SRC_C += \
|
|||||||
$(BOARD_PATH)/tcpp0203/tcpp0203_reg.c \
|
$(BOARD_PATH)/tcpp0203/tcpp0203_reg.c \
|
||||||
|
|
||||||
INC += \
|
INC += \
|
||||||
$(BOARD_PATH)/tcpp0203 \
|
$(TOP)/$(BOARD_PATH)/tcpp0203 \
|
||||||
|
@@ -11,7 +11,7 @@ set(CMSIS_5 ${TOP}/lib/CMSIS_5)
|
|||||||
include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake)
|
||||||
|
|
||||||
# toolchain set up
|
# toolchain set up
|
||||||
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
|
set(CMAKE_SYSTEM_CPU cortex-m7 CACHE INTERNAL "System Processor")
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${TOP}/examples/build_system/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
|
set(CMAKE_TOOLCHAIN_FILE ${TOP}/examples/build_system/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
|
||||||
|
|
||||||
set(FAMILY_MCUS STM32H7 CACHE INTERNAL "")
|
set(FAMILY_MCUS STM32H7 CACHE INTERNAL "")
|
||||||
@@ -133,15 +133,12 @@ function(family_configure_example TARGET RTOS)
|
|||||||
|
|
||||||
# Add TinyUSB target and port source
|
# Add TinyUSB target and port source
|
||||||
family_add_tinyusb(${TARGET} OPT_MCU_STM32H7RS ${RTOS})
|
family_add_tinyusb(${TARGET} OPT_MCU_STM32H7RS ${RTOS})
|
||||||
target_sources(${TARGET}-tinyusb PUBLIC
|
target_sources(${TARGET} PUBLIC
|
||||||
${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c
|
${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c
|
||||||
${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c
|
${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c
|
||||||
${TOP}/src/portable/synopsys/dwc2/dwc2_common.c
|
${TOP}/src/portable/synopsys/dwc2/dwc2_common.c
|
||||||
)
|
)
|
||||||
target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD})
|
target_link_libraries(${TARGET} PUBLIC board_${BOARD})
|
||||||
|
|
||||||
# Link dependencies
|
|
||||||
target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb)
|
|
||||||
|
|
||||||
# Flashing
|
# Flashing
|
||||||
family_add_bin_hex(${TARGET})
|
family_add_bin_hex(${TARGET})
|
||||||
|
Reference in New Issue
Block a user