Functions
Collaboration diagram for GPIO_Exported_Functions:

Functions

void GPIO_AFIODeInit (void)
 Deinitializes the Alternate Functions (remap, event control and EXTI configuration) registers to their default reset values. More...
 
void GPIO_DeInit (GPIO_TypeDef *GPIOx)
 De-initializes the GPIOx peripheral registers to their default reset values. More...
 
void GPIO_ETH_MediaInterfaceConfig (uint32_t GPIO_ETH_MediaInterface)
 Selects the Ethernet media interface. More...
 
void GPIO_EventOutputCmd (FunctionalState NewState)
 Enables or disables the Event Output. More...
 
void GPIO_EventOutputConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource)
 Selects the GPIO pin used as Event output. More...
 
void GPIO_EXTILineConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource)
 Selects the GPIO pin used as EXTI Line. 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_PinRemapConfig (uint32_t GPIO_Remap, FunctionalState NewState)
 Changes the mapping of the specified pin. More...
 
uint16_t GPIO_ReadInputData (GPIO_TypeDef *GPIOx)
 Reads the specified GPIO input data port. More...
 
uint8_t GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Reads the specified input port pin. More...
 
uint16_t GPIO_ReadOutputData (GPIO_TypeDef *GPIOx)
 Reads the specified GPIO output data port. More...
 
uint8_t GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Reads the specified output data port bit. More...
 
void GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Clears the selected data port bits. More...
 
void GPIO_SetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
 Sets the selected data port bits. More...
 
void GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct)
 Fills each GPIO_InitStruct member with its default value. More...
 
void GPIO_Write (GPIO_TypeDef *GPIOx, uint16_t PortVal)
 Writes data to the specified GPIO data port. More...
 
void GPIO_WriteBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal)
 Sets or clears the selected data port bit. More...
 

Detailed Description

Function Documentation

void GPIO_AFIODeInit ( void  )

Deinitializes the Alternate Functions (remap, event control and EXTI configuration) registers to their default reset values.

Parameters
None
Return values
None

Definition at line 159 of file stm32f10x_gpio.c.

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
NoneDe-initializes the GPIOx peripheral registers to their default reset values.
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
Return values
None

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

void GPIO_ETH_MediaInterfaceConfig ( uint32_t  GPIO_ETH_MediaInterface)

Selects the Ethernet media interface.

Note
This function applies only to STM32 Connectivity line devices.
Parameters
GPIO_ETH_MediaInterfacespecifies the Media Interface mode. This parameter can be one of the following values:
  • GPIO_ETH_MediaInterface_MII: MII mode
  • GPIO_ETH_MediaInterface_RMII: RMII mode
Return values
None

Definition at line 630 of file stm32f10x_gpio.c.

void GPIO_EventOutputCmd ( FunctionalState  NewState)

Enables or disables the Event Output.

Parameters
NewStatenew state of the Event output. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 483 of file stm32f10x_gpio.c.

void GPIO_EventOutputConfig ( uint8_t  GPIO_PortSource,
uint8_t  GPIO_PinSource 
)

Selects the GPIO pin used as Event output.

Parameters
GPIO_PortSourceselects the GPIO port to be used as source for Event output. This parameter can be GPIO_PortSourceGPIOx where x can be (A..E).
GPIO_PinSourcespecifies the pin for the Event output. This parameter can be GPIO_PinSourcex where x can be (0..15).
Return values
None

Definition at line 462 of file stm32f10x_gpio.c.

void GPIO_EXTILineConfig ( uint8_t  GPIO_PortSource,
uint8_t  GPIO_PinSource 
)

Selects the GPIO pin used as EXTI Line.

Parameters
GPIO_PortSourceselects the GPIO port to be used as source for EXTI lines. This parameter can be GPIO_PortSourceGPIOx where x can be (A..G).
GPIO_PinSourcespecifies the EXTI line to be configured. This parameter can be GPIO_PinSourcex where x can be (0..15).
Return values
None

Definition at line 609 of file stm32f10x_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
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_InitStructpointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral.
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
Parameters
GPIOxwhere x can be (A..G) 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_PinRemapConfig ( uint32_t  GPIO_Remap,
FunctionalState  NewState 
)

Changes the mapping of the specified pin.

Parameters
GPIO_Remapselects the pin to remap. This parameter can be one of the following values:
  • GPIO_Remap_SPI1 : SPI1 Alternate Function mapping
  • GPIO_Remap_I2C1 : I2C1 Alternate Function mapping
  • GPIO_Remap_USART1 : USART1 Alternate Function mapping
  • GPIO_Remap_USART2 : USART2 Alternate Function mapping
  • GPIO_PartialRemap_USART3 : USART3 Partial Alternate Function mapping
  • GPIO_FullRemap_USART3 : USART3 Full Alternate Function mapping
  • GPIO_PartialRemap_TIM1 : TIM1 Partial Alternate Function mapping
  • GPIO_FullRemap_TIM1 : TIM1 Full Alternate Function mapping
  • GPIO_PartialRemap1_TIM2 : TIM2 Partial1 Alternate Function mapping
  • GPIO_PartialRemap2_TIM2 : TIM2 Partial2 Alternate Function mapping
  • GPIO_FullRemap_TIM2 : TIM2 Full Alternate Function mapping
  • GPIO_PartialRemap_TIM3 : TIM3 Partial Alternate Function mapping
  • GPIO_FullRemap_TIM3 : TIM3 Full Alternate Function mapping
  • GPIO_Remap_TIM4 : TIM4 Alternate Function mapping
  • GPIO_Remap1_CAN1 : CAN1 Alternate Function mapping
  • GPIO_Remap2_CAN1 : CAN1 Alternate Function mapping
  • GPIO_Remap_PD01 : PD01 Alternate Function mapping
  • GPIO_Remap_TIM5CH4_LSI : LSI connected to TIM5 Channel4 input capture for calibration
  • GPIO_Remap_ADC1_ETRGINJ : ADC1 External Trigger Injected Conversion remapping
  • GPIO_Remap_ADC1_ETRGREG : ADC1 External Trigger Regular Conversion remapping
  • GPIO_Remap_ADC2_ETRGINJ : ADC2 External Trigger Injected Conversion remapping
  • GPIO_Remap_ADC2_ETRGREG : ADC2 External Trigger Regular Conversion remapping
  • GPIO_Remap_ETH : Ethernet remapping (only for Connectivity line devices)
  • GPIO_Remap_CAN2 : CAN2 remapping (only for Connectivity line devices)
  • GPIO_Remap_SWJ_NoJTRST : Full SWJ Enabled (JTAG-DP + SW-DP) but without JTRST
  • GPIO_Remap_SWJ_JTAGDisable : JTAG-DP Disabled and SW-DP Enabled
  • GPIO_Remap_SWJ_Disable : Full SWJ Disabled (JTAG-DP + SW-DP)
  • GPIO_Remap_SPI3 : SPI3/I2S3 Alternate Function mapping (only for Connectivity line devices) When the SPI3/I2S3 is remapped using this function, the SWJ is configured to Full SWJ Enabled (JTAG-DP + SW-DP) but without JTRST.
  • GPIO_Remap_TIM2ITR1_PTP_SOF : Ethernet PTP output or USB OTG SOF (Start of Frame) connected to TIM2 Internal Trigger 1 for calibration (only for Connectivity line devices) If the GPIO_Remap_TIM2ITR1_PTP_SOF is enabled the TIM2 ITR1 is connected to Ethernet PTP output. When Reset TIM2 ITR1 is connected to USB OTG SOF output.
  • GPIO_Remap_PTP_PPS : Ethernet MAC PPS_PTS output on PB05 (only for Connectivity line devices)
  • GPIO_Remap_TIM15 : TIM15 Alternate Function mapping (only for Value line devices)
  • GPIO_Remap_TIM16 : TIM16 Alternate Function mapping (only for Value line devices)
  • GPIO_Remap_TIM17 : TIM17 Alternate Function mapping (only for Value line devices)
  • GPIO_Remap_CEC : CEC Alternate Function mapping (only for Value line devices)
  • GPIO_Remap_TIM1_DMA : TIM1 DMA requests mapping (only for Value line devices)
  • GPIO_Remap_TIM9 : TIM9 Alternate Function mapping (only for XL-density devices)
  • GPIO_Remap_TIM10 : TIM10 Alternate Function mapping (only for XL-density devices)
  • GPIO_Remap_TIM11 : TIM11 Alternate Function mapping (only for XL-density devices)
  • GPIO_Remap_TIM13 : TIM13 Alternate Function mapping (only for High density Value line and XL-density devices)
  • GPIO_Remap_TIM14 : TIM14 Alternate Function mapping (only for High density Value line and XL-density devices)
  • GPIO_Remap_FSMC_NADV : FSMC_NADV Alternate Function mapping (only for High density Value line and XL-density devices)
  • GPIO_Remap_TIM67_DAC_DMA : TIM6/TIM7 and DAC DMA requests remapping (only for High density Value line devices)
  • GPIO_Remap_TIM12 : TIM12 Alternate Function mapping (only for High density Value line devices)
  • GPIO_Remap_MISC : Miscellaneous Remap (DMA2 Channel5 Position and DAC Trigger remapping, only for High density Value line devices)
NewStatenew state of the port pin remapping. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 549 of file stm32f10x_gpio.c.

uint16_t GPIO_ReadInputData ( GPIO_TypeDef GPIOx)

Reads the specified GPIO input data port.

Reads the specified input port pin.

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
GPIOinput data port value.
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
Return values
GPIOinput data port value.
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
Return values
Theinput port pin value.
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
Return values
GPIOinput data port value.

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

uint8_t GPIO_ReadInputDataBit ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin 
)

Reads the specified input port pin.

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 read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theinput port pin value.
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 read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theinput port pin value.
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_Pinspecifies the port bit to read.
Note
This parameter can be GPIO_Pin_x where x can be : (0..15) for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6, 9..10) for GPIOF.
Return values
Theinput port pin value.
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_Pinspecifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theinput port pin value.

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

uint16_t GPIO_ReadOutputData ( GPIO_TypeDef GPIOx)

Reads the specified GPIO output data port.

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
GPIOoutput data port value.
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
Return values
GPIOoutput data port value.
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
Return values
GPIOoutput data port value.
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
Return values
GPIOoutput data port value.

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

uint8_t GPIO_ReadOutputDataBit ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin 
)

Reads the specified output data port bit.

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 read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theoutput port pin value.
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 read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theoutput port pin value.
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_PinSpecifies the port bit to read.
Note
This parameter can be GPIO_Pin_x where x can be : (0..15) for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6, 9..10) for GPIOF.
Return values
Theoutput port pin value.
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_Pinspecifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..15).
Return values
Theoutput port pin value.

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

void GPIO_ResetBits ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin 
)

Clears the selected data port bits.

Note
This functions 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.
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 bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
Return values
None
Note
This functions 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.
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
GPIO_Pinspecifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_Pinspecifies the port bits to be written.
Note
This parameter can be GPIO_Pin_x where x can be : (0..15) for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6, 9..10) for GPIOF.
Return values
None
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_Pinspecifies the port bits 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 433 of file CMSIS/CM4/DeviceSupport/ST/STM32F4xx/stm32f4xx_gpio.c.

void GPIO_SetBits ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin 
)

Sets the selected data port bits.

Note
This functions 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.
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 bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
Return values
None
Note
This functions 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.
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
GPIO_Pinspecifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_Pinspecifies the port bits to be written.
Note
This parameter can be GPIO_Pin_x where x can be : (0..15) for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6, 9..10) for GPIOF.
Return values
None
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_Pinspecifies the port bits 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 412 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
Parameters
GPIO_InitStruct: pointer 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.

void GPIO_Write ( GPIO_TypeDef GPIOx,
uint16_t  PortVal 
)

Writes data to the specified GPIO data port.

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.
PortValspecifies the value to be written to the port output data register.
Return values
None
Parameters
GPIOxwhere x can be (A..I) to select the GPIO peripheral for STM32F40xx/41xx and STM32F427x/437x devices.
PortValspecifies the value to be written to the port output data register.
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
PortValspecifies the value to be written to the port output data register.
Return values
None
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
PortValspecifies the value to be written to the port output data register.
Return values
None

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

void GPIO_WriteBit ( GPIO_TypeDef GPIOx,
uint16_t  GPIO_Pin,
BitAction  BitVal 
)

Sets or clears the selected data port bit.

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 written. This parameter can be one of GPIO_Pin_x where x can be (0..15).
BitValspecifies the value to be written to the selected bit. This parameter can be one of the BitAction enum values:
  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values
None
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 written. This parameter can be one of GPIO_Pin_x where x can be (0..15).
BitValspecifies the value to be written to the selected bit. This parameter can be one of the BitAction enum values:
  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values
None
Parameters
GPIOxwhere x can be (A, B, C, D, E or F) to select the GPIO peripheral.
GPIO_Pinspecifies the port bit to be written.
Note
This parameter can be GPIO_Pin_x where x can be : (0..15) for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6, 9..10) for GPIOF.
Parameters
BitValspecifies the value to be written to the selected bit. This parameter can be one of the BitAction enumeration values:
  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values
None
Parameters
GPIOxwhere x can be (A..G) to select the GPIO peripheral.
GPIO_Pinspecifies the port bit to be written. This parameter can be one of GPIO_Pin_x where x can be (0..15).
BitValspecifies the value to be written to the selected bit. This parameter can be one of the BitAction enum values:
  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values
None

Definition at line 455 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:29