diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:37 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:37 +0000 |
commit | cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5 (patch) | |
tree | 2ec0fe5c5b1e66962fbbe4d21cb4d0ce0c9543e1 /firmware/target/arm/as3525/sansa-clip/button-clip.c | |
parent | c5685ed72d206c5a1c0dd2329029e2398bf9cac4 (diff) | |
download | rockbox-cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5.tar.gz rockbox-cd9b1379fff9b2c2d4bb071c470053e02f4e2dd5.zip |
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.c | 6 |
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; |