aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/efm32/tinygecko/emu.convenienceheaders
blob: 7d5893d1b107fcac03edbd4db8e0f74386995256 (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 EMU convenience functions
 * @{
 */

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

/** @} */