diff options
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c | 18 | ||||
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/button-target.h | 13 |
2 files changed, 20 insertions, 11 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c index 25a69d7630..5655d92ef8 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c | |||
@@ -32,15 +32,15 @@ static bool hold_button = false; | |||
32 | 32 | ||
33 | static int const remote_buttons[] = | 33 | static int const remote_buttons[] = |
34 | { | 34 | { |
35 | BUTTON_NONE, /* Headphones connected - remote disconnected */ | 35 | BUTTON_NONE, /* Headphones connected - remote disconnected */ |
36 | BUTTON_SELECT, | 36 | BUTTON_RC_PLAY, |
37 | BUTTON_MENU, /* could be changed to BUTTON_A */ | 37 | BUTTON_RC_DSP, |
38 | BUTTON_LEFT, | 38 | BUTTON_RC_REW, |
39 | BUTTON_RIGHT, | 39 | BUTTON_RC_FF, |
40 | BUTTON_UP, /* could be changed to BUTTON_VOL_UP */ | 40 | BUTTON_RC_VOL_UP, |
41 | BUTTON_DOWN, /* could be changed to BUTTON_VOL_DOWN */ | 41 | BUTTON_RC_VOL_DOWN, |
42 | BUTTON_NONE, /* Remote control attached - no buttons pressed */ | 42 | BUTTON_NONE, /* Remote control attached - no buttons pressed */ |
43 | BUTTON_NONE, /* Nothing in the headphone socket */ | 43 | BUTTON_NONE, /* Nothing in the headphone socket */ |
44 | }; | 44 | }; |
45 | 45 | ||
46 | void button_init_device(void) | 46 | void button_init_device(void) |
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 |