summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-11-24 20:41:15 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-11-24 20:41:15 +0000
commit64cccb0f801d2a493486a132f7af0b51e9db3a34 (patch)
tree545ba81470129e28c765eede739d1650c1d9e201
parentdda538a7f3be7dab252e7383e9ff9fb19754acb3 (diff)
downloadrockbox-64cccb0f801d2a493486a132f7af0b51e9db3a34.tar.gz
rockbox-64cccb0f801d2a493486a132f7af0b51e9db3a34.zip
Detect USB inserted on Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11585 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/usb-e200.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/usb-e200.c b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c
index a538614da4..031ba07253 100644
--- a/firmware/target/arm/sandisk/sansa-e200/usb-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c
@@ -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;
}