summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-08 15:00:31 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-08 15:00:31 +0000
commit3b5fdbeb1fbe47fda11148d6c5c7011dbb39194f (patch)
tree2131b9cbf13fdd3ff80d95f00c1aa3fb08755825 /firmware/usb.c
parent2cf25d0c10f8589d0cccfe6e16b5e77a419ebe68 (diff)
downloadrockbox-3b5fdbeb1fbe47fda11148d6c5c7011dbb39194f.tar.gz
rockbox-3b5fdbeb1fbe47fda11148d6c5c7011dbb39194f.zip
USB is the same on all H1x0 models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index a3fc1967c2..e217bf4680 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -349,7 +349,7 @@ bool usb_detect(void)
349#ifdef USB_PLAYERSTYLE 349#ifdef USB_PLAYERSTYLE
350 current_status = (PADR & 0x8000)?false:true; 350 current_status = (PADR & 0x8000)?false:true;
351#endif 351#endif
352#ifdef IRIVER_H120 352#ifdef USB_IRIVERSTYLE
353 current_status = (GPIO1_READ & 0x80)?true:false; 353 current_status = (GPIO1_READ & 0x80)?true:false;
354#endif 354#endif
355#ifdef USB_GMINISTYLE 355#ifdef USB_GMINISTYLE
@@ -428,7 +428,7 @@ void usb_init(void)
428 usb_monitor_enabled = false; 428 usb_monitor_enabled = false;
429 countdown = -1; 429 countdown = -1;
430 430
431#ifdef IRIVER_H120 431#ifdef USB_IRIVERSTYLE
432 GPIO_OUT &= ~0x01000000; /* GPIO24 is the Cypress chip power */ 432 GPIO_OUT &= ~0x01000000; /* GPIO24 is the Cypress chip power */
433 GPIO_ENABLE |= 0x01000000; 433 GPIO_ENABLE |= 0x01000000;
434 GPIO_FUNCTION |= 0x01000000; 434 GPIO_FUNCTION |= 0x01000000;