Switch to freertos timers (#1095)
* Use FreeRTOS timer for AlarmController * Use FreeRTOS timer for MotorController * Remove app_timer component from compilation as we now solely use FreeROTS timer * Simplify variable and text names for AlarmController and MotorController timers * Call ScheduleAlarm directly from StopAlerting, for recurring timers Co-authored-by: Riku Isokoski <riksu9000@gmail.com> Co-authored-by: NeroBurner <pyro4hell@gmail.com>
This commit is contained in:
@@ -106,7 +106,6 @@ macro(nRF5x_setup)
|
||||
${NRF5_SDK_PATH}/external/freertos/source/stream_buffer.c
|
||||
${NRF5_SDK_PATH}/external/freertos/source/tasks.c
|
||||
${NRF5_SDK_PATH}/external/freertos/source/timers.c
|
||||
${NRF5_SDK_PATH}/components/libraries/timer/app_timer_freertos.c
|
||||
)
|
||||
|
||||
# freertos include
|
||||
@@ -335,7 +334,6 @@ endmacro(nRF5x_addAppFIFO)
|
||||
# adds app-level Timer libraries
|
||||
macro(nRF5x_addAppTimer)
|
||||
list(APPEND SDK_SOURCE_FILES
|
||||
"${NRF5_SDK_PATH}/components/libraries/timer/app_timer.c"
|
||||
)
|
||||
endmacro(nRF5x_addAppTimer)
|
||||
|
||||
|
Reference in New Issue
Block a user