forked from len0rd/rockbox
Detect USB inserted on Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11585 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dda538a7f3
commit
64cccb0f80
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "system.h"
|
||||
|
||||
bool usb_init_device(void)
|
||||
{
|
||||
|
@ -26,6 +27,8 @@ bool usb_init_device(void)
|
|||
|
||||
bool usb_detect(void)
|
||||
{
|
||||
if(GPIOB_INPUT_VAL & 0x10)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue