#152078 - krozen - Sun Mar 09, 2008 2:43 pm
Hi,
I'm working through some interrupt examples. I pretty much understand interrupts, except for one thing: VBLANK_INTR_WAIT_FLAGS. I have the following function, which is called on every VBLANK:
Why does VBLANK_INTR_WAIT_FLAGS have to be reset similiar to REG_IF? Is this just to "reset" the interrupt on the REG_DISPSTAT "side" in the same way as we are resetting the interrupting on REG_IF?
Cheers
I'm working through some interrupt examples. I pretty much understand interrupts, except for one thing: VBLANK_INTR_WAIT_FLAGS. I have the following function, which is called on every VBLANK:
Code: |
void irq() { REG_IF = IRQ_VBLANK; VBLANK_INTR_WAIT_FLAGS = IRQ_VBLANK; } |
Why does VBLANK_INTR_WAIT_FLAGS have to be reset similiar to REG_IF? Is this just to "reset" the interrupt on the REG_DISPSTAT "side" in the same way as we are resetting the interrupting on REG_IF?
Cheers