Implement PWM backlight driver for the Meizus. Update Meizu M3 bootloader to control brightness with the touch strip.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21478 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-06-23 18:11:03 +00:00
parent d86cf998e8
commit 743dcf7f69
8 changed files with 126 additions and 69 deletions

View file

@ -95,12 +95,13 @@ void irq_handler(void)
asm volatile( "stmfd sp!, {r0-r7, ip, lr} \n" /* Store context */
"sub sp, sp, #8 \n"); /* Reserve stack */
int irq_no = INTOFFSET; /* Read clears the corresponding IRQ status */
int irq_no = INTOFFSET;
if ((irq_no & (1<<31)) == 0) /* Ensure invalid flag is not set */
{
irqvector[irq_no]();
}
irqvector[irq_no]();
/* clear interrupt */
SRCPND = (1 << irq_no);
INTPND = INTPND;
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */