mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 10:02:45 -05:00
Oops, too many files were committed in r22025, revert this one. The other changes committed as r22025 were initial button and audio drivers for the Nano2G - more work is needed on both, but they work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22026 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5b3f333dd7
commit
332da92189
1 changed files with 2 additions and 5 deletions
|
|
@ -96,15 +96,12 @@ void irq_handler(void)
|
||||||
"sub sp, sp, #8 \n"); /* Reserve stack */
|
"sub sp, sp, #8 \n"); /* Reserve stack */
|
||||||
|
|
||||||
int irq_no = INTOFFSET;
|
int irq_no = INTOFFSET;
|
||||||
int sources = SRCPND;
|
|
||||||
|
|
||||||
if (irq_no==10) { INTMSK &= ~(1<<10); }
|
|
||||||
|
|
||||||
irqvector[irq_no]();
|
irqvector[irq_no]();
|
||||||
|
|
||||||
/* clear interrupt */
|
/* clear interrupt */
|
||||||
SRCPND = sources;
|
SRCPND = (1 << irq_no);
|
||||||
INTPND = sources;
|
INTPND = INTPND;
|
||||||
|
|
||||||
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
|
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
|
||||||
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */
|
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue