the header file genertion mechanism here is designed to: * use human readable source data that is better structured and less repetitive than the header files themselves * produce same quality header files than the manual process of writing them. some features were not yet enabled to show that the existing headers didn't change. (look at emu.h's differences. whitespace switched from tabs to spaces as they are easier to handle, use --color-words to see the few differences that stemmed from inconsistencies in the original file.) * be less tedious and thus error prone when doing large modifications (eg, i forgot to add _MASK to bitfields, would like to enable bitbanding acces, and to overhaul the naming in doxygen modules)
19 lines
419 B
Plaintext
19 lines
419 B
Plaintext
/** 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");
|
|
}
|
|
|
|
/** @} */
|