1
0
Fork 0
forked from len0rd/rockbox

another fix towards Ondio USB passthrough

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5070 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2004-09-13 07:39:00 +00:00
parent 5cd074ecee
commit 8e6174c410

View file

@ -76,12 +76,15 @@ static void usb_enable(bool on)
if(on)
{
or_b(0x20, &PADRL); /* enable USB */
and_b(~0x08, &PADRL); /* assert card detect */
}
else
{
and_b(~0x20, &PADRL); /* disable USB */
or_b(0x08, &PADRL); /* deassert card detect */
}
or_b(0x20, &PAIORL); /* output for USB enable */
PACR2 &= ~0x00C0; /* use PA3 as GPIO */
or_b(0x28, &PAIORL); /* output for USB enable and card detect */
#else /* standard HD Jukebox */
#ifdef HAVE_LCD_BITMAP
if(read_hw_mask() & USB_ACTIVE_HIGH)