From 35dcf8c8607483c104711c9398d47d57147f4389 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Mon, 6 Jun 2022 17:47:43 +0200 Subject: 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 Co-authored-by: NeroBurner --- src/components/alarm/AlarmController.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/alarm/AlarmController.h') diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h index f39fbded..d630a128 100644 --- a/src/components/alarm/AlarmController.h +++ b/src/components/alarm/AlarmController.h @@ -17,6 +17,8 @@ */ #pragma once +#include +#include #include #include "components/datetime/DateTimeController.h" @@ -57,6 +59,7 @@ namespace Pinetime { private: Controllers::DateTime& dateTimeController; System::SystemTask* systemTask = nullptr; + TimerHandle_t alarmTimer; uint8_t hours = 7; uint8_t minutes = 0; std::chrono::time_point alarmTime; -- cgit v1.2.3-70-g09d2