summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/system-target.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-04-27 10:11:52 +0000
committerThomas Martitz <kugel@rockbox.org>2010-04-27 10:11:52 +0000
commit249aae587a1f35f5df55613c6765ae763db39107 (patch)
treedcc7f100fcdc7af8b09a7e3daa96b852a1986c74 /firmware/target/arm/as3525/system-target.h
parentee291a5e9b12651ffa658bef15e09902a82285f9 (diff)
downloadrockbox-249aae587a1f35f5df55613c6765ae763db39107.tar.gz
rockbox-249aae587a1f35f5df55613c6765ae763db39107.zip
FS#11172 - Fuzev2: Read the scrollwheel scrollwheel via IRQ
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25736 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-target.h')
-rw-r--r--firmware/target/arm/as3525/system-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h
index 1ccd3282db..d2cf99499d 100644
--- a/firmware/target/arm/as3525/system-target.h
+++ b/firmware/target/arm/as3525/system-target.h
@@ -27,7 +27,11 @@
#include "clock-target.h" /* CPUFREQ_* are defined here */
-#ifdef HAVE_SCROLLWHEEL
+/* We can use a interrupt-based mechanism on the fuzev2 */
+#define INCREASED_SCROLLWHEEL_POLLING \
+ (defined(HAVE_SCROLLWHEEL) && (CONFIG_CPU == AS3525))
+
+#if INCREASED_SCROLLWHEEL_POLLING
/* let the timer interrupt twice as often for the scrollwheel polling */
#define KERNEL_TIMER_FREQ (TIMER_FREQ/2)
#else