2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-10-30 14:49:03 +08:00
|
|
|
|
|
|
|
add_library(CMSIS INTERFACE)
|
|
|
|
|
|
|
|
target_include_directories(CMSIS INTERFACE ${PROJECT_SOURCE_DIR}/include/cmsis_rtos_v2)
|
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(
|
|
|
|
CONFIG_CMSIS_RTOS_V2
|
|
|
|
thread.c
|
2018-10-31 12:56:37 +08:00
|
|
|
kernel.c
|
2018-10-30 15:17:35 +08:00
|
|
|
timer.c
|
2018-10-30 15:20:19 +08:00
|
|
|
mutex.c
|
2018-10-30 15:23:44 +08:00
|
|
|
semaphore.c
|
2018-10-30 15:30:31 +08:00
|
|
|
mempool.c
|
2018-10-30 15:35:13 +08:00
|
|
|
msgq.c
|
2018-10-30 15:38:17 +08:00
|
|
|
event_flags.c
|
2018-10-30 15:51:31 +08:00
|
|
|
thread_flags.c
|
2018-10-30 14:49:03 +08:00
|
|
|
)
|
|
|
|
|
2019-10-24 23:08:21 +08:00
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
|
|
|
|
2018-10-30 14:49:03 +08:00
|
|
|
zephyr_library_link_libraries(CMSIS)
|