Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Initialization and Configuration
[GPIO_Private_Functions]
Initialization and Configuration. More...
Functions | |
void | GPIO_DeInit (GPIO_TypeDef *GPIOx) |
Deinitializes the GPIOx peripheral registers to their default reset values. | |
void | GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. | |
void | GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct) |
Fills each GPIO_InitStruct member with its default value. | |
void | GPIO_PinLockConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Locks GPIO Pins configuration registers. |
Detailed Description
Initialization and Configuration.
=============================================================================== ##### Initialization and Configuration ##### ===============================================================================
Function Documentation
void GPIO_DeInit | ( | GPIO_TypeDef * | GPIOx ) |
Deinitializes the GPIOx peripheral registers to their default reset values.
- Parameters:
-
GPIOx,: where x can be (A, B, C, D, E or F) to select the GPIO peripheral.
- Return values:
-
None
Definition at line 121 of file stm32f30x_gpio.c.
void GPIO_Init | ( | GPIO_TypeDef * | GPIOx, |
GPIO_InitTypeDef * | GPIO_InitStruct | ||
) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct.
- Parameters:
-
GPIOx,: where x can be (A, B, C, D, E, F, G or H) to select the GPIO peripheral. GPIO_InitStruct,: pointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral.
- Note:
- GPIO_Pin: selects the pin to be configured: GPIO_Pin_0->GPIO_Pin_15 for GPIOA, GPIOB, GPIOC, GPIOD and GPIOE; GPIO_Pin_0->GPIO_Pin_2, GPIO_Pin_4, GPIO_Pin_6, GPIO_Pin_9 and GPIO_Pin_10 for GPIOF.
- Return values:
-
None
Definition at line 184 of file stm32f30x_gpio.c.
void GPIO_PinLockConfig | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Locks GPIO Pins configuration registers.
The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH.
- Note:
- The configuration of the locked GPIO pins can no longer be modified until the next reset.
- Parameters:
-
GPIOx,: where x can be (A or B or D) to select the GPIO peripheral. GPIO_Pin,: specifies the port bit to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
- Return values:
-
None
Definition at line 264 of file stm32f30x_gpio.c.
void GPIO_StructInit | ( | GPIO_InitTypeDef * | GPIO_InitStruct ) |
Fills each GPIO_InitStruct member with its default value.
- Parameters:
-
GPIO_InitStruct,: pointer to a GPIO_InitTypeDef structure which will be initialized.
- Return values:
-
None
Definition at line 243 of file stm32f30x_gpio.c.
Generated on Tue Jul 12 2022 17:34:45 by
