diff options
author | Dave Chapman <dave@dchapman.com> | 2008-09-06 17:50:59 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-09-06 17:50:59 +0000 |
commit | d462a64a918117991e11dade2d7fa3a28196e07a (patch) | |
tree | 0a6f5ed8777b18bb1641fbb3608f10374901706c /firmware/target/arm/tcc77x/system-tcc77x.c | |
parent | b87715f670f04c9adbe358c32a385c6771d99a81 (diff) | |
download | rockbox-d462a64a918117991e11dade2d7fa3a28196e07a.tar.gz rockbox-d462a64a918117991e11dade2d7fa3a28196e07a.zip |
Initial commit of iaudio 7 port by Vitja Makarov (FS#9245). Port is at quite an advanced stage, but is troubled by the lack of a reliable NAND driver (similar to the Cowon D2 port) and is not yet suitable for non-developers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18435 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 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc77x/system-tcc77x.c b/firmware/target/arm/tcc77x/system-tcc77x.c index c50a8a6651..2c8959fded 100644 --- a/firmware/target/arm/tcc77x/system-tcc77x.c +++ b/firmware/target/arm/tcc77x/system-tcc77x.c | |||
@@ -26,6 +26,7 @@ | |||
26 | /* Externally defined interrupt handlers */ | 26 | /* Externally defined interrupt handlers */ |
27 | extern void TIMER(void); | 27 | extern void TIMER(void); |
28 | extern void ADC(void); | 28 | extern void ADC(void); |
29 | extern void USBD_IRQ(void); | ||
29 | 30 | ||
30 | void irq(void) | 31 | void irq(void) |
31 | { | 32 | { |
@@ -36,14 +37,22 @@ void irq(void) | |||
36 | TIMER(); | 37 | TIMER(); |
37 | else if (irq & ADC_IRQ_MASK) | 38 | else if (irq & ADC_IRQ_MASK) |
38 | ADC(); | 39 | ADC(); |
40 | #ifdef HAVE_USBSTACK | ||
41 | else if (irq & USBD_IRQ_MASK) | ||
42 | USBD_IRQ(); | ||
43 | #endif | ||
39 | else | 44 | else |
40 | panicf("Unhandled IRQ 0x%08X", irq); | 45 | panicf("Unhandled IRQ 0x%08X", irq); |
41 | } | 46 | } |
42 | 47 | ||
48 | void fiq_handler(void) __attribute__((interrupt ("FIQ"), naked)); | ||
49 | |||
50 | #ifdef BOOTLOADER | ||
43 | void fiq_handler(void) | 51 | void fiq_handler(void) |
44 | { | 52 | { |
45 | /* TODO */ | 53 | /* TODO */ |
46 | } | 54 | } |
55 | #endif | ||
47 | 56 | ||
48 | void system_reboot(void) | 57 | void system_reboot(void) |
49 | { | 58 | { |
@@ -94,7 +103,7 @@ static void gpio_init(void) | |||
94 | GPIOC = 0; | 103 | GPIOC = 0; |
95 | GPIOD = 0x180; | 104 | GPIOD = 0x180; |
96 | GPIOE = 0; | 105 | GPIOE = 0; |
97 | GPIOA_DIR = 0x84b0 | 106 | GPIOA_DIR = 0x84b0; |
98 | GPIOB_DIR = 0x80800; | 107 | GPIOB_DIR = 0x80800; |
99 | GPIOC_DIR = 0x2000000; | 108 | GPIOC_DIR = 0x2000000; |
100 | GPIOD_DIR = 0x3e3; | 109 | GPIOD_DIR = 0x3e3; |