summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-target.h
diff options
context:
space:
mode:
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