aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/timer/TimerController.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/timer/TimerController.h')
-rw-r--r--src/components/timer/TimerController.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h
deleted file mode 100644
index 1c2e44b6..00000000
--- a/src/components/timer/TimerController.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#pragma once
-
-#include <FreeRTOS.h>
-#include <timers.h>
-
-#include <chrono>
-
-namespace Pinetime {
- namespace System {
- class SystemTask;
- }
-
- namespace Controllers {
-
- class TimerController {
- public:
- TimerController() = default;
-
- void Init(System::SystemTask* systemTask);
-
- void StartTimer(std::chrono::milliseconds duration);
-
- void StopTimer();
-
- std::chrono::milliseconds GetTimeRemaining();
-
- bool IsRunning();
-
- void OnTimerEnd();
-
- private:
- System::SystemTask* systemTask = nullptr;
- TimerHandle_t timer;
- };
- }
-}