2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-06-05 11:33:12 +08:00
|
|
|
|
|
|
|
add_library(CMSIS INTERFACE)
|
|
|
|
|
|
|
|
target_include_directories(CMSIS INTERFACE ${PROJECT_SOURCE_DIR}/include/cmsis_rtos_v1)
|
|
|
|
|
|
|
|
zephyr_library()
|
2018-06-19 14:20:38 +08:00
|
|
|
zephyr_library_sources_ifdef(
|
|
|
|
CONFIG_CMSIS_RTOS_V1
|
|
|
|
cmsis_thread.c
|
|
|
|
cmsis_wait.c
|
2018-06-19 14:39:59 +08:00
|
|
|
cmsis_kernel.c
|
2018-06-19 15:03:12 +08:00
|
|
|
cmsis_timer.c
|
2018-07-06 18:14:11 +08:00
|
|
|
cmsis_mutex.c
|
2018-07-09 18:13:28 +08:00
|
|
|
cmsis_semaphore.c
|
2018-07-12 17:45:57 +08:00
|
|
|
cmsis_mempool.c
|
2018-07-18 12:39:20 +08:00
|
|
|
cmsis_mailq.c
|
2018-07-20 18:08:24 +08:00
|
|
|
cmsis_msgq.c
|
2018-08-02 18:39:39 +08:00
|
|
|
cmsis_signal.c
|
2018-06-19 14:20:38 +08:00
|
|
|
)
|
2018-06-05 11:33:12 +08:00
|
|
|
|
2019-10-24 23:08:21 +08:00
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
|
|
|
|
2018-06-05 11:33:12 +08:00
|
|
|
zephyr_library_link_libraries(CMSIS)
|