mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Scrub r30546 bootloader build errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30548 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
82259b7af5
commit
0576e71725
1 changed files with 6 additions and 1 deletions
|
|
@ -45,18 +45,23 @@ void usb_enable(bool on)
|
|||
void usb_insert_int(void)
|
||||
{
|
||||
usb_status = USB_INSERTED;
|
||||
#ifdef USB_STATUS_BY_EVENT
|
||||
usb_status_event(USB_POWERED);
|
||||
#endif
|
||||
}
|
||||
|
||||
void usb_remove_int(void)
|
||||
{
|
||||
usb_status = USB_EXTRACTED;
|
||||
#ifdef USB_STATUS_BY_EVENT
|
||||
usb_status_event(USB_UNPOWERED);
|
||||
#endif
|
||||
}
|
||||
|
||||
void usb_drv_usb_detect_event(void)
|
||||
{
|
||||
#if CONFIG_CPU != AS3525v2 || defined(USE_ROCKBOX_USB)
|
||||
#if (CONFIG_CPU != AS3525v2 || defined(USE_ROCKBOX_USB)) \
|
||||
&& defined (USB_STATUS_BY_EVENT)
|
||||
/* Rebooting on USB plug can crash these players in a state where
|
||||
* hardware power off (pressing the power button) doesn't work anymore
|
||||
* TODO: Implement USB in rockbox for these players */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue