MCURTC:ReadInterrupt
Jump to navigation
Jump to search
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x004D0000] |
Response[edit]
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | Interrupt mask |
Description[edit]
This reads the interrupt field from the MCU device.
Use EnterExclusiveInterruptMode (mcu::RTC 0x004C0000) to stop the internal event loop and gain exclusive access to the interrupt field. Please use TriggerInterrupt to deliver the interrupt mask to the mcu sysmodule unless you wanna filter MCU interrupts, otherwise things like HOME or Power button won't function. After you no longer need exclusive access and/or exiting the program, use ExitExclusiveInterruptMode (mcu::RTC 0x004B0000) to unfreeze the internal event loop.
Use svcBindInterrupt with InterruptID 0x71 to create a handle on which you can wait for an MCU interrupt.