forked from len0rd/rockbox
Implement hold switch and headphone detection on iPod Classic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29001 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
906d2f08ed
commit
0e773ad92c
1 changed files with 2 additions and 3 deletions
|
@ -383,8 +383,7 @@ bool button_hold(void)
|
||||||
#if CONFIG_CPU==S5L8701
|
#if CONFIG_CPU==S5L8701
|
||||||
return ((PDAT14 & (1 << 6)) == 0);
|
return ((PDAT14 & (1 << 6)) == 0);
|
||||||
#elif CONFIG_CPU==S5L8702
|
#elif CONFIG_CPU==S5L8702
|
||||||
//TODO: Implement
|
return ((PDATE & (1 << 3)) == 0);
|
||||||
return false;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,7 +392,7 @@ bool headphones_inserted(void)
|
||||||
#if CONFIG_CPU==S5L8701
|
#if CONFIG_CPU==S5L8701
|
||||||
return ((PDAT14 & (1 << 5)) != 0);
|
return ((PDAT14 & (1 << 5)) != 0);
|
||||||
#elif CONFIG_CPU==S5L8702
|
#elif CONFIG_CPU==S5L8702
|
||||||
//TODO: Implement
|
return ((PDATA & (1 << 6)) != 0);
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue