diff options
author | Dave Chapman <dave@dchapman.com> | 2008-05-03 07:49:39 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-05-03 07:49:39 +0000 |
commit | 9c1ab1f0572da9d68f45fc8cb6c361cee0b33376 (patch) | |
tree | c4f03a1a217c7fdd6be4f781bec67bd2ecbaa2aa /firmware/target/arm/tcc77x/system-tcc77x.c | |
parent | 2124a9fad02e79165a72ec5f8495862e9a57a954 (diff) | |
download | rockbox-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.c | 8 |
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 */ | ||
24 | extern void TIMER(void); | 25 | extern void TIMER(void); |
26 | extern void ADC(void); | ||
25 | 27 | ||
26 | void irq(void) | 28 | void 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 | ||
41 | void fiq_handler(void) | 41 | void fiq_handler(void) |