summaryrefslogtreecommitdiff
path: root/firmware/target/arm/timer-pp.c
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/timer-pp.c
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/timer-pp.c')
-rw-r--r--firmware/target/arm/timer-pp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/timer-pp.c b/firmware/target/arm/timer-pp.c
index 01c691f79e..a8879b1824 100644
--- a/firmware/target/arm/timer-pp.c
+++ b/firmware/target/arm/timer-pp.c
@@ -44,7 +44,7 @@ void TIMER2(void)
44 } 44 }
45} 45}
46 46
47bool __timer_set(long cycles, bool start) 47bool timer_set(long cycles, bool start)
48{ 48{
49 if (cycles > 0x20000000 || cycles < 2) 49 if (cycles > 0x20000000 || cycles < 2)
50 return false; 50 return false;
@@ -67,7 +67,7 @@ bool __timer_set(long cycles, bool start)
67 return true; 67 return true;
68} 68}
69 69
70bool __timer_start(IF_COP_VOID(int core)) 70bool timer_start(IF_COP_VOID(int core))
71{ 71{
72 /* unmask interrupt source */ 72 /* unmask interrupt source */
73#if NUM_CORES > 1 73#if NUM_CORES > 1
@@ -79,7 +79,7 @@ bool __timer_start(IF_COP_VOID(int core))
79 return true; 79 return true;
80} 80}
81 81
82void __timer_stop(void) 82void timer_stop(void)
83{ 83{
84 TIMER2_CFG = 0; /* stop timer 2 */ 84 TIMER2_CFG = 0; /* stop timer 2 */
85 CPU_INT_DIS = TIMER2_MASK; 85 CPU_INT_DIS = TIMER2_MASK;