1
0
Fork 0
forked from len0rd/rockbox

Simulate usb plugging on the sim better using sim_tasks.

Now all threads need to ack the connection like on real target, dircache is unloaded and playback stops accordingly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31009 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-11-17 18:40:00 +00:00
parent 2a8eacdbfc
commit 1645c148e3
9 changed files with 101 additions and 21 deletions

View file

@ -782,16 +782,14 @@ void usb_set_hid(bool enable)
}
#endif /* USB_ENABLE_HID */
#else /* SIMULATOR || USB_NONE */
#elif defined(USB_NONE)
/* Dummy functions for USB_NONE */
#ifdef USB_NONE
bool usb_inserted(void)
{
return false;
}
#endif /* USB_NONE */
/* Dummy simulator functions */
void usb_acknowledge(long id)
{
id = id;
@ -814,5 +812,5 @@ void usb_wait_for_disconnect(struct event_queue *q)
{
(void)q;
}
#endif /* USB_NONE */
#endif /* !USB_NONE && !SIMULATOR */