summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/usb.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index d513d10e55..00fec53afa 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -72,10 +72,14 @@ static void usb_enable(bool on)
72#endif 72#endif
73 73
74 if(on) 74 if(on)
75 PADR &= ~0x400; /* enable USB */ 75 {
76 and_b(~0x04, &PADRH); /* enable USB */
77 }
76 else 78 else
77 PADR |= 0x400; 79 {
78 PAIOR |= 0x400; 80 or_b(0x04, &PADRH);
81 }
82 or_b(0x04, &PAIORH);
79} 83}
80 84
81static void usb_slave_mode(bool on) 85static void usb_slave_mode(bool on)