1
0
Fork 0
forked from len0rd/rockbox

USB is the same on all H1x0 models

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7068 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-07-08 15:00:31 +00:00
parent 2cf25d0c10
commit 3b5fdbeb1f

View file

@ -349,7 +349,7 @@ bool usb_detect(void)
#ifdef USB_PLAYERSTYLE #ifdef USB_PLAYERSTYLE
current_status = (PADR & 0x8000)?false:true; current_status = (PADR & 0x8000)?false:true;
#endif #endif
#ifdef IRIVER_H120 #ifdef USB_IRIVERSTYLE
current_status = (GPIO1_READ & 0x80)?true:false; current_status = (GPIO1_READ & 0x80)?true:false;
#endif #endif
#ifdef USB_GMINISTYLE #ifdef USB_GMINISTYLE
@ -428,7 +428,7 @@ void usb_init(void)
usb_monitor_enabled = false; usb_monitor_enabled = false;
countdown = -1; countdown = -1;
#ifdef IRIVER_H120 #ifdef USB_IRIVERSTYLE
GPIO_OUT &= ~0x01000000; /* GPIO24 is the Cypress chip power */ GPIO_OUT &= ~0x01000000; /* GPIO24 is the Cypress chip power */
GPIO_ENABLE |= 0x01000000; GPIO_ENABLE |= 0x01000000;
GPIO_FUNCTION |= 0x01000000; GPIO_FUNCTION |= 0x01000000;