diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 16:57:51 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 18:38:49 -0400 |
commit | d8d37ffdb8bed39df5d021afa9e09bf087b45d0d (patch) | |
tree | eaea28432d9a76c98d69470c3c8a8bd0b4e17282 /firmware/target/hosted/system-hosted.c | |
parent | 0a4a920029bfb8194c37870b7e6d8e60cd7c8ef9 (diff) | |
download | rockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.tar.gz rockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.zip |
Define a USB storage type, and hook it up for hosted targets
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
Diffstat (limited to 'firmware/target/hosted/system-hosted.c')
-rw-r--r-- | firmware/target/hosted/system-hosted.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c index cad84ac868..f485dc4c15 100644 --- a/firmware/target/hosted/system-hosted.c +++ b/firmware/target/hosted/system-hosted.c | |||
@@ -130,7 +130,7 @@ void system_exception_wait(void) | |||
130 | bool hostfs_removable(IF_MD_NONVOID(int drive)) | 130 | bool hostfs_removable(IF_MD_NONVOID(int drive)) |
131 | { | 131 | { |
132 | #ifdef HAVE_MULTIDRIVE | 132 | #ifdef HAVE_MULTIDRIVE |
133 | if (drive > 0) /* Active LOW */ | 133 | if (drive > 0) |
134 | return true; | 134 | return true; |
135 | else | 135 | else |
136 | #endif | 136 | #endif |
@@ -157,7 +157,11 @@ int volume_drive(int drive) | |||
157 | #ifdef CONFIG_STORAGE_MULTI | 157 | #ifdef CONFIG_STORAGE_MULTI |
158 | int hostfs_driver_type(int drive) | 158 | int hostfs_driver_type(int drive) |
159 | { | 159 | { |
160 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
161 | return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM; | ||
162 | #else | ||
160 | return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM; | 163 | return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM; |
164 | #endif | ||
161 | } | 165 | } |
162 | #endif /* CONFIG_STORAGE_MULTI */ | 166 | #endif /* CONFIG_STORAGE_MULTI */ |
163 | 167 | ||
@@ -185,4 +189,3 @@ bool volume_present(int volume) | |||
185 | return hostfs_present(volume); | 189 | return hostfs_present(volume); |
186 | } | 190 | } |
187 | #endif | 191 | #endif |
188 | |||