diff options
Diffstat (limited to 'firmware/target/arm/ipod/3g/button-3g.c')
-rw-r--r-- | firmware/target/arm/ipod/3g/button-3g.c | 5 |
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; +} |