summaryrefslogtreecommitdiff
path: root/firmware/target/arm/pnx0101/timer-pnx0101.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/pnx0101/timer-pnx0101.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/pnx0101/timer-pnx0101.c')
-rw-r--r--firmware/target/arm/pnx0101/timer-pnx0101.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/pnx0101/timer-pnx0101.c b/firmware/target/arm/pnx0101/timer-pnx0101.c
index 6e685aa20f..d54cfe84d5 100644
--- a/firmware/target/arm/pnx0101/timer-pnx0101.c
+++ b/firmware/target/arm/pnx0101/timer-pnx0101.c
@@ -43,7 +43,7 @@ void TIMER1_ISR(void)
43 TIMER1.clr = 1; /* clear the interrupt */ 43 TIMER1.clr = 1; /* clear the interrupt */
44} 44}
45 45
46bool __timer_set(long cycles, bool start) 46bool timer_set(long cycles, bool start)
47{ 47{
48 if (start) 48 if (start)
49 { 49 {
@@ -68,14 +68,14 @@ bool __timer_set(long cycles, bool start)
68 return true; 68 return true;
69} 69}
70 70
71bool __timer_start(void) 71bool timer_start(void)
72{ 72{
73 irq_set_int_handler(IRQ_TIMER1, TIMER1_ISR); 73 irq_set_int_handler(IRQ_TIMER1, TIMER1_ISR);
74 irq_enable_int(IRQ_TIMER1); 74 irq_enable_int(IRQ_TIMER1);
75 return true; 75 return true;
76} 76}
77 77
78void __timer_stop(void) 78void timer_stop(void)
79{ 79{
80 TIMER1.ctrl &= ~0x80; /* disable timer 1 */ 80 TIMER1.ctrl &= ~0x80; /* disable timer 1 */
81 irq_disable_int(IRQ_TIMER1); 81 irq_disable_int(IRQ_TIMER1);