mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-07 05:54:11 +08:00
Update make & cmake file.
This commit is contained in:
parent
20699e30dd
commit
504d29cf7a
@ -23,9 +23,16 @@ target_sources(${PROJECT} PUBLIC
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c
|
${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# CMSIS sources
|
||||||
|
target_sources(${PROJECT} PUBLIC
|
||||||
|
${TOP}/lib/CMSIS_5/CMSIS/DSP/Source/CommonTables/arm_common_tables.c
|
||||||
|
${TOP}/lib/CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q15.c
|
||||||
|
)
|
||||||
|
|
||||||
# Example include
|
# Example include
|
||||||
target_include_directories(${PROJECT} PUBLIC
|
target_include_directories(${PROJECT} PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||||
|
${TOP}/lib/CMSIS_5/CMSIS/DSP/Include
|
||||||
)
|
)
|
||||||
|
|
||||||
# Configure compilation flags and libraries for the example without RTOS.
|
# Configure compilation flags and libraries for the example without RTOS.
|
||||||
|
@ -3,9 +3,18 @@ include ../../make.mk
|
|||||||
INC += \
|
INC += \
|
||||||
src \
|
src \
|
||||||
$(TOP)/hw \
|
$(TOP)/hw \
|
||||||
|
$(TOP)/lib/CMSIS_5/CMSIS/DSP/Include \
|
||||||
|
|
||||||
# Example source
|
# Example source
|
||||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
EXAMPLE_SOURCE += \
|
||||||
|
src/main.c \
|
||||||
|
src/usb_descriptors.c \
|
||||||
|
|
||||||
|
# CMSIS sources
|
||||||
|
SRC_C += \
|
||||||
|
lib/CMSIS_5/CMSIS/DSP/Source/CommonTables/arm_common_tables.c \
|
||||||
|
lib/CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q15.c \
|
||||||
|
|
||||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||||
|
|
||||||
include ../../rules.mk
|
include ../../rules.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user