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

Function GPIO_PinOutSet

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

/ * @brief * Set a single pin in GPIO data out register to 1. * * @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 set. ***********************************

Source from the content-addressed store, hash-verified

329 * The pin to set.
330 ******************************************************************************/
331void GPIO_PinOutSet(GPIO_Port_TypeDef port, unsigned int pin)
332{
333 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_PIN_VALID(pin));
334
335 GPIO->P[port].DOUTSET = 1 << pin;
336}
337
338
339/***************************************************************************//**

Callers 8

efm_eth_csFunction · 0.85
efm_hw_eth_initFunction · 0.85
efm32_spiLcd_csFunction · 0.85
efm_spiFlash_csFunction · 0.85
efm_spiSd_csFunction · 0.85
rt_hw_led_onFunction · 0.85
SPI_BC_AccessFunction · 0.85
spiAccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected