summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/system-tcc77x.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-09-06 17:50:59 +0000
committerDave Chapman <dave@dchapman.com>2008-09-06 17:50:59 +0000
commitd462a64a918117991e11dade2d7fa3a28196e07a (patch)
tree0a6f5ed8777b18bb1641fbb3608f10374901706c /firmware/target/arm/tcc77x/system-tcc77x.c
parentb87715f670f04c9adbe358c32a385c6771d99a81 (diff)
downloadrockbox-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.c11
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 */
27extern void TIMER(void); 27extern void TIMER(void);
28extern void ADC(void); 28extern void ADC(void);
29extern void USBD_IRQ(void);
29 30
30void irq(void) 31void 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
48void fiq_handler(void) __attribute__((interrupt ("FIQ"), naked));
49
50#ifdef BOOTLOADER
43void fiq_handler(void) 51void fiq_handler(void)
44{ 52{
45 /* TODO */ 53 /* TODO */
46} 54}
55#endif
47 56
48void system_reboot(void) 57void 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;