forked from len0rd/rockbox
provide a debug menu item to virtually reinsert drives for usb storage when the player is back to normal after "ejecting" all drives
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16618 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
745133014e
commit
f10f891bb4
1 changed files with 16 additions and 1 deletions
|
@ -102,9 +102,12 @@
|
||||||
#include "as3514.h"
|
#include "as3514.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
|
#if defined(HAVE_USBSTACK)
|
||||||
#include "usb_core.h"
|
#include "usb_core.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USB_STORAGE
|
||||||
|
#include "../firmware/usbstack/usb_storage.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*---------------------------------------------------*/
|
/*---------------------------------------------------*/
|
||||||
/* SPECIAL DEBUG STUFF */
|
/* SPECIAL DEBUG STUFF */
|
||||||
|
@ -2378,6 +2381,15 @@ static bool logf_usb_serial(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_USBSTACK) && defined(USB_STORAGE)
|
||||||
|
static bool usb_reconnect(void)
|
||||||
|
{
|
||||||
|
gui_syncsplash(HZ, "Reconnect mass storage");
|
||||||
|
usb_storage_reconnect();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****** The menu *********/
|
/****** The menu *********/
|
||||||
struct the_menu_item {
|
struct the_menu_item {
|
||||||
|
@ -2460,6 +2472,9 @@ static const struct the_menu_item menuitems[] = {
|
||||||
#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF) && defined(USB_SERIAL)
|
#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF) && defined(USB_SERIAL)
|
||||||
{"logf over usb",logf_usb_serial },
|
{"logf over usb",logf_usb_serial },
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(HAVE_USBSTACK) && defined(USB_STORAGE)
|
||||||
|
{"reconnect usb storage",usb_reconnect},
|
||||||
|
#endif
|
||||||
#ifdef CPU_BOOST_LOGGING
|
#ifdef CPU_BOOST_LOGGING
|
||||||
{"cpu_boost log",cpu_boost_log},
|
{"cpu_boost log",cpu_boost_log},
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue