MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / GPIO_DbgLocationSet

Function GPIO_DbgLocationSet

bsp/efm32/Libraries/emlib/src/em_gpio.c:81–87  ·  view source on GitHub ↗

/ * @brief * Sets the pin location of the debug pins (Serial Wire interface). * * @note * Changing the pins used for debugging uncontrolled, may result in a lockout. * * @param[in] location * The debug pin location to use (0-3). ******************************************************************************/

Source from the content-addressed store, hash-verified

79 * The debug pin location to use (0-3).
80 ******************************************************************************/
81void GPIO_DbgLocationSet(unsigned int location)
82{
83 EFM_ASSERT(location < AFCHANLOC_MAX);
84
85 GPIO->ROUTE = (GPIO->ROUTE & ~_GPIO_ROUTE_SWLOCATION_MASK) |
86 (location << _GPIO_ROUTE_SWLOCATION_SHIFT);
87}
88
89
90/***************************************************************************//**

Callers 1

DBG_SWOEnableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected