diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-06 15:47:43 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-06 15:47:43 (GMT) |
| commit | 35dcf8c8607483c104711c9398d47d57147f4389 (patch) | |
| tree | b2c17823827af9233dff152d918fb829cc939ad8 /src/components/alarm/AlarmController.h | |
| parent | f95147cf0ed759a6ae30ac8d7cfdf7eba23a3ee9 (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/components/alarm/AlarmController.h')
| -rw-r--r-- | src/components/alarm/AlarmController.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h index f39fbde..d630a12 100644 --- a/src/components/alarm/AlarmController.h +++ b/src/components/alarm/AlarmController.h @@ -17,6 +17,8 @@ */ #pragma once +#include <FreeRTOS.h> +#include <timers.h> #include <cstdint> #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<std::chrono::system_clock, std::chrono::nanoseconds> alarmTime; |
