EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 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
Loading...
UM1581
General-purpose I/Os (GPIO)
DocID023800 Rev 1
235/584
__IO uint32_t GPIO_TypeDef::AFR[2]
GPIO alternate function low register, Address offset: 0x20-0x24
__IO uint16_t GPIO_TypeDef::BRR
GPIO bit reset register, Address offset: 0x28
uint16_t GPIO_TypeDef::RESERVED3
Reserved, 0x2A
12.1.2 GPIO_InitTypeDef
GPIO_InitTypeDef is defined in the stm32f30x_gpio.h
Data Fields
uint32_t GPIO_Pin
GPIOMode_TypeDef GPIO_Mode
GPIOSpeed_TypeDef GPIO_Speed
GPIOOType_TypeDef GPIO_OType
GPIOPuPd_TypeDef GPIO_PuPd
Field Documentation
uint32_t GPIO_InitTypeDef::GPIO_Pin
Specifies the GPIO pins to be configured. This parameter can be any value of
GPIO_pins_define
GPIOMode_TypeDef GPIO_InitTypeDef::GPIO_Mode
Specifies the operating mode for the selected pins. This parameter can be a
value of GPIOMode_TypeDef
GPIOSpeed_TypeDef GPIO_InitTypeDef::GPIO_Speed
Specifies the speed for the selected pins. This parameter can be a value of
GPIOSpeed_TypeDef
GPIOOType_TypeDef GPIO_InitTypeDef::GPIO_OType
Specifies the operating output type for the selected pins. This parameter can be
a value of GPIOOType_TypeDef
GPIOPuPd_TypeDef GPIO_InitTypeDef::GPIO_PuPd
Specifies the operating Pull-up/Pull down for the selected pins. This parameter
can be a value of GPIOPuPd_TypeDef
12.2 GPIO Firmware driver API description
The following section lists the various functions of the GPIO library.
12.2.1 How to use this driver
1. Enable the GPIO AHB clock using RCC_AHBPeriphClockCmd()
2. Configure the GPIO pin(s) using GPIO_Init() Four possible configuration are available
for each pin:

Table of Contents

Related product manuals