diff options
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r-- | firmware/target/arm/tcc77x/timer-tcc77x.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/firmware/target/arm/tcc77x/timer-tcc77x.c b/firmware/target/arm/tcc77x/timer-tcc77x.c index 4645e388cc..924ddda625 100644 --- a/firmware/target/arm/tcc77x/timer-tcc77x.c +++ b/firmware/target/arm/tcc77x/timer-tcc77x.c | |||
@@ -51,24 +51,12 @@ void __timer_unregister(void) | |||
51 | 51 | ||
52 | 52 | ||
53 | /* Timer interrupt processing - all timers (inc. tick) have a single IRQ */ | 53 | /* Timer interrupt processing - all timers (inc. tick) have a single IRQ */ |
54 | |||
55 | extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | ||
56 | |||
57 | void TIMER(void) | 54 | void TIMER(void) |
58 | { | 55 | { |
59 | if (TIREQ & TF0) /* Timer0 reached ref value */ | 56 | if (TIREQ & TF0) /* Timer0 reached ref value */ |
60 | { | 57 | { |
61 | int i; | ||
62 | |||
63 | /* Run through the list of tick tasks */ | 58 | /* Run through the list of tick tasks */ |
64 | for(i = 0; i < MAX_NUM_TICK_TASKS; i++) | 59 | call_tick_tasks(); |
65 | { | ||
66 | if(tick_funcs[i]) | ||
67 | { | ||
68 | tick_funcs[i](); | ||
69 | } | ||
70 | } | ||
71 | current_tick++; | ||
72 | 60 | ||
73 | /* reset Timer 0 IRQ & ref flags */ | 61 | /* reset Timer 0 IRQ & ref flags */ |
74 | TIREQ |= TI0 | TF0; | 62 | TIREQ |= TI0 | TF0; |