diff options
Diffstat (limited to 'firmware/target/sh/archos/timer-archos.c')
-rw-r--r-- | firmware/target/sh/archos/timer-archos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/sh/archos/timer-archos.c b/firmware/target/sh/archos/timer-archos.c index c61318f721..07d63ed3a8 100644 --- a/firmware/target/sh/archos/timer-archos.c +++ b/firmware/target/sh/archos/timer-archos.c | |||
@@ -32,7 +32,7 @@ void IMIA4(void) | |||
32 | and_b(~0x01, &TSR4); /* clear the interrupt */ | 32 | and_b(~0x01, &TSR4); /* clear the interrupt */ |
33 | } | 33 | } |
34 | 34 | ||
35 | bool __timer_set(long cycles, bool start) | 35 | bool timer_set(long cycles, bool start) |
36 | { | 36 | { |
37 | int phi = 0; /* bits for the prescaler */ | 37 | int phi = 0; /* bits for the prescaler */ |
38 | int prescale = 1; | 38 | int prescale = 1; |
@@ -71,14 +71,14 @@ bool __timer_set(long cycles, bool start) | |||
71 | return true; | 71 | return true; |
72 | } | 72 | } |
73 | 73 | ||
74 | bool __timer_start(void) | 74 | bool timer_start(void) |
75 | { | 75 | { |
76 | IPRD = (IPRD & 0xFF0F) | 1 << 4; /* interrupt priority */ | 76 | IPRD = (IPRD & 0xFF0F) | 1 << 4; /* interrupt priority */ |
77 | or_b(0x10, &TSTR); /* start timer 4 */ | 77 | or_b(0x10, &TSTR); /* start timer 4 */ |
78 | return true; | 78 | return true; |
79 | } | 79 | } |
80 | 80 | ||
81 | void __timer_stop(void) | 81 | void timer_stop(void) |
82 | { | 82 | { |
83 | and_b(~0x10, &TSTR); /* stop the timer 4 */ | 83 | and_b(~0x10, &TSTR); /* stop the timer 4 */ |
84 | IPRD = (IPRD & 0xFF0F); /* disable interrupt */ | 84 | IPRD = (IPRD & 0xFF0F); /* disable interrupt */ |