aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/efm32/tinygecko/emu.convenienceheaders
blob: 4be5b30e91fd3db94341524f22c0162f69e84c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** EMU convenience functions
 *
 * These functions can be used to send the chip to low energy modes.
 *
 * @todo Implement other sleep modes than EM1. Implement WFI vs WFE waits.
 *
 * @defgroup EFM32TG_EMU_convenience EFM32 Tiny Gecko EMU convenience functions
 * @{
 */

/** Put the system into EM1 low energy mode. */
static void emu_sleep_em1(void)
{
	/* FIXME: set SLEEPDEEP to 0 */
	__asm__("wfi");
}

/** @} */