forked from len0rd/rockbox
Now the CPU is idle in USB mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7024 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9b226fef0e
commit
a10bb59331
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,7 @@ static void usb_thread(void)
|
||||||
#ifdef USB_REALLY_BRAVE
|
#ifdef USB_REALLY_BRAVE
|
||||||
usb_slave_mode(true);
|
usb_slave_mode(true);
|
||||||
usb_state = USB_INSERTED;
|
usb_state = USB_INSERTED;
|
||||||
|
cpu_idle_mode(true);
|
||||||
#else
|
#else
|
||||||
system_reboot();
|
system_reboot();
|
||||||
#endif
|
#endif
|
||||||
|
@ -283,6 +284,7 @@ static void usb_thread(void)
|
||||||
some threads might not have acknowledged the
|
some threads might not have acknowledged the
|
||||||
insertion */
|
insertion */
|
||||||
usb_slave_mode(false);
|
usb_slave_mode(false);
|
||||||
|
cpu_idle_mode(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
usb_state = USB_EXTRACTED;
|
usb_state = USB_EXTRACTED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue