From 0347555d5b2314e1be58261ef29fa13a76c039e6 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 30 Jun 2023 17:05:11 +1000 Subject: Start on converting gpio expander interupts to fsm events --- src/system_fsm/booting.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system_fsm/booting.cpp') diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index 1e1b2959..e7505f11 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -27,6 +27,10 @@ namespace states { static const char kTag[] = "BOOT"; +static std::function sGpiosCallback = []() { + events::EventQueue::GetInstance().DispatchFromISR(internal::GpioInterrupt{}); +}; + auto Booting::entry() -> void { ESP_LOGI(kTag, "beginning tangara boot"); ESP_LOGI(kTag, "installing early drivers"); -- cgit v1.2.3