summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/system-tcc77x.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-05-03 07:49:39 +0000
committerDave Chapman <dave@dchapman.com>2008-05-03 07:49:39 +0000
commit9c1ab1f0572da9d68f45fc8cb6c361cee0b33376 (patch)
treec4f03a1a217c7fdd6be4f781bec67bd2ecbaa2aa /firmware/target/arm/tcc77x/system-tcc77x.c
parent2124a9fad02e79165a72ec5f8495862e9a57a954 (diff)
downloadrockbox-9c1ab1f0572da9d68f45fc8cb6c361cee0b33376.tar.gz
rockbox-9c1ab1f0572da9d68f45fc8cb6c361cee0b33376.zip
Convert the TCC77x ADC driver to use interrupts - based on the technique used in the SH ADC driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17311 a1c6a512-1295-4272-9138-f99709370657
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)