summaryrefslogtreecommitdiff
path: root/src/system_fsm/booting.cpp
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/booting.cpp
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/booting.cpp')
-rw-r--r--src/system_fsm/booting.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp
index 940e10db..affd3ebc 100644
--- a/src/system_fsm/booting.cpp
+++ b/src/system_fsm/booting.cpp
@@ -5,9 +5,11 @@
*/
#include "collation.hpp"
+#include "haptics.hpp"
#include "system_fsm.hpp"
#include <stdint.h>
+#include <memory>
#include "assert.h"
#include "esp_err.h"
@@ -75,6 +77,7 @@ auto Booting::entry() -> void {
std::unique_ptr<drivers::NvsStorage>(drivers::NvsStorage::OpenSync()));
sServices->touchwheel(
std::unique_ptr<drivers::TouchWheel>{drivers::TouchWheel::Create()});
+ sServices->haptics(std::make_unique<drivers::Haptics>());
auto adc = drivers::AdcBattery::Create();
sServices->battery(std::make_unique<battery::Battery>(