summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/system-tcc77x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc77x/system-tcc77x.c')
-rw-r--r--firmware/target/arm/tcc77x/system-tcc77x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/tcc77x/system-tcc77x.c b/firmware/target/arm/tcc77x/system-tcc77x.c
index 7323b0ce55..2628d9f0ed 100644
--- a/firmware/target/arm/tcc77x/system-tcc77x.c
+++ b/firmware/target/arm/tcc77x/system-tcc77x.c
@@ -21,7 +21,9 @@
21#include "system.h" 21#include "system.h"
22#include "panic.h" 22#include "panic.h"
23 23
24/* Externally defined interrupt handlers */
24extern void TIMER(void); 25extern void TIMER(void);
26extern void ADC(void);
25 27
26void irq(void) 28void irq(void)
27{ 29{
@@ -29,13 +31,11 @@ void irq(void)
29 CREQ = irq; /* Clears the corresponding IRQ status */ 31 CREQ = irq; /* Clears the corresponding IRQ status */
30 32
31 if (irq & TIMER0_IRQ_MASK) 33 if (irq & TIMER0_IRQ_MASK)
32 {
33 TIMER(); 34 TIMER();
34 } 35 else if (irq & ADC_IRQ_MASK)
36 ADC();
35 else 37 else
36 {
37 panicf("Unhandled IRQ 0x%08X", irq); 38 panicf("Unhandled IRQ 0x%08X", irq);
38 }
39} 39}
40 40
41void fiq_handler(void) 41void fiq_handler(void)