Use the timeout API as a oneshot for headphone plug debouncing. Set at 1s for now...
commit4ff7ebbc4bf11a3eaa0d9eca71b0e89d49b8ece0
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sun, 27 Jan 2008 21:13:04 +0000 (27 21:13 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sun, 27 Jan 2008 21:13:04 +0000 (27 21:13 +0000)
tree3da7c91ca05c154a31564c0045308256c206b1fd
parente0e5424fd072153ed8ef50940b9d45dd1dd07481
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
firmware/drivers/button.c
firmware/export/config.h
firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c