From 68f1e1576ea6a1f89546f815c72d2f8b11afb3c9 Mon Sep 17 00:00:00 2001 From: kkurbjun Date: Wed, 23 Apr 2008 00:08:59 +0000 Subject: [PATCH] Make sure buttons have pullups disabled as necessary git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17219 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c index a80663d0d..5dde96d58 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c @@ -45,7 +45,9 @@ static int const remote_buttons[] = void button_init_device(void) { - /* Power, Remote Play & Hold switch */ + /* Some button inputs need the internal pullups disabled to function */ + GPGUP|=0x031F; + GPJUP|=0x1FFF; } inline bool button_hold(void) -- 2.11.4.GIT