示例#1
0
 private void checkInterrupt()
 {
     if (interrupt != 0)
     {
         RuntimeContextLLE.triggerInterrupt(Processor, PSP_AUDIO_INTR);
     }
     else
     {
         RuntimeContextLLE.clearInterrupt(Processor, PSP_AUDIO_INTR);
     }
 }
示例#2
0
 private void checkInterrupt()
 {
     if ((isInterruptTriggered & isInterruptEnabled) != 0)
     {
         RuntimeContextLLE.triggerInterrupt(Processor, PSP_GPIO_INTR);
     }
     else
     {
         RuntimeContextLLE.clearInterrupt(Processor, PSP_GPIO_INTR);
     }
 }
示例#3
0
        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);
            }
        }