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 14:49:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_library_link_libraries(CMSIS)
|
|
|
|
target_link_libraries(CMSIS INTERFACE zephyr_interface)
|