forked from len0rd/rockbox
m:robe 500i port: Get interrupts firing and the timer ticking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14853 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7e891aa4d3
commit
2a0ae89c26
3 changed files with 9 additions and 1 deletions
|
@ -48,6 +48,11 @@ start:
|
|||
str r0, [r1, #28]
|
||||
#endif
|
||||
|
||||
/* Disable high vectors (at 0xffff0000 instead of 0x00000000) */
|
||||
mrc p15, 0, r0, c1, c0
|
||||
and r0, r0, #~(1<<13)
|
||||
mcr p15, 0, r0, c1, c0
|
||||
|
||||
#if !defined(BOOTLOADER)
|
||||
|
||||
#if !defined(STUB)
|
||||
|
|
|
@ -59,5 +59,5 @@ void TIMER1(void)
|
|||
|
||||
current_tick++;
|
||||
|
||||
IO_INTC_IRQ0 |= 1<<IRQ_TIMER1;
|
||||
IO_INTC_IRQ0 = 1<<IRQ_TIMER1;
|
||||
}
|
||||
|
|
|
@ -167,6 +167,9 @@ void system_init(void)
|
|||
IO_INTC_FISEL1 = 0;
|
||||
IO_INTC_FISEL2 = 0;
|
||||
|
||||
IO_INTC_ENTRY_TBA0 =
|
||||
IO_INTC_ENTRY_TBA1 = 0;
|
||||
|
||||
/* set GIO26 (reset pin) to output and low */
|
||||
IO_GIO_BITCLR1=(1<<10);
|
||||
IO_GIO_DIR1&=~(1<<10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue