diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c b/firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c index a10956657f..d6bf0acf9b 100644 --- a/firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c +++ b/firmware/target/arm/as3525/sansa-m200v4/button-m200v4.c | |||
@@ -41,7 +41,7 @@ int button_read_device(void) | |||
41 | 41 | ||
42 | /* direct GPIO connections */ | 42 | /* direct GPIO connections */ |
43 | if (GPIOA_PIN(3)) | 43 | if (GPIOA_PIN(3)) |
44 | result |= BUTTON_MENU; | 44 | result |= BUTTON_POWER; |
45 | 45 | ||
46 | /* This is a keypad using A4-A6 as columns and A0-A2 as rows */ | 46 | /* This is a keypad using A4-A6 as columns and A0-A2 as rows */ |
47 | GPIOA_PIN(4) = (1<<4); | 47 | GPIOA_PIN(4) = (1<<4); |
@@ -50,10 +50,10 @@ int button_read_device(void) | |||
50 | /* A4A0 is unused */ | 50 | /* A4A0 is unused */ |
51 | 51 | ||
52 | if (GPIOA_PIN(1)) | 52 | if (GPIOA_PIN(1)) |
53 | result |= BUTTON_VOLDOWN; | 53 | result |= BUTTON_VOL_DOWN; |
54 | 54 | ||
55 | if (GPIOA_PIN(2)) | 55 | if (GPIOA_PIN(2)) |
56 | result |= BUTTON_PLAYPAUSE; | 56 | result |= BUTTON_UP; |
57 | 57 | ||
58 | GPIOA_PIN(4) = 0x00; | 58 | GPIOA_PIN(4) = 0x00; |
59 | 59 | ||
@@ -76,10 +76,10 @@ int button_read_device(void) | |||
76 | btn_delay(); | 76 | btn_delay(); |
77 | 77 | ||
78 | if (GPIOA_PIN(0)) | 78 | if (GPIOA_PIN(0)) |
79 | result |= BUTTON_REPEATAB; | 79 | result |= BUTTON_DOWN; |
80 | 80 | ||
81 | if (GPIOA_PIN(1)) | 81 | if (GPIOA_PIN(1)) |
82 | result |= BUTTON_VOLUP; | 82 | result |= BUTTON_VOL_UP; |
83 | 83 | ||
84 | /* hold button is read in button_hold() */ | 84 | /* hold button is read in button_hold() */ |
85 | 85 | ||