summaryrefslogtreecommitdiff
path: root/src/system_fsm/booting.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-30 20:48:40 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-30 20:48:40 +1000
commit371f0a20cad4dfcb3237db6f72a7e35403950938 (patch)
tree48240a9c3d2121095e0f10537228603120435dd0 /src/system_fsm/booting.cpp
parent0347555d5b2314e1be58261ef29fa13a76c039e6 (diff)
downloadtangara-fw-371f0a20cad4dfcb3237db6f72a7e35403950938.tar.gz
Clean up gpios interface
Diffstat (limited to 'src/system_fsm/booting.cpp')
-rw-r--r--src/system_fsm/booting.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp
index e7505f11..41adb906 100644
--- a/src/system_fsm/booting.cpp
+++ b/src/system_fsm/booting.cpp
@@ -11,7 +11,7 @@
#include "esp_err.h"
#include "esp_log.h"
#include "event_queue.hpp"
-#include "gpio_expander.hpp"
+#include "gpios.hpp"
#include "lvgl/lvgl.h"
#include "relative_wheel.hpp"
#include "spi.hpp"
@@ -42,12 +42,12 @@ auto Booting::entry() -> void {
// These drivers are the bare minimum to even show an error. If these fail,
// then the system is completely hosed.
- sGpioExpander.reset(drivers::GpioExpander::Create());
- assert(sGpioExpander != nullptr);
+ sGpios.reset(drivers::Gpios::Create());
+ assert(sGpios != nullptr);
// Start bringing up LVGL now, since we have all of its prerequisites.
ESP_LOGI(kTag, "starting ui");
- if (!ui::UiState::Init(sGpioExpander.get())) {
+ if (!ui::UiState::Init(sGpios.get())) {
events::Dispatch<FatalError, SystemState, ui::UiState, audio::AudioState>(
FatalError());
return;
@@ -68,7 +68,7 @@ auto Booting::entry() -> void {
// state machines and inform them that the system is ready.
ESP_LOGI(kTag, "starting audio");
- if (!audio::AudioState::Init(sGpioExpander.get(), sDatabase)) {
+ if (!audio::AudioState::Init(sGpios.get(), sDatabase)) {
events::Dispatch<FatalError, SystemState, ui::UiState, audio::AudioState>(
FatalError());
return;