forked from len0rd/rockbox
Gmini
* advances in the handling of the smsc chip * moved stuff to where it belongs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6023 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ec05779e3
commit
a3ed6e9c7a
4 changed files with 27 additions and 8 deletions
|
@ -349,6 +349,18 @@ static void usb_tick(void)
|
|||
{
|
||||
bool current_status;
|
||||
|
||||
#ifdef USB_GMINISTYLE
|
||||
/* Keep usb chip in usb state (?) */
|
||||
if (P5 & 0x10) {
|
||||
if ((P10 & 0x20) == 0 || (P6 & 0x08) == 0) {
|
||||
if (smsc_version() < 4) {
|
||||
P6 |= 0x08;
|
||||
P10 |= 0x20;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if(usb_monitor_enabled)
|
||||
{
|
||||
current_status = usb_detect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue