diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-06-29 14:29:57 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-06-29 14:29:57 +0000 |
commit | c5dedd7d762f48e940ecc0bd17dd2173d59a92e1 (patch) | |
tree | cd4d9dc085b4c40f281f17953a3e126dd1c0c02b /firmware/target/arm/timer-pp.c | |
parent | 89ccd5c145e45ad541a02f38e2ad07fb916f7135 (diff) | |
download | rockbox-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.c | 6 |
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 | ||
47 | bool __timer_set(long cycles, bool start) | 47 | bool 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 | ||
70 | bool __timer_start(IF_COP_VOID(int core)) | 70 | bool 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 | ||
82 | void __timer_stop(void) | 82 | void 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; |