summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc780x/timer-tcc780x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc780x/timer-tcc780x.c')
-rw-r--r--firmware/target/arm/tcc780x/timer-tcc780x.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/firmware/target/arm/tcc780x/timer-tcc780x.c b/firmware/target/arm/tcc780x/timer-tcc780x.c
index ca6613a3ff..a6c8c1c060 100644
--- a/firmware/target/arm/tcc780x/timer-tcc780x.c
+++ b/firmware/target/arm/tcc780x/timer-tcc780x.c
@@ -81,26 +81,3 @@ void __timer_unregister(void)
81 81
82 restore_interrupt(oldstatus); 82 restore_interrupt(oldstatus);
83} 83}
84
85
86/* Timer interrupt processing - all timers (inc. tick) have a single IRQ */
87void TIMER0(void)
88{
89 if (TIREQ & TIREQ_TF0) /* Timer0 reached ref value */
90 {
91 /* Run through the list of tick tasks */
92 call_tick_tasks();
93
94 /* reset Timer 0 IRQ & ref flags */
95 TIREQ = TIREQ_TI0 | TIREQ_TF0;
96 }
97
98 if (TIREQ & TIREQ_TF4) /* Timer4 reached ref value */
99 {
100 /* dispatch user timer */
101 if (pfn_timer != NULL)
102 pfn_timer();
103
104 TIREQ = TIREQ_TI4 | TIREQ_TF4;
105 }
106}