forked from len0rd/rockbox
Removed dead code; some minor optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6427 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
46295b5312
commit
d89b75bbc0
1 changed files with 5 additions and 10 deletions
|
|
@ -539,15 +539,15 @@ bool dbg_hw_info(void)
|
||||||
int oldmode; /* saved memory guard mode */
|
int oldmode; /* saved memory guard mode */
|
||||||
|
|
||||||
#ifdef USB_ENABLE_ONDIOSTYLE
|
#ifdef USB_ENABLE_ONDIOSTYLE
|
||||||
if(PADR & 0x20)
|
if(PADRL & 0x20)
|
||||||
#else
|
#else
|
||||||
if(PADR & 0x400)
|
if(PADRH & 0x04)
|
||||||
#endif
|
#endif
|
||||||
usb_polarity = 0; /* Negative */
|
usb_polarity = 0; /* Negative */
|
||||||
else
|
else
|
||||||
usb_polarity = 1; /* Positive */
|
usb_polarity = 1; /* Positive */
|
||||||
|
|
||||||
if(PADR & 0x800)
|
if(PADRH & 0x08)
|
||||||
pr_polarity = 0; /* Negative */
|
pr_polarity = 0; /* Negative */
|
||||||
else
|
else
|
||||||
pr_polarity = 1; /* Positive */
|
pr_polarity = 1; /* Positive */
|
||||||
|
|
@ -636,7 +636,7 @@ bool dbg_hw_info(void)
|
||||||
bool has_bootrom; /* flag for boot ROM present */
|
bool has_bootrom; /* flag for boot ROM present */
|
||||||
int oldmode; /* saved memory guard mode */
|
int oldmode; /* saved memory guard mode */
|
||||||
|
|
||||||
if(PADR & 0x400)
|
if(PADRH & 0x04)
|
||||||
usb_polarity = 0; /* Negative */
|
usb_polarity = 0; /* Negative */
|
||||||
else
|
else
|
||||||
usb_polarity = 1; /* Positive */
|
usb_polarity = 1; /* Positive */
|
||||||
|
|
@ -1119,12 +1119,7 @@ bool dbg_rtc(void)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#else
|
#endif /* HAVE_RTC */
|
||||||
bool dbg_rtc(void)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_HWCODEC != MASNONE
|
#if CONFIG_HWCODEC != MASNONE
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue