summaryrefslogtreecommitdiffstats
path: root/bootloader/ipod.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-27 12:35:05 +0000
committerDave Chapman <dave@dchapman.com>2006-02-27 12:35:05 +0000
commit285079138b0baa5cf03221f8abcdaaec8e35f112 (patch)
treee73ba981e762f781ce7a5ea2d5ba24b07a4b2292 /bootloader/ipod.c
parent0bdf0c6342fe1529a1a2f7a9a5086d088f51bc19 (diff)
downloadrockbox-285079138b0baa5cf03221f8abcdaaec8e35f112.tar.gz
rockbox-285079138b0baa5cf03221f8abcdaaec8e35f112.tar.bz2
rockbox-285079138b0baa5cf03221f8abcdaaec8e35f112.zip
Patch #3060 from Andrew Scott - iPod mini button driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r--bootloader/ipod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index f62fa265a5..793253a0ca 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -193,7 +193,11 @@ static int key_pressed(void)
unsigned char state;
#if CONFIG_KEYPAD == IPOD_4G_PAD
+#if defined(APPLE_IPODMINI)
+ state = GPIOA_INPUT_VAL & 0x3f;
+#else
state = opto_keypad_read();
+#endif
if ((state & 0x4) == 0) return BUTTON_LEFT;
if ((state & 0x10) == 0) return BUTTON_MENU;
if ((state & 0x8) == 0) return BUTTON_PLAY;