20 #if (defined( BSP_ETM_TRACE ) && defined( ETM_PRESENT )) || \
21 defined( GPIO_ROUTE_SWOPEN ) || \
22 defined( GPIO_ROUTEPEN_SWVPEN )
27 #include "traceconfig.h"
42 #if defined(BSP_ETM_TRACE) && defined( ETM_PRESENT )
43 void BSP_TraceEtmSetup(
void);
46 #if defined( GPIO_ROUTE_SWOPEN ) || defined( _GPIO_ROUTEPEN_SWVPEN_MASK )
52 #define USER_PAGE 0x0FE00000UL
65 volatile uint32_t *userpage = (uint32_t *) USER_PAGE;
71 if (data == 0xFFFFFFFF)
78 if (data == 0x00000000)
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void MSC_Init(void)
Enables the flash controller for writing.
bool BSP_TraceProfilerSetup(void)
Profiler configuration.
Flash controller (MSC) peripheral API.
__STATIC_INLINE void BSP_TraceProfilerEnable(bool enable)
Set or clear word in user page which enables or disables SWO in BSP_TraceProfilerSetup. If BSP_TraceProfilerEnable(false) has been run, no example project will enable SWO trace.
void BSP_TraceSwoSetup(void)
Configure trace output for energyAware Profiler.
MSC_RAMFUNC_DECLARATOR MSC_Status_TypeDef MSC_WriteWord(uint32_t *address, void const *data, uint32_t numBytes)
Writes data to flash memory. This function is interrupt safe, but slower than MSC_WriteWordFast(), which writes to flash with interrupts disabled. Write data must be aligned to words and contain a number of bytes that is divisable by four.
MSC_RAMFUNC_DECLARATOR MSC_Status_TypeDef MSC_ErasePage(uint32_t *startAddress)
Erases a page in flash memory.