MCURTC:ReadInterrupt

From 3dbrew
Revision as of 07:59, 9 October 2017 by MarcusD (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004D0000] |} =Response= {| class="wikitable" border="1" |- ! Index Word !...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.