summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-05 08:02:48 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-05 08:02:48 +0000
commita10bb59331b5e48adf307c4538333e9a4e036db9 (patch)
tree67303988c34d2ba75ff228abd18ebd68ebc97586
parent9b226fef0e7863d78fd740eb8acd3f3cbe369fed (diff)
downloadrockbox-a10bb59331b5e48adf307c4538333e9a4e036db9.tar.gz
rockbox-a10bb59331b5e48adf307c4538333e9a4e036db9.zip
Now the CPU is idle in USB mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7024 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 58656b585f..44e359f8e9 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -253,6 +253,7 @@ static void usb_thread(void)
253#ifdef USB_REALLY_BRAVE 253#ifdef USB_REALLY_BRAVE
254 usb_slave_mode(true); 254 usb_slave_mode(true);
255 usb_state = USB_INSERTED; 255 usb_state = USB_INSERTED;
256 cpu_idle_mode(true);
256#else 257#else
257 system_reboot(); 258 system_reboot();
258#endif 259#endif
@@ -283,6 +284,7 @@ static void usb_thread(void)
283 some threads might not have acknowledged the 284 some threads might not have acknowledged the
284 insertion */ 285 insertion */
285 usb_slave_mode(false); 286 usb_slave_mode(false);
287 cpu_idle_mode(false);
286 } 288 }
287 289
288 usb_state = USB_EXTRACTED; 290 usb_state = USB_EXTRACTED;