Functions

Initialization and Configuration. More...

Collaboration diagram for Initialization and Configuration:

Functions

void GPIO_DeInit (GPIO_TypeDef *GPIOx)
 De-initializes the GPIOx peripheral registers to their default reset values. More...
 
void GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct)
 Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. More...
 
void GPIO_PinLockConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Locks GPIO Pins configuration registers. More...
 
void GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct)
 Fills each GPIO_InitStruct member with its default value. More...
 

Detailed Description

Initialization and Configuration.

 ===============================================================================
                 ##### Initialization and Configuration #####
 ===============================================================================  

Function Documentation

void GPIO_DeInit ( GPIO_TypeDef GPIOx)

De-initializes the GPIOx peripheral registers to their default reset values.

Deinitializes the GPIOx peripheral registers to their default reset values.

Note
By default, The GPIO pins are configured in input floating mode (except JTAG pins).
Parameters
GPIOxwhere x can be (A..K) to select the GPIO peripheral for STM32F405xx/407xx and STM32F415xx/417xx devices x can be (A..I) to select the GPIO peripheral for STM32F42xxx/43xxx devices. x can be (A, B, C, D and H) to select the GPIO peripheral for STM32F401xx devices.
Return values
None
Note
By default, The GPIO pins are configured in input floating mode (except JTAG pins).
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
Return values
None

Definition at line 127 of file CMSIS/CM4/DeviceSupport/ST/STM32F4xx/stm32f4xx_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
GPIOxwhere x can be (A..K) to select the GPIO peripheral for STM32F405xx/407xx and STM32F415xx/417xx devices x can be (A..I) to select the GPIO peripheral for STM32F42xxx/43xxx devices. x can be (A, B, C, D and H) to select the GPIO peripheral for STM32F401xx devices.
GPIO_InitStructpointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral.
Return values
None
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
GPIO_InitStructpointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral.
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_InitStructpointer 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 202 of file CMSIS/CM4/DeviceSupport/ST/STM32F4xx/stm32f4xx_gpio.c.

void GPIO_PinLockConfig ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin 
)

Locks GPIO Pins configuration registers.

Locks GPIO Pins configuration registers. The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH.

Note
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.
Parameters
GPIOxwhere x can be (A..K) to select the GPIO peripheral for STM32F405xx/407xx and STM32F415xx/417xx devices x can be (A..I) to select the GPIO peripheral for STM32F42xxx/43xxx devices. x can be (A, B, C, D and H) to select the GPIO peripheral for STM32F401xx devices.
GPIO_Pinspecifies 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
Note
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.
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
GPIO_Pinspecifies 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
Note
The configuration of the locked GPIO pins can no longer be modified until the next reset.
Parameters
GPIOxwhere x can be (A or B or D) to select the GPIO peripheral.
GPIO_Pinspecifies 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 277 of file CMSIS/CM4/DeviceSupport/ST/STM32F4xx/stm32f4xx_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
Parameters
GPIO_InitStructpointer to a GPIO_InitTypeDef structure which will be initialized.
Return values
None

Definition at line 254 of file CMSIS/CM4/DeviceSupport/ST/STM32F4xx/stm32f4xx_gpio.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28