summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-01 18:53:34 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-01 18:53:34 +0000
commit1f75bd5a8e95894ff664f908ce43dbb93f7cabf3 (patch)
tree201d16a6952d7170b06936a984f4c38b61f22f83 /firmware
parent2016ab4c96f920efbeecf85dc1dfe188b9356c16 (diff)
downloadrockbox-1f75bd5a8e95894ff664f908ce43dbb93f7cabf3.tar.gz
rockbox-1f75bd5a8e95894ff664f908ce43dbb93f7cabf3.tar.bz2
rockbox-1f75bd5a8e95894ff664f908ce43dbb93f7cabf3.zip
Use a better place to enable the interrupts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16918 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/ipod/button-1g-3g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/button-1g-3g.c b/firmware/target/arm/ipod/button-1g-3g.c
index 74af4c2cd2..be02f873bb 100644
--- a/firmware/target/arm/ipod/button-1g-3g.c
+++ b/firmware/target/arm/ipod/button-1g-3g.c
@@ -211,13 +211,13 @@ int button_read_device(void)
{
GPIOB_OUTPUT_VAL |= 0x01; /* enable wheel */
udelay(50); /* let the voltage settle */
- GPIOA_INT_EN = 0xff; /* enable wheel interrupts */
}
wheel_value = GPIOA_INPUT_VAL >> 6;
if (wheel_value != last_wheel_value)
{
last_wheel_value = wheel_value;
wheel_timeout = WHEEL_TIMEOUT; /* keep wheel enabled */
+ GPIOA_INT_EN = 0xff; /* enable wheel interrupts */
}
if (wheel_timeout)
wheel_timeout--;