From cad70605401e8fa30811e8c68a0cc5c014438942 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 18 Aug 2023 15:40:24 +1000 Subject: Add interrupts for samd changes --- src/system_fsm/booting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system_fsm/booting.cpp') diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index 2a4d5f5c..6720fb4a 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -39,7 +39,7 @@ auto Booting::entry() -> void { // I2C and SPI are both always needed. We can't even power down or show an // error without these. ESP_ERROR_CHECK(drivers::init_spi()); - sGpios->InstallReadPendingISR(); + sGpios.reset(drivers::Gpios::Create()); // Start bringing up LVGL now, since we have all of its prerequisites. sTrackQueue.reset(new audio::TrackQueue()); @@ -97,7 +97,7 @@ auto Booting::react(const BootComplete& ev) -> void { // It's possible that the SAMD is currently exposing the SD card as a USB // device. Make sure we don't immediately try to claim it. if (sSamd && - sSamd->ReadUsbStatus() == drivers::Samd::UsbStatus::kAttachedMounted) { + sSamd->GetUsbStatus() == drivers::Samd::UsbStatus::kAttachedMounted) { transit(); } transit(); -- cgit v1.2.3