35 #if defined( CoreDebug_DHCSR_C_DEBUGEN_Msk )
60 #if defined( GPIO_ROUTE_SWOPEN ) || defined( GPIO_ROUTEPEN_SWVPEN )
92 void DBG_SWOEnable(
unsigned int location)
97 EFM_ASSERT(location < AFCHANLOC_MAX);
99 #if defined ( AF_DBG_SWO_PORT )
100 port = AF_DBG_SWO_PORT(location);
101 pin = AF_DBG_SWO_PIN(location);
102 #elif defined (AF_DBG_SWV_PORT )
103 port = AF_DBG_SWV_PORT(location);
104 pin = AF_DBG_SWV_PIN(location);
106 #warning "AF debug port is not defined."
110 if ((pin < 0) || (port < 0))
121 GPIO_DbgSWOEnable(
true);
Clock management unit (CMU) API.
Emlib peripheral API "assert" implementation.
void GPIO_DbgLocationSet(unsigned int location)
Sets the pin location of the debug pins (Serial Wire interface).
void GPIO_PinModeSet(GPIO_Port_TypeDef port, unsigned int pin, GPIO_Mode_TypeDef mode, unsigned int out)
Set the mode for a GPIO pin.
General Purpose IO (GPIO) peripheral API.
void CMU_OscillatorEnable(CMU_Osc_TypeDef osc, bool enable, bool wait)
Enable/disable oscillator.