mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Nano2G - implement "Pause on headphone unplug" feature
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23072 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
205231caf7
commit
3c362fa8c6
2 changed files with 8 additions and 0 deletions
|
|
@ -56,6 +56,9 @@
|
||||||
/* define this if you would like tagcache to build on this target */
|
/* define this if you would like tagcache to build on this target */
|
||||||
#define HAVE_TAGCACHE
|
#define HAVE_TAGCACHE
|
||||||
|
|
||||||
|
/* Define this if you can detect headphones */
|
||||||
|
#define HAVE_HEADPHONE_DETECTION
|
||||||
|
|
||||||
/* define this if you have a flash memory storage */
|
/* define this if you have a flash memory storage */
|
||||||
#define HAVE_FLASH_STORAGE
|
#define HAVE_FLASH_STORAGE
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,11 @@ bool button_hold(void)
|
||||||
{
|
{
|
||||||
return ((PDAT14 & (1 << 6)) == 0);
|
return ((PDAT14 & (1 << 6)) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool headphones_inserted(void)
|
||||||
|
{
|
||||||
|
return ((PDAT14 & (1 << 5)) != 0);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue