Do extra filtering in H300 (and H100) main unit button reading to suppress wrong...
commit3c24489a2e921cd3dc2df50a9f37ec06bb0943a5
authoramiconn <amiconn@a1c6a512-1295-4272-9138-f99709370657>
Thu, 6 Apr 2006 07:27:11 +0000 (6 07:27 +0000)
committeramiconn <amiconn@a1c6a512-1295-4272-9138-f99709370657>
Thu, 6 Apr 2006 07:27:11 +0000 (6 07:27 +0000)
treea28a86f3b029c7038cca5f61e7318d81cceaf3b7
parent33cca6e6dcaf0fd46a9703a80f7104bf992c2b3e
Do extra filtering in H300 (and H100) main unit button reading to suppress wrong readings during voltage transitions. * Optimised multi-button ADC reads to use a balanced binary tree with an initial check for 'any button' to determine the pressed button. * The iriver button driver wouldn't have detected main unit (ADC-connected) buttons as long as remote buttons (ADC-connected) were pressed (btn = value; vs. btn |= value), * Do extra filtering in the recorder v1 OFF button read, to suppress spurious OFF events. * Some more tweaks.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9530 a1c6a512-1295-4272-9138-f99709370657
firmware/drivers/button.c