summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/timer-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 13:28:41 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:52 +0200
commit068443caaf101bccfa5ff44b44e6f98e6612b27f (patch)
tree174bc3b0099455a54e911a6315be4718ab094fb9 /firmware/target/arm/imx233/timer-imx233.c
parent9ced006c06a4240cbd2a9ebe9196d9a0658810f9 (diff)
downloadrockbox-068443caaf101bccfa5ff44b44e6f98e6612b27f.tar.gz
rockbox-068443caaf101bccfa5ff44b44e6f98e6612b27f.tar.bz2
rockbox-068443caaf101bccfa5ff44b44e6f98e6612b27f.zip
imx233: move away timer defines from imx233.h
Change-Id: I9f721ae12a3ddf72c4e90ad0754a5c2b819847bb
Diffstat (limited to 'firmware/target/arm/imx233/timer-imx233.c')
-rw-r--r--firmware/target/arm/imx233/timer-imx233.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/timer-imx233.c b/firmware/target/arm/imx233/timer-imx233.c
index 2812f1adfc..bcc1974c63 100644
--- a/firmware/target/arm/imx233/timer-imx233.c
+++ b/firmware/target/arm/imx233/timer-imx233.c
@@ -22,6 +22,16 @@
#include "timrot-imx233.h"
#include "timer.h"
+#ifdef SANSA_FUZEPLUS
+#define USER_TIMER_NR 1
+#elif defined(CREATIVE_ZENXFI2)
+#define USER_TIMER_NR 1
+#elif defined(CREATIVE_ZENXFI3)
+#define USER_TIMER_NR 1
+#else
+#error Select user timer !
+#endif
+
static long timer_cycles = 0;
static void timer_fn(void)