summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-15 22:54:15 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-16 01:18:36 (GMT)
commitc92fdb2e8cec3c581124c5efcfb5297ac4cfdcb5 (patch)
treeab550245fae41067ac2696203ee94ff19fbd9d34 /src/components/motor/MotorController.h
parent59f59c5f9c929307ed42abafb30f7b7e2b4081f0 (diff)
Switch motorController to FreeRTOS timers.
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;
};
}
}