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:
parent
f95147cf0e
commit
35dcf8c860
9 changed files with 32 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue