summaryrefslogtreecommitdiff
path: root/src/systemtask
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-06-06 15:47:43 (GMT)
committerGitHub <noreply@github.com>2022-06-06 15:47:43 (GMT)
commit35dcf8c8607483c104711c9398d47d57147f4389 (patch)
treeb2c17823827af9233dff152d918fb829cc939ad8 /src/systemtask
parentf95147cf0ed759a6ae30ac8d7cfdf7eba23a3ee9 (diff)
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>
Diffstat (limited to 'src/systemtask')
-rw-r--r--src/systemtask/SystemTask.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 200cf3b..d3f1278 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -2,7 +2,6 @@
#include <hal/nrf_rtc.h>
#include <libraries/gpiote/app_gpiote.h>
#include <libraries/log/nrf_log.h>
-#include <app_timer.h>
#include "BootloaderVersion.h"
#include "components/battery/BatteryController.h"
#include "components/ble/BleController.h"
@@ -127,8 +126,6 @@ void SystemTask::Work() {
NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::Watchdog::ResetReasonToString(watchdog.ResetReason()));
APP_GPIOTE_INIT(2);
- app_timer_init();
-
spi.Init();
spiNorFlash.Init();
spiNorFlash.Wakeup();