1
0
Fork 0
forked from len0rd/rockbox

Only show the usb screen once a real usb connection is established. In case other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up")

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-03-02 00:15:02 +00:00
parent 5f1e1a5e5e
commit f18d20ee36
4 changed files with 92 additions and 16 deletions

View file

@ -29,6 +29,7 @@ enum {
USB_REENABLE,
USB_POWERED,
USB_TRANSFER_COMPLETION,
USB_REQUEST_DISK,
USB_REQUEST_REBOOT
};
@ -102,6 +103,8 @@ bool usb_charging_enabled(void);
#ifdef HAVE_USBSTACK
void usb_signal_transfer_completion(struct usb_transfer_completion_event_data* event_data);
bool usb_driver_enabled(int driver);
bool usb_exclusive_ata(void); /* ata is available for usb */
void usb_request_exclusive_ata(void);
#endif
#if defined(IPOD_COLOR) || defined(IPOD_4G) \