1
0
Fork 0
forked from len0rd/rockbox

imx233: introduce new generic button driver

This driver will subsume the old button-lradc driver and support far more
options. It can sense LRADC channels, PSWITCH, GPIOs and it handles special
"buttons" like headphone insertion and hold detection. It also provides a
more natural description of the buttons using a target-defined table with some
macros to make it easy to read and write. It uniformely handles debouncing on
LRADC channels and PSWITCH.

Change-Id: Ie61d1f593fdcf3bd456ba1d53a1fd784286834ce
This commit is contained in:
Amaury Pouly 2014-02-22 20:28:51 +01:00
parent c02bc1afd2
commit 82b86d4316
3 changed files with 436 additions and 0 deletions

View file

@ -561,6 +561,7 @@ target/arm/imx233/adc-imx233.c
target/arm/imx233/lradc-imx233.c
target/arm/imx233/pwm-imx233.c
target/arm/imx233/rtc-imx233.c
target/arm/imx233/button-imx233.c
#if IMX233_SUBTARGET >= 3700
target/arm/imx233/dcp-imx233.c
#endif