# SVC_Sleep

## C Specification

      #include <nitro/os/common/systemCall.h>

      void SVC_Sleep( void );

## Description

Note: This function operates only on the ARM7 processor.

Terminates the source transmission

When any of the following interrupts (RTC, Key, Card, Cartridge, Main Unit Open) are allowed (set on the IE), this function restores the source transmission using the corresponding interrupt request generation.

Because the input from the system clock has been terminated, the IF flag will not be set immediately following restore, but when there is also an interrupt request signal to the terminal, then the IF flag will remain set until the CPU is rebooted.

Call this function only after placing the ARM9 in a HALT state: stopping the wireless module and sound amps, terminating all locks, and clearing the `POWCNT` register to `0` for both processors.

Reset the LCD enable flag in the `POWCNT` register to `0` at `100` ms or greater before calling this function. If you do not reconfigure these settings, the main unit could abnormally end.

## Arguments

None.

## Return Values

None.

## See Also

`SVC_Halt`

## Revision History

07/22/2004 Initial version