EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #262 background imageLoading...
Page #262 background image
HAL GPIO Generic Driver
UM1940
262/1371
DocID028236 Rev 2
PinState: specifies the value to be written to the selected bit.
This parameter can be one of the GPIO_PinState enum
values:
GPIO_PIN_RESET: to clear the port pin
GPIO_PIN_SET: to set the port pin
Return values
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.
HAL_GPIO_TogglePin
Function name
void HAL_GPIO_TogglePin (GPIO_TypeDef * GPIOx, uint16_t
GPIO_Pin)
Function description
Toggles the specified GPIO pins.
Parameters
GPIOx: where x can be (A..I) to select the GPIO peripheral.
GPIO_Pin: Specifies the pins to be toggled.
Return values
None:
HAL_GPIO_LockPin
Function name
HAL_StatusTypeDef HAL_GPIO_LockPin (GPIO_TypeDef *
GPIOx, uint16_t GPIO_Pin)
Function description
Locks GPIO Pins configuration registers.
Parameters
GPIOx: where x can be (A..I) to select the GPIO peripheral
for STM32F2XX family
GPIO_Pin: specifies the port bit to be locked. This parameter
can be any combination of GPIO_PIN_x where x can be
(0..15).
Return values
None:
Notes
The locked registers are GPIOx_MODER, GPIOx_OTYPER,
GPIOx_OSPEEDR, GPIOx_PUPDR, GPIOx_AFRL and
GPIOx_AFRH.
The configuration of the locked GPIO pins can no longer be
modified until the next reset.
HAL_GPIO_EXTI_IRQHandler
Function name
void HAL_GPIO_EXTI_IRQHandler (uint16_t GPIO_Pin)
Function description
This function handles EXTI interrupt request.
Parameters
GPIO_Pin: Specifies the pins connected EXTI line
Return values
None:
HAL_GPIO_EXTI_Callback
Function name
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
Function description
EXTI line detection callbacks.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals