diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-18 15:40:24 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-18 15:40:24 +1000 |
| commit | cad70605401e8fa30811e8c68a0cc5c014438942 (patch) | |
| tree | 42307c27b01ce80b1e9038dea6dca2d4aa94eae1 /src/system_fsm/booting.cpp | |
| parent | 697ec3c5843c66253f73572c26b9b4885680d56c (diff) | |
| download | tangara-fw-cad70605401e8fa30811e8c68a0cc5c014438942.tar.gz | |
Add interrupts for samd changes
Diffstat (limited to 'src/system_fsm/booting.cpp')
| -rw-r--r-- | src/system_fsm/booting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Unmounted>(); } transit<Running>(); |
