forked from len0rd/rockbox
Define a USB storage type, and hook it up for hosted targets
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
This commit is contained in:
parent
0a4a920029
commit
d8d37ffdb8
7 changed files with 35 additions and 4 deletions
|
@ -130,7 +130,7 @@ void system_exception_wait(void)
|
|||
bool hostfs_removable(IF_MD_NONVOID(int drive))
|
||||
{
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
if (drive > 0) /* Active LOW */
|
||||
if (drive > 0)
|
||||
return true;
|
||||
else
|
||||
#endif
|
||||
|
@ -157,7 +157,11 @@ int volume_drive(int drive)
|
|||
#ifdef CONFIG_STORAGE_MULTI
|
||||
int hostfs_driver_type(int drive)
|
||||
{
|
||||
#if (CONFIG_STORAGE & STORAGE_USB)
|
||||
return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM;
|
||||
#else
|
||||
return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM;
|
||||
#endif
|
||||
}
|
||||
#endif /* CONFIG_STORAGE_MULTI */
|
||||
|
||||
|
@ -185,4 +189,3 @@ bool volume_present(int volume)
|
|||
return hostfs_present(volume);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue