From 2ac668e44cec12616a4d675f8eade8049ed10af9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 6 Sep 2011 00:27:38 +0000 Subject: imx233/fuze+: implement user time api, implement a stub function, protect timrot against irq git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30437 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/imx233.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/export/imx233.h') diff --git a/firmware/export/imx233.h b/firmware/export/imx233.h index 2a2097b5d7..d6c84ef6f5 100644 --- a/firmware/export/imx233.h +++ b/firmware/export/imx233.h @@ -57,6 +57,16 @@ #define FRAME_PHYS_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE - FRAME_SIZE) #define FRAME ((void *)(FRAME_PHYS_ADDR - UNCACHED_DRAM_ADDR + BUFFERED_DRAM_ADDR)) +/* Timer runs at APBX speed which is derived from ref_xtal@24MHz */ +#define TIMER_FREQ 24000000 + +#ifdef SANSA_FUZEPLUS +#define TICK_TIMER_NR 0 +#define USER_TIMER_NR 1 +#else +#error Select timers ! +#endif + /* USBOTG */ #define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(2048))) #define USB_NUM_ENDPOINTS 5 -- cgit v1.2.3