summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-clip.c6
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-target.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/button-clip.c b/firmware/target/arm/as3525/sansa-clip/button-clip.c
index faed075c65..65e72f51b6 100644
--- a/firmware/target/arm/as3525/sansa-clip/button-clip.c
+++ b/firmware/target/arm/as3525/sansa-clip/button-clip.c
@@ -50,10 +50,10 @@ int button_read_device(void)
50 /* C4B0 is unused */ 50 /* C4B0 is unused */
51 51
52 if (GPIOB_PIN(1)) 52 if (GPIOB_PIN(1))
53 result |= BUTTON_VOLUP; 53 result |= BUTTON_VOL_UP;
54 54
55 if (GPIOB_PIN(2)) 55 if (GPIOB_PIN(2))
56 result |= BUTTON_PLAY; 56 result |= BUTTON_UP;
57 57
58 GPIOC_PIN(4) = 0x00; 58 GPIOC_PIN(4) = 0x00;
59 59
@@ -76,7 +76,7 @@ int button_read_device(void)
76 result |= BUTTON_DOWN; 76 result |= BUTTON_DOWN;
77 77
78 if (GPIOB_PIN(1)) 78 if (GPIOB_PIN(1))
79 result |= BUTTON_VOLDOWN; 79 result |= BUTTON_VOL_DOWN;
80 80
81 if (GPIOB_PIN(2)) 81 if (GPIOB_PIN(2))
82 result |= BUTTON_HOME; 82 result |= BUTTON_HOME;
diff --git a/firmware/target/arm/as3525/sansa-clip/button-target.h b/firmware/target/arm/as3525/sansa-clip/button-target.h
index 1fb57ae9e9..d44ac58a71 100644
--- a/firmware/target/arm/as3525/sansa-clip/button-target.h
+++ b/firmware/target/arm/as3525/sansa-clip/button-target.h
@@ -34,10 +34,10 @@ bool button_hold(void);
34/* Main unit's buttons */ 34/* Main unit's buttons */
35#define BUTTON_HOME 0x00000001 35#define BUTTON_HOME 0x00000001
36 36
37#define BUTTON_VOLUP 0x00000002 37#define BUTTON_VOL_UP 0x00000002
38#define BUTTON_VOLDOWN 0x00000004 38#define BUTTON_VOL_DOWN 0x00000004
39 39
40#define BUTTON_PLAY 0x00000008 40#define BUTTON_UP 0x00000008
41#define BUTTON_DOWN 0x00000010 41#define BUTTON_DOWN 0x00000010
42#define BUTTON_LEFT 0x00000020 42#define BUTTON_LEFT 0x00000020
43#define BUTTON_RIGHT 0x00000040 43#define BUTTON_RIGHT 0x00000040
@@ -48,7 +48,7 @@ bool button_hold(void);
48#define BUTTON_HOLD 0x00000200 48#define BUTTON_HOLD 0x00000200
49 49
50#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\ 50#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\
51 |BUTTON_PLAY|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\ 51 |BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
52 |BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD) 52 |BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD)
53 53
54#define BUTTON_REMOTE 0 54#define BUTTON_REMOTE 0