1
0
Fork 0
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:
Daniel Ankers 2006-11-24 20:41:15 +00:00
parent dda538a7f3
commit 64cccb0f80

View file

@ -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;
}