summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-01-27 21:13:04 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-01-27 21:13:04 +0000
commit0efdd7a5f74c955d0eb604cd3fef9069be57bcbb (patch)
tree3da7c91ca05c154a31564c0045308256c206b1fd /firmware/export/config.h
parent637e26e8e4c87e25bcdc5f6793b86d34061e7aae (diff)
downloadrockbox-0efdd7a5f74c955d0eb604cd3fef9069be57bcbb.tar.gz
rockbox-0efdd7a5f74c955d0eb604cd3fef9069be57bcbb.zip
Use the timeout API as a oneshot for headphone plug debouncing. Set at 1s for now which seems comfortable and was good for meg-fx but target-specific adjustment is easy enough (my 3G hp jack is dead so I can't check that one :( ). Do some minor rearrangements for init safety and consistency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16178 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index cf75d67aa5..1f29a4f207 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -489,4 +489,11 @@
489 489
490#endif /* NUM_CORES */ 490#endif /* NUM_CORES */
491 491
492#ifdef HAVE_HEADPHONE_DETECTION
493/* Timeout objects required if headphone detection is enabled */
494#ifndef INCLUDE_TIMEOUT_API
495#define INCLUDE_TIMEOUT_API
496#endif
497#endif /* HAVE_HEADPHONE_DETECTION */
498
492#endif /* __CONFIG_H__ */ 499#endif /* __CONFIG_H__ */