summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s3c2440/gigabeat-fx/button-target.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-05-20 11:42:04 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-05-20 11:42:04 +0000
commit0037a1b648cb06c4ba5fc23b2b9850bb7d9b8d35 (patch)
tree96e8362a3c5530c35ef406e50a71ec97a33d5a7a /firmware/target/arm/s3c2440/gigabeat-fx/button-target.h
parent4c486ce948d0654028085dcbc467f4f04ce18db1 (diff)
downloadrockbox-0037a1b648cb06c4ba5fc23b2b9850bb7d9b8d35.tar.gz
rockbox-0037a1b648cb06c4ba5fc23b2b9850bb7d9b8d35.zip
add separate button defines for the Gigabeat remote control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/button-target.h')
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/button-target.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/button-target.h b/firmware/target/arm/s3c2440/gigabeat-fx/button-target.h
index ab68e8050f..7a39212de9 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/button-target.h
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/button-target.h
@@ -44,6 +44,15 @@ int button_read_device(void);
44#define BUTTON_SELECT 0x00000100 44#define BUTTON_SELECT 0x00000100
45#define BUTTON_A 0x00000200 45#define BUTTON_A 0x00000200
46 46
47/* Remote control buttons */
48
49#define BUTTON_RC_VOL_UP 0x00000400
50#define BUTTON_RC_VOL_DOWN 0x00000800
51#define BUTTON_RC_FF 0x00001000
52#define BUTTON_RC_REW 0x00002000
53
54#define BUTTON_RC_PLAY 0x00004000
55#define BUTTON_RC_DSP 0x00008000
47 56
48/* Toshiba Gigabeat specific remote button ADC values */ 57/* Toshiba Gigabeat specific remote button ADC values */
49/* The remote control uses ADC 1 to emulate button pushes 58/* The remote control uses ADC 1 to emulate button pushes
@@ -80,8 +89,8 @@ int button_read_device(void);
80 |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\ 89 |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\
81 |BUTTON_SELECT|BUTTON_A) 90 |BUTTON_SELECT|BUTTON_A)
82 91
83 92#define BUTTON_REMOTE (BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN|BUTTON_RC_FF\
84#define BUTTON_REMOTE 0 93 |BUTTON_RC_REW|BUTTON_RC_PLAY|BUTTON_RC_DSP)
85 94
86#define POWEROFF_BUTTON BUTTON_POWER 95#define POWEROFF_BUTTON BUTTON_POWER
87#define POWEROFF_COUNT 10 96#define POWEROFF_COUNT 10