summaryrefslogtreecommitdiff
path: root/firmware/target/arm/pnx0101/timer-pnx0101.c
diff options
context:
space:
mode:
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);