diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-16 11:43:58 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-16 12:12:52 (GMT) |
| commit | 2e367ec0aea857a1aee7306a2de893f96a60f2df (patch) | |
| tree | 86439281fb0ed810b83161cb36985f2a731b22bc /src/components/motor/MotorController.h | |
| parent | ebf3859407adba9da7acbc77b1ebabfd39d80a37 (diff) | |
| parent | c9808e29f1bbfbd1396d7b83212f6d223d52f99d (diff) | |
Merge branch 'alarm-fix-work' into edge
# Conflicts:
# src/components/timer/TimerController.cpp
Diffstat (limited to 'src/components/motor/MotorController.h')
| -rw-r--r-- | src/components/motor/MotorController.h | 8 |
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; }; } } |
