summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-10-29 17:08:05 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-10-29 17:08:05 +0000
commite90f961593e92fa5d98efa67b569e7efe5f4fbe0 (patch)
tree70f01d2ac811ba161c22903824590d2690850efd /firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c
parenta8cde851fbcefdd33d826cf4b1f0daa8c0b48dc2 (diff)
downloadrockbox-e90f961593e92fa5d98efa67b569e7efe5f4fbe0.tar.gz
rockbox-e90f961593e92fa5d98efa67b569e7efe5f4fbe0.zip
Sansa clip zip: update mkamsboot and fix various drivers to make it boot to the main firmware
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30853 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c
index 104c227378..e960b49b77 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/button-clipzip.c
@@ -71,13 +71,13 @@ int button_read_device(void)
71 udelay(500); 71 udelay(500);
72 72
73 if (GPIOC_PIN(3)) { 73 if (GPIOC_PIN(3)) {
74 buttons |= BUTTON_LEFT; 74 buttons |= BUTTON_RIGHT;
75 } 75 }
76 if (GPIOC_PIN(4)) { 76 if (GPIOC_PIN(4)) {
77 buttons |= BUTTON_SELECT; 77 buttons |= BUTTON_SELECT;
78 } 78 }
79 if (GPIOC_PIN(5)) { 79 if (GPIOC_PIN(5)) {
80 buttons |= BUTTON_RIGHT; 80 buttons |= BUTTON_UP;
81 } 81 }
82 82
83 /* key matrix buttons, second row */ 83 /* key matrix buttons, second row */
@@ -86,13 +86,13 @@ int button_read_device(void)
86 udelay(500); 86 udelay(500);
87 87
88 if (GPIOC_PIN(3)) { 88 if (GPIOC_PIN(3)) {
89 buttons |= BUTTON_UP; 89 buttons |= BUTTON_HOME;
90 } 90 }
91 if (GPIOC_PIN(4)) { 91 if (GPIOC_PIN(4)) {
92 buttons |= BUTTON_HOME; 92 buttons |= BUTTON_DOWN;
93 } 93 }
94 if (GPIOC_PIN(5)) { 94 if (GPIOC_PIN(5)) {
95 buttons |= BUTTON_DOWN; 95 buttons |= BUTTON_LEFT;
96 } 96 }
97 97
98 /* deselect scan rows */ 98 /* deselect scan rows */