From c5dedd7d762f48e940ecc0bd17dd2173d59a92e1 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 29 Jun 2009 14:29:57 +0000 Subject: Remove the TIMER_* macros and declare target-specific functions in timer.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21559 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/mips/ingenic_jz47xx/timer-jz4740.c | 6 +++--- firmware/target/mips/ingenic_jz47xx/timer-target.h | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx') diff --git a/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c b/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c index 8258f7b2be..c174ca6eb1 100644 --- a/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/timer-jz4740.c @@ -33,7 +33,7 @@ void TCU1(void) pfn_timer(); } -bool __timer_set(long cycles, bool start) +bool timer_set(long cycles, bool start) { unsigned int divider = cycles, prescaler_bit = 0, prescaler = 1, old_irq; @@ -79,14 +79,14 @@ bool __timer_set(long cycles, bool start) return true; } -bool __timer_start(void) +bool timer_start(void) { __tcu_start_counter(1); return true; } -void __timer_stop(void) +void timer_stop(void) { unsigned int old_irq = disable_irq_save(); __tcu_stop_counter(1); diff --git a/firmware/target/mips/ingenic_jz47xx/timer-target.h b/firmware/target/mips/ingenic_jz47xx/timer-target.h index 2e072440ab..a305afaf8b 100644 --- a/firmware/target/mips/ingenic_jz47xx/timer-target.h +++ b/firmware/target/mips/ingenic_jz47xx/timer-target.h @@ -26,17 +26,4 @@ #define TIMER_FREQ (CFG_EXTAL) /* For full precision! */ -bool __timer_set(long cycles, bool set); -bool __timer_start(void); -void __timer_stop(void); - -#define __TIMER_SET(cycles, set) \ - __timer_set(cycles, set) - -#define __TIMER_START() \ - __timer_start() - -#define __TIMER_STOP(...) \ - __timer_stop() - #endif /* __TIMER_H_ */ -- cgit v1.2.3