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

Function GPIO_PinOutToggle

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

/ * @brief * Toggle a single pin in GPIO port data out register. * * @note * In order for the setting to take effect on the output pad, the pin must * have been configured properly. If not, it will take effect whenever the * pin has been properly configured. * * @param[in] port * The GPIO port to access. * * @param[in] pin * The pin to toggle. *****************************

Source from the content-addressed store, hash-verified

352 * The pin to toggle.
353 ******************************************************************************/
354void GPIO_PinOutToggle(GPIO_Port_TypeDef port, unsigned int pin)
355{
356 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_PIN_VALID(pin));
357
358 GPIO->P[port].DOUTTGL = 1 << pin;
359}
360
361
362/***************************************************************************//**

Callers 1

rt_hw_led_toggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected