HAL_GPIO_WritePin() function
Sets or clears the selected data port bit.
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.
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()