BSPACM  20150113
Board Support Package for ARM Cortex-M Microcontrollers
Macros | Functions
device.h File Reference

Common device header for all EFM32 series devices. More...

#include <em_device.h>
#include <em_emu.h>

Go to the source code of this file.

Macros

#define BSPACM_CORE_SLEEP()
 
#define BSPACM_CORE_DEEP_SLEEP()
 

Functions

void vBSPACMdeviceEFM32setupSWO (void)
 

Detailed Description

Common device header for all EFM32 series devices.

Homepage
http://github.com/pabigot/bspacm

Macro Definition Documentation

#define BSPACM_CORE_DEEP_SLEEP ( )
Value:
do { \
EMU_EnterEM2(true); \
SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk; \
} while(0)

Bypass default implementation in favor of EFM32 standard, invoked in a way that causes it to restore clock configurations, and augmented by clearing the SLEEPDEEP bit which EMU_EnterEM2() leaves set.

#define BSPACM_CORE_SLEEP ( )
Value:
do { \
EMU_EnterEM1(); \
} while(0)

Bypass default implementation in favor of EFM32 standard.

Function Documentation

void vBSPACMdeviceEFM32setupSWO ( void  )

Function to turn on the EFM32 Serial Wire Output (SWO) feature, required when using the Trace Port Interface Unit to feed back PC sample and interrupt information to the energyAware Profiler application.

Note
SWO is only available on Cortex-M3 and Cortex-M4 device lines, not on the Zero Gecko.