summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-18 12:56:19 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-18 12:56:19 +0000
commit70ad08ccab575813a180d8a66e907c9ea3598d81 (patch)
treefd4442b853c5abfcddc41b82d7808c52d95a71c1
parent6ea21f67ee54761e1352189bd1d0db25affb7002 (diff)
downloadrockbox-70ad08ccab575813a180d8a66e907c9ea3598d81.tar.gz
rockbox-70ad08ccab575813a180d8a66e907c9ea3598d81.zip
iRiver: Correct port pin setup for the local and remote keypad
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6308 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/button.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 684acf6c97..4a3fab20e1 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -196,9 +196,9 @@ void button_init(void)
196{ 196{
197 /* hardware inits */ 197 /* hardware inits */
198#if CONFIG_KEYPAD == IRIVER_H100_PAD 198#if CONFIG_KEYPAD == IRIVER_H100_PAD
199 /* Set GPIO37 as general purpose input */ 199 /* Set GPIO33, GPIO37, GPIO38 and GPIO52 as general purpose inputs */
200 GPIO1_FUNCTION |= 0x00000020; 200 GPIO1_FUNCTION |= 0x00100062;
201 GPIO1_ENABLE &= ~0x00000020; 201 GPIO1_ENABLE &= ~0x00100062;
202#elif CONFIG_KEYPAD == RECORDER_PAD 202#elif CONFIG_KEYPAD == RECORDER_PAD
203 /* Set PB4 and PB8 as input pins */ 203 /* Set PB4 and PB8 as input pins */
204 PBCR1 &= 0xfffc; /* PB8MD = 00 */ 204 PBCR1 &= 0xfffc; /* PB8MD = 00 */