summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 3be6d75..1b9e747 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -77,6 +77,17 @@ static void usb_enable(bool on)
on = !on;
#endif
+#ifdef USB_ENABLE_ONDIOSTYLE
+ if(on)
+ {
+ or_b(0x20, &PADRL); /* enable USB */
+ }
+ else
+ {
+ and_b(~0x20, &PADRL);
+ }
+ or_b(0x20, &PAIORL);
+#else /* standard HD Jukebox */
if(on)
{
and_b(~0x04, &PADRH); /* enable USB */
@@ -86,6 +97,7 @@ static void usb_enable(bool on)
or_b(0x04, &PADRH);
}
or_b(0x04, &PAIORH);
+#endif
}
static void usb_slave_mode(bool on)