#75595 - sasq - Tue Mar 14, 2006 2:52 pm
I need to update the touchscreen position more often then once per frame and tried using the timer instead of vblank as interrupt source on the arm7 side but I could not get it to work (interrupts never occured).
I basically changed the standard (libnds) arm7 template like this:
I alos tried using TIMER1 and keeping VBLANK interrupt on too, but the timer never triggers.... any ideas?
I basically changed the standard (libnds) arm7 template like this:
Code: |
//irqSet(IRQ_VBLANK, VblankHandler); //irqEnable(IRQ_VBLANK); irqSet(IRQ_TIMER0, VblankHandler); TIMER0_CR = TIMER_ENABLE | TIMER_DIV_256; TIMER0_DATA = TIMER_FREQ_256(100); irqEnable(IRQ_TIMER0); |
I alos tried using TIMER1 and keeping VBLANK interrupt on too, but the timer never triggers.... any ideas?