aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/timer/TimerController.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-02-27 15:40:43 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-04-16 14:33:23 +0000
commit661ffbeb1eea68ec0cd63b4db537515f1d1772c8 (patch)
tree415631431e5eba55b0d07ed1184359bdad07faa4 /src/components/timer/TimerController.h
parent4d93ae6d27a94fe2a3c03b8f09bff2e23da30e12 (diff)
TimerController: Make TimerController reusable
TimerController instance was moved to DisplayApp.
Diffstat (limited to 'src/components/timer/TimerController.h')
-rw-r--r--src/components/timer/TimerController.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h
index 1c2e44b6..1d2a51df 100644
--- a/src/components/timer/TimerController.h
+++ b/src/components/timer/TimerController.h
@@ -6,17 +6,10 @@
#include <chrono>
namespace Pinetime {
- namespace System {
- class SystemTask;
- }
-
namespace Controllers {
-
class TimerController {
public:
- TimerController() = default;
-
- void Init(System::SystemTask* systemTask);
+ TimerController(void* timerData, TimerCallbackFunction_t timerCallbackFunction);
void StartTimer(std::chrono::milliseconds duration);
@@ -26,10 +19,7 @@ namespace Pinetime {
bool IsRunning();
- void OnTimerEnd();
-
private:
- System::SystemTask* systemTask = nullptr;
TimerHandle_t timer;
};
}