private void checkInterrupt() { if (interrupt != 0) { RuntimeContextLLE.triggerInterrupt(Processor, PSP_AUDIO_INTR); } else { RuntimeContextLLE.clearInterrupt(Processor, PSP_AUDIO_INTR); } }
private void checkInterrupt() { if ((isInterruptTriggered & isInterruptEnabled) != 0) { RuntimeContextLLE.triggerInterrupt(Processor, PSP_GPIO_INTR); } else { RuntimeContextLLE.clearInterrupt(Processor, PSP_GPIO_INTR); } }
private void clearUsbMemoryStick(int mask) { int oldUsbAndMemoryStick = usbAndMemoryStick; mask &= SYSREG_USBMS_USB_INTERRUPT_MASK | SYSREG_USBMS_MS0_INTERRUPT_MASK | SYSREG_USBMS_MS1_INTERRUPT_MASK; usbAndMemoryStick &= ~mask; if (isFalling(oldUsbAndMemoryStick, usbAndMemoryStick, SYSREG_USBMS_USB_INTERRUPT1)) { RuntimeContextLLE.clearInterrupt(Processor, IntrManager.PSP_USB_58); } if (isFalling(oldUsbAndMemoryStick, usbAndMemoryStick, SYSREG_USBMS_USB_INTERRUPT2)) { RuntimeContextLLE.clearInterrupt(Processor, IntrManager.PSP_USB_59); } if (isFalling(oldUsbAndMemoryStick, usbAndMemoryStick, SYSREG_USBMS_USB_INTERRUPT3)) { RuntimeContextLLE.clearInterrupt(Processor, IntrManager.PSP_USB_57); } if (isFalling(oldUsbAndMemoryStick, usbAndMemoryStick, SYSREG_USBMS_USB_INTERRUPT4)) { RuntimeContextLLE.clearInterrupt(Processor, IntrManager.PSP_USB_56); } }