Correct the memory sizes (IRAM and DRAM) for the Nano2G.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22025 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2009-07-25 00:49:13 +00:00
parent 658636996b
commit 5b3f333dd7
6 changed files with 152 additions and 16 deletions

View file

@ -96,12 +96,15 @@ void irq_handler(void)
"sub sp, sp, #8 \n"); /* Reserve stack */
int irq_no = INTOFFSET;
int sources = SRCPND;
if (irq_no==10) { INTMSK &= ~(1<<10); }
irqvector[irq_no]();
/* clear interrupt */
SRCPND = (1 << irq_no);
INTPND = INTPND;
SRCPND = sources;
INTPND = sources;
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */