summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/timer-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-02 04:15:27 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:23 +0100
commit4495913c289d34271197dce0dc5f6c45f5ea62e6 (patch)
treebab4b2e477bcc1fdb5876cbf1ab36165de6aee46 /firmware/target/arm/imx233/timer-imx233.c
parentc1609b08892ec6878c6cc1ea20689145d23a51e6 (diff)
downloadrockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.tar.gz
rockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.tar.bz2
rockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.zip
imx233: clean timrot a bit
Change-Id: Ic803a6b5c93978cd3246e553579ac8a1ba35e191
Diffstat (limited to 'firmware/target/arm/imx233/timer-imx233.c')
-rw-r--r--firmware/target/arm/imx233/timer-imx233.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/arm/imx233/timer-imx233.c b/firmware/target/arm/imx233/timer-imx233.c
index d356afc457..f06c19fb76 100644
--- a/firmware/target/arm/imx233/timer-imx233.c
+++ b/firmware/target/arm/imx233/timer-imx233.c
@@ -22,8 +22,6 @@
#include "timrot-imx233.h"
#include "timer.h"
-#define USER_TIMER_NR 1
-
static long timer_cycles = 0;
static void timer_fn(void)
@@ -49,14 +47,14 @@ bool timer_set(long cycles, bool start)
bool timer_start(IF_COP_VOID(int core))
{
- imx233_setup_timer(USER_TIMER_NR, true, timer_cycles,
+ imx233_timrot_setup(TIMER_USER, true, timer_cycles,
BV_TIMROT_TIMCTRLn_SELECT__32KHZ_XTAL, BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_1,
- false, &timer_fn);
+ false, &timer_fn);
return true;
}
void timer_stop(void)
{
- imx233_setup_timer(USER_TIMER_NR, false, 0, BV_TIMROT_TIMCTRLn_SELECT__NEVER_TICK,
+ imx233_timrot_setup(TIMER_USER, false, 0, BV_TIMROT_TIMCTRLn_SELECT__NEVER_TICK,
BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_1, false, NULL);
}