mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Add a BTN_MASK for the VX777 (aka fix red)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22461 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e4c754b30a
commit
249392c2d3
1 changed files with 10 additions and 5 deletions
|
|
@ -36,20 +36,25 @@
|
||||||
#define BTN_HOLD (1 << 16)
|
#define BTN_HOLD (1 << 16)
|
||||||
#define BTN_MENU (1 << 1)
|
#define BTN_MENU (1 << 1)
|
||||||
#define BTN_VOL_UP (1 << 0)
|
#define BTN_VOL_UP (1 << 0)
|
||||||
|
|
||||||
|
#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
|
||||||
|
BTN_MENU | BTN_VOL_UP)
|
||||||
#elif defined(ONDA_VX747P)
|
#elif defined(ONDA_VX747P)
|
||||||
#define BTN_OFF (1 << 29)
|
#define BTN_OFF (1 << 29)
|
||||||
#define BTN_VOL_DOWN (1 << 27)
|
#define BTN_VOL_DOWN (1 << 27)
|
||||||
#define BTN_HOLD (1 << 22) /* on REG_GPIO_PXPIN(2) */
|
#define BTN_HOLD (1 << 22) /* on REG_GPIO_PXPIN(2) */
|
||||||
#define BTN_MENU (1 << 20)
|
#define BTN_MENU (1 << 20)
|
||||||
#define BTN_VOL_UP (1 << 19)
|
#define BTN_VOL_UP (1 << 19)
|
||||||
#elif defined(ONDA_VX777)
|
|
||||||
#define BTN_OFF (1 << 29)
|
|
||||||
#else
|
|
||||||
#error No buttons defined!
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
|
#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
|
||||||
BTN_MENU | BTN_VOL_UP)
|
BTN_MENU | BTN_VOL_UP)
|
||||||
|
#elif defined(ONDA_VX777)
|
||||||
|
#define BTN_OFF (1 << 29)
|
||||||
|
|
||||||
|
#define BTN_MASK (BTN_OFF)
|
||||||
|
#else
|
||||||
|
#error No buttons defined!
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define TS_AD_COUNT 3
|
#define TS_AD_COUNT 3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue