From d8d37ffdb8bed39df5d021afa9e09bf087b45d0d Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 17 Oct 2020 16:57:51 -0400 Subject: Define a USB storage type, and hook it up for hosted targets Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2 --- firmware/export/storage.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/export/storage.h') diff --git a/firmware/export/storage.h b/firmware/export/storage.h index e6424f7b03..ee1423c93a 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h @@ -34,6 +34,9 @@ #if (CONFIG_STORAGE & STORAGE_SD) #include "sd.h" #endif +#if (CONFIG_STORAGE & STORAGE_USB) +// TODO: Doesn't matter until we're native +#endif #if (CONFIG_STORAGE & STORAGE_MMC) #include "mmc.h" #endif @@ -97,6 +100,9 @@ int nand_event(long id, intptr_t data); #if (CONFIG_STORAGE & STORAGE_RAMDISK) int ramdisk_event(long id, intptr_t data); #endif +#if (CONFIG_STORAGE & STORAGE_USB) +// int usb_event(long id, intptr_t data); // TODO: Implement +#endif struct storage_info { @@ -278,6 +284,8 @@ static inline void storage_sleep(void) {}; #define storage_present(drive) ramdisk_present(IF_MD(drive)) #endif #define storage_driver_type(drive) (STORAGE_RAMDISK_NUM) + #elif (CONFIG_STORAGE & STORAGE_USB) + // TODO: Eventually fix me #else //#error No storage driver! #endif -- cgit v1.2.3