USB mass storage driver (#146)

This commit is contained in:
Ken Van Hoeylandt
2025-01-03 01:48:48 +01:00
committed by GitHub
parent ec90198dbf
commit a9e890a7f3
18 changed files with 455 additions and 16 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
namespace tt::hal::usb {
enum Mode {
ModeDefault, // Default state of USB stack
ModeNone, // State after TinyUSB was used and (partially) deinitialized
ModeMassStorageSdmmc
};
bool startMassStorageWithSdmmc();
void stop();
Mode getMode();
bool isSupported();
bool canRebootIntoMassStorageSdmmc();
void rebootIntoMassStorageSdmmc();
bool isUsbBootMode();
void resetUsbBootMode();
}