summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clip/button-clip.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-10-31 18:54:37 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-10-31 18:54:37 +0000
commitcd9b1379fff9b2c2d4bb071c470053e02f4e2dd5 (patch)
tree2ec0fe5c5b1e66962fbbe4d21cb4d0ce0c9543e1 /firmware/target/arm/as3525/sansa-clip/button-clip.c
parentc5685ed72d206c5a1c0dd2329029e2398bf9cac4 (diff)
Sansa Clip simulator
First draft at keymapping based on e200 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18948 a1c6a512-1295-4272-9138-f99709370657
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)
/* C4B0 is unused */
if (GPIOB_PIN(1))
- result |= BUTTON_VOLUP;
+ result |= BUTTON_VOL_UP;
if (GPIOB_PIN(2))
- result |= BUTTON_PLAY;
+ result |= BUTTON_UP;
GPIOC_PIN(4) = 0x00;
@@ -76,7 +76,7 @@ int button_read_device(void)
result |= BUTTON_DOWN;
if (GPIOB_PIN(1))
- result |= BUTTON_VOLDOWN;
+ result |= BUTTON_VOL_DOWN;
if (GPIOB_PIN(2))
result |= BUTTON_HOME;