1
0
Fork 0
forked from len0rd/rockbox

Hopefully mop-up remaining red.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19317 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-03 21:15:44 +00:00
parent add677fca8
commit bc963c34ae
7 changed files with 11 additions and 53 deletions

View file

@ -1123,6 +1123,7 @@ void powermgmt_init(void)
void sys_poweroff(void)
{
#ifndef BOOTLOADER
logf("sys_poweroff()");
/* If the main thread fails to shut down the system, we will force a
power off after an 20 second timeout - 28 seconds if recording */
@ -1139,6 +1140,7 @@ void sys_poweroff(void)
}
queue_broadcast(SYS_POWEROFF, 0);
#endif /* BOOTLOADER */
}
void cancel_shutdown(void)

View file

@ -487,6 +487,7 @@ void usb_init(void)
void usb_wait_for_disconnect(struct event_queue *q)
{
#ifdef USB_FULL_INIT
struct queue_event ev;
/* Don't return until we get SYS_USB_DISCONNECTED */
@ -499,10 +500,14 @@ void usb_wait_for_disconnect(struct event_queue *q)
return;
}
}
#else
(void)q;
#endif /* USB_FULL_INIT */
}
int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks)
{
#ifdef USB_FULL_INIT
struct queue_event ev;
/* Don't return until we get SYS_USB_DISCONNECTED or SYS_TIMEOUT */
@ -520,6 +525,10 @@ int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks)
break;
}
}
#else
(void)q; (void)ticks;
return 0;
#endif /* USB_FULL_INIT */
}
void usb_start_monitoring(void)