/ * @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). ******************************************************************************/
| 79 | * The debug pin location to use (0-3). |
| 80 | ******************************************************************************/ |
| 81 | void 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 | /***************************************************************************//** |