forked from len0rd/rockbox
D2: Fix inverted USB detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16746 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eae6641bdb
commit
58b5ce2275
1 changed files with 2 additions and 2 deletions
|
|
@ -23,10 +23,10 @@
|
|||
#include "kernel.h"
|
||||
#include "ata.h"
|
||||
|
||||
/* USB detect is GPIOC 26 active low */
|
||||
/* USB detect is GPIOC 26 */
|
||||
inline bool usb_detect(void)
|
||||
{
|
||||
return (GPIOC & 1<<26)?false:true;
|
||||
return (GPIOC & 1<<26);
|
||||
}
|
||||
|
||||
void usb_init_device(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue