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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user