summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-05-12 00:19:59 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-05-12 00:19:59 (GMT)
commit72d0f103a8bc1048ff9729aee65070475977b5a3 (patch)
tree6a806507701dcbea7eb30fa0351de9f3e59d7f56 /src/components/motor/MotorController.h
parent1ff0a48bbb66f8099c1451fa02983655003def8e (diff)
parentaca605d4fb4040cc80c1acf101023aa86e7694ba (diff)
Merge branch 'alarm-reliability-and-switch-to-freertos-timers' into analog24
Diffstat (limited to 'src/components/motor/MotorController.h')
-rw-r--r--src/components/motor/MotorController.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h
index b5a592b..3c6cbd2 100644
--- a/src/components/motor/MotorController.h
+++ b/src/components/motor/MotorController.h
@@ -1,5 +1,7 @@
#pragma once
+#include <FreeRTOS.h>
+#include <timers.h>
#include <cstdint>
namespace Pinetime {
@@ -15,8 +17,10 @@ namespace Pinetime {
void StopRinging();
private:
- static void Ring(void* p_context);
- static void StopMotor(void* p_context);
+ static void Ring(TimerHandle_t xTimer);
+ static void StopMotor(TimerHandle_t xTimer);
+ TimerHandle_t shortVibTimer;
+ TimerHandle_t longVibTimer;
};
}
}