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/arm/tcc77x/timer-target.h | 13 ------------- firmware/target/arm/tcc77x/timer-tcc77x.c | 6 +++--- 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'firmware/target/arm/tcc77x') diff --git a/firmware/target/arm/tcc77x/timer-target.h b/firmware/target/arm/tcc77x/timer-target.h index ace31ac886..a4d869067a 100644 --- a/firmware/target/arm/tcc77x/timer-target.h +++ b/firmware/target/arm/tcc77x/timer-target.h @@ -24,17 +24,4 @@ /* timers are based on XIN (12Mhz) */ #define TIMER_FREQ (12000000) -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_TARGET_H */ diff --git a/firmware/target/arm/tcc77x/timer-tcc77x.c b/firmware/target/arm/tcc77x/timer-tcc77x.c index ddf44454c2..6e8764d9ce 100644 --- a/firmware/target/arm/tcc77x/timer-tcc77x.c +++ b/firmware/target/arm/tcc77x/timer-tcc77x.c @@ -28,7 +28,7 @@ /* Use the TC32 counter [sourced by Xin:12Mhz] for this timer, as it's the only one that allows a 32-bit counter (Timer0-5 are 16/20 bit only). */ -bool __timer_set(long cycles, bool start) +bool timer_set(long cycles, bool start) { #warning function not implemented @@ -37,14 +37,14 @@ bool __timer_set(long cycles, bool start) return false; } -bool __timer_start(void) +bool timer_start(void) { #warning function not implemented return false; } -void __timer_stop(void) +void timer_stop(void) { #warning function not implemented } -- cgit v1.2.3