summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clip/button-clip.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clip/button-clip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-clip.c6
1 files changed, 3 insertions, 3 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;