Access to the "/data" partition via USB Mass Storage (#405)

This commit is contained in:
NellowTCS
2025-11-02 08:26:35 -07:00
committed by GitHub
parent e2ec39304c
commit ab2aa2c4d4
9 changed files with 166 additions and 29 deletions
+15 -1
View File
@@ -5,7 +5,14 @@ namespace tt::hal::usb {
enum class Mode {
Default, // Default state of USB stack
None, // State after TinyUSB was used and (partially) deinitialized
MassStorageSdmmc
MassStorageSdmmc,
MassStorageFlash // For internal flash /data partition
};
enum class BootMode {
None,
Sdmmc,
Flash
};
bool startMassStorageWithSdmmc();
@@ -18,4 +25,11 @@ void rebootIntoMassStorageSdmmc();
bool isUsbBootMode();
void resetUsbBootMode();
BootMode getUsbBootMode();
// Flash-based mass storage
bool startMassStorageWithFlash();
bool canRebootIntoMassStorageFlash();
void rebootIntoMassStorageFlash();
}