-
Notifications
You must be signed in to change notification settings - Fork 0
/
FreeRTOS.cmake
23 lines (23 loc) · 1021 Bytes
/
FreeRTOS.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set(FREERTOS_KERNEL_PATH ${CMAKE_SOURCE_DIR}/FreeRTOS-Kernel CACHE PATH "")
set(FREERTOS_RP2040_PATH ${FREERTOS_KERNEL_PATH}/portable/ThirdParty/GCC/RP2040 CACHE PATH "")
set(FREERTOS_CONFIG_FILE_DIRECTORY ${CMAKE_SOURCE_DIR}/src CACHE PATH "Path to FreeRTOSConfig.h directory")
add_library(FreeRTOS-RP2040-Kernel INTERFACE)
target_sources(FreeRTOS-RP2040-Kernel INTERFACE
${FREERTOS_KERNEL_PATH}/croutine.c
${FREERTOS_KERNEL_PATH}/event_groups.c
${FREERTOS_KERNEL_PATH}/list.c
${FREERTOS_KERNEL_PATH}/queue.c
${FREERTOS_KERNEL_PATH}/stream_buffer.c
${FREERTOS_KERNEL_PATH}/tasks.c
${FREERTOS_KERNEL_PATH}/timers.c
${FREERTOS_RP2040_PATH}/port.c
${FREERTOS_RP2040_PATH}/idle_task_static_memory.c
)
target_include_directories(FreeRTOS-RP2040-Kernel INTERFACE
${FREERTOS_KERNEL_PATH}/include
${FREERTOS_RP2040_PATH}/include
)
target_link_libraries(
FreeRTOS-RP2040-Kernel INTERFACE
hardware_exception
)