diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-05 08:02:48 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-05 08:02:48 +0000 |
commit | a10bb59331b5e48adf307c4538333e9a4e036db9 (patch) | |
tree | 67303988c34d2ba75ff228abd18ebd68ebc97586 /firmware/usb.c | |
parent | 9b226fef0e7863d78fd740eb8acd3f3cbe369fed (diff) | |
download | rockbox-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
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 2 |
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; |