forked from len0rd/rockbox
some fixes for Ondio USB passthrough (but still doesn't work yet)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5067 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00be7469d6
commit
c4e8bed5a7
2 changed files with 17 additions and 13 deletions
|
|
@ -72,11 +72,6 @@ static bool usb_monitor_enabled;
|
|||
|
||||
static void usb_enable(bool on)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if(read_hw_mask() & USB_ACTIVE_HIGH)
|
||||
on = !on;
|
||||
#endif
|
||||
|
||||
#ifdef USB_ENABLE_ONDIOSTYLE
|
||||
if(on)
|
||||
{
|
||||
|
|
@ -88,6 +83,10 @@ static void usb_enable(bool on)
|
|||
}
|
||||
or_b(0x20, &PAIORL); /* output for USB enable */
|
||||
#else /* standard HD Jukebox */
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if(read_hw_mask() & USB_ACTIVE_HIGH)
|
||||
on = !on;
|
||||
#endif
|
||||
if(on)
|
||||
{
|
||||
and_b(~0x04, &PADRH); /* enable USB */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue