summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:29:57 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:29:57 +0000
commitc5dedd7d762f48e940ecc0bd17dd2173d59a92e1 (patch)
treecd4d9dc085b4c40f281f17953a3e126dd1c0c02b /firmware/target/arm/tcc77x
parent89ccd5c145e45ad541a02f38e2ad07fb916f7135 (diff)
downloadrockbox-c5dedd7d762f48e940ecc0bd17dd2173d59a92e1.tar.gz
rockbox-c5dedd7d762f48e940ecc0bd17dd2173d59a92e1.zip
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
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r--firmware/target/arm/tcc77x/timer-target.h13
-rw-r--r--firmware/target/arm/tcc77x/timer-tcc77x.c6
2 files changed, 3 insertions, 16 deletions
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 @@
24/* timers are based on XIN (12Mhz) */ 24/* timers are based on XIN (12Mhz) */
25#define TIMER_FREQ (12000000) 25#define TIMER_FREQ (12000000)
26 26
27bool __timer_set(long cycles, bool set);
28bool __timer_start(void);
29void __timer_stop(void);
30
31#define __TIMER_SET(cycles, set) \
32 __timer_set(cycles, set)
33
34#define __TIMER_START() \
35 __timer_start()
36
37#define __TIMER_STOP(...) \
38 __timer_stop()
39
40#endif /* TIMER_TARGET_H */ 27#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 @@
28/* Use the TC32 counter [sourced by Xin:12Mhz] for this timer, as it's the 28/* Use the TC32 counter [sourced by Xin:12Mhz] for this timer, as it's the
29 only one that allows a 32-bit counter (Timer0-5 are 16/20 bit only). */ 29 only one that allows a 32-bit counter (Timer0-5 are 16/20 bit only). */
30 30
31bool __timer_set(long cycles, bool start) 31bool timer_set(long cycles, bool start)
32{ 32{
33 #warning function not implemented 33 #warning function not implemented
34 34
@@ -37,14 +37,14 @@ bool __timer_set(long cycles, bool start)
37 return false; 37 return false;
38} 38}
39 39
40bool __timer_start(void) 40bool timer_start(void)
41{ 41{
42 #warning function not implemented 42 #warning function not implemented
43 43
44 return false; 44 return false;
45} 45}
46 46
47void __timer_stop(void) 47void timer_stop(void)
48{ 48{
49 #warning function not implemented 49 #warning function not implemented
50} 50}