summaryrefslogtreecommitdiff
path: root/src/system_fsm/include/system_fsm.hpp
diff options
context:
space:
mode:
authorRobin Howard <robin@rhoward.id.au>2023-11-07 15:46:07 +1100
committerRobin Howard <robin@rhoward.id.au>2023-11-07 16:31:55 +1100
commit135185f12ba07dea8568b06c0a65a00a8af7deb7 (patch)
tree19724b4caf02c6127766be4e9bfd33d006cfdd25 /src/system_fsm/include/system_fsm.hpp
parent3abf599c4f8b04bed4ed67084588204f65a644d0 (diff)
downloadtangara-fw-135185f12ba07dea8568b06c0a65a00a8af7deb7.tar.gz
haptics: adds a wrapper for the DRV2605L haptic motor driver
... with facilities to trigger effects via the system fsm.
Diffstat (limited to 'src/system_fsm/include/system_fsm.hpp')
-rw-r--r--src/system_fsm/include/system_fsm.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/system_fsm/include/system_fsm.hpp b/src/system_fsm/include/system_fsm.hpp
index 28448e5a..c9803bef 100644
--- a/src/system_fsm/include/system_fsm.hpp
+++ b/src/system_fsm/include/system_fsm.hpp
@@ -50,6 +50,8 @@ class SystemState : public tinyfsm::Fsm<SystemState> {
void react(const internal::GpioInterrupt&);
void react(const internal::SamdInterrupt&);
+ void react(const HapticTrigger&);
+
virtual void react(const DisplayReady&) {}
virtual void react(const BootComplete&) {}
virtual void react(const StorageMounted&) {}