summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/3g/button-3g.c
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-10-07 12:19:34 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-10-07 12:19:34 +0000
commit5c6f32af9563764cf7b3f9529956ac27808246cf (patch)
tree3df4eb7103c77846a938092b79ce445ab7f0330c /firmware/target/arm/ipod/3g/button-3g.c
parent24c337514333460b3738403b264498cad746ccc0 (diff)
Move iPod headphone detection into target tree (FS#6131 by Robert Keevil) and fix detection on 3G iPod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11143 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod/3g/button-3g.c')
-rw-r--r--firmware/target/arm/ipod/3g/button-3g.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/3g/button-3g.c b/firmware/target/arm/ipod/3g/button-3g.c
index 7244dd597b..25afd42095 100644
--- a/firmware/target/arm/ipod/3g/button-3g.c
+++ b/firmware/target/arm/ipod/3g/button-3g.c
@@ -187,3 +187,8 @@ bool button_hold(void)
{
return (GPIOA_INPUT_VAL & 0x20)?false:true;
}
+
+bool headphones_inserted(void)
+{
+ return (GPIOC_INPUT_VAL & 0x1)?true:false;
+}