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:
Dave Chapman 2009-10-10 15:37:05 +00:00
parent 205231caf7
commit 3c362fa8c6
2 changed files with 8 additions and 0 deletions

View file

@ -56,6 +56,9 @@
/* define this if you would like tagcache to build on this target */
#define HAVE_TAGCACHE
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE

View file

@ -352,6 +352,11 @@ bool button_hold(void)
{
return ((PDAT14 & (1 << 6)) == 0);
}
bool headphones_inserted(void)
{
return ((PDAT14 & (1 << 5)) != 0);
}
#endif
/*