mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
c02bc1afd2
commit
82b86d4316
3 changed files with 436 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue