Moved FreeRTOS to an object library

This also allows for reducing the propagated includes and thus avoid name clashes to FreeRTOS.
This commit is contained in:
Raphael Coeffic
2022-04-03 17:50:53 +02:00
parent 93b8bf129c
commit c11d7d58ae
10 changed files with 75 additions and 55 deletions
@@ -270,8 +270,6 @@ add_definitions(-DGPS)
add_definitions(-DBATTGRAPH -DTHRTRACE)
add_definitions(-DSBUS_TRAINER)
include_directories(${RTOS_DIR}/include)
foreach(LANGUAGE ${TTS_LANGUAGES})
string(TOLOWER ${LANGUAGE} lang_lower)
set(SRC ${SRC} translations/tts_${lang_lower}.cpp)
@@ -299,22 +297,6 @@ set(FIRMWARE_TARGET_SRC
telemetry_driver.cpp
)
set(FIRMWARE_SRC
${FIRMWARE_SRC}
${RTOS_DIR}/list.c
${RTOS_DIR}/queue.c
${RTOS_DIR}/tasks.c
${RTOS_DIR}/event_groups.c
${RTOS_DIR}/timers.c
rtos.c)
if(CLI)
set(FIRMWARE_SRC
${FIRMWARE_SRC}
${RTOS_DIR}/stream_buffer.c)
endif()
set(PULSES_SRC
${PULSES_SRC}
pulses.cpp