HAL + 0/95 examples
CodeScope will show references to HAL_GPIO_WritePin() from the following samples and libraries:
Drivers
Boards
Examples
STM32469I-Discovery
Demonstrations
Applications
Audio
FatFs
STemWin
USBX
USB_Host
STM32469I_EVAL
Demonstrations
Applications
STemWin
Examples
TIM
STM32F413H-Discovery
Demonstrations
Applications
FatFs
STemWin
USB_Host
STM32F429I-Discovery
Demonstrations
Applications
Display
FatFs
LibJPEG
USB_Host
STM32446E_EVAL
Examples
TIM
STM324x9I_EVAL
Applications
STemWin
Examples
PWR
STM324xG_EVAL
Examples
SMARTCARD
STM32F4-Discovery
Applications
Audio
FatFs
STM32F401-Discovery
Applications
Audio
FatFs
STM32F411E-Discovery
Applications
Audio
FatFs
STM32F412G-Discovery
Applications
FatFs
STemWin
USB_Host
STM32F412ZG-Nucleo
Applications
FatFs
USB_Host
STM32F413ZH-Nucleo
Applications
FatFs
USB_Host
STM32F429ZI-Nucleo
Applications
FatFs
USBX
USB_Host
Examples
TIM
STM32F446ZE-Nucleo
Applications
FatFs
USB_Host
Examples
TIM
 
Symbols
loading...
Files
loading...

HAL_GPIO_WritePin() function

Sets or clears the selected data port bit.

Syntax

void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx,     uint16_t GPIO_Pin,     GPIO_PinState PinState);
Implemented in stm32f4xx_hal_gpio.c:410

Arguments

GPIOx

where x can be (A..K) to select the GPIO peripheral for STM32F429X device or x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices.

GPIO_Pin

specifies the port bit to be written. This parameter can be one of GPIO_PIN_x where x can be (0..15).

PinState

specifies the value to be written to the selected bit. This parameter can be one of the GPIO_PinState enum values: @arg GPIO_PIN_RESET: to clear the port pin @arg GPIO_PIN_SET: to set the port pin

Return value

None

Notes

This function uses GPIOx_BSRR register to allow atomic read/modify accesses. In this way, there is no risk of an IRQ occurring between the read and the modify access.

Examples

HAL_GPIO_WritePin() is referenced by 95 libraries and example projects.

References

LocationText
stm32f4xx_hal_gpio.c:410
void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
stm32f4xx_hal_gpio.h:235
void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);

Call Tree

Functions called by HAL_GPIO_WritePin()
HAL_GPIO_WritePin()
assert_failed()
all items filtered out
Data read by HAL_GPIO_WritePin()
Data written by HAL_GPIO_WritePin()
HAL_GPIO_WritePin()
all items filtered out