summaryrefslogtreecommitdiff
path: root/src/components/alarm/AlarmController.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/alarm/AlarmController.h')
-rw-r--r--src/components/alarm/AlarmController.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h
index fca4287..df65c63 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"
@@ -37,6 +39,7 @@ namespace Pinetime {
void SetOffAlarmNow();
uint32_t SecondsToAlarm();
void StopAlerting();
+ void OnStopRinging();
enum class AlarmState { Not_Set, Set, Alerting };
enum class RecurType { None, Daily, Weekdays };
uint8_t Hours() const {
@@ -58,6 +61,7 @@ namespace Pinetime {
private:
Controllers::DateTime& dateTimeController;
System::SystemTask* systemTask = nullptr;
+ TimerHandle_t alarmAppTimer;
uint8_t hours = 7;
uint8_t minutes = 0;
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> alarmTime;