General-purpose I/Os (GPIO)
12 General-purpose I/Os (GPIO)
12.1 GPIO Firmware driver registers structures
12.1.1 GPIO_TypeDef
GPIO_TypeDef is defined in the stm32f30x.h
Data Fields
__IO uint32_t MODER
__IO uint16_t OTYPER
uint16_t RESERVED0
__IO uint32_t OSPEEDR
__IO uint32_t PUPDR
__IO uint16_t IDR
uint16_t RESERVED1
__IO uint16_t ODR
uint16_t RESERVED2
__IO uint32_t BSRR
__IO uint32_t LCKR
__IO uint32_t AFR
__IO uint16_t BRR
uint16_t RESERVED3
Field Documentation
__IO uint32_t GPIO_TypeDef::MODER
GPIO port mode register, Address offset: 0x00
__IO uint16_t GPIO_TypeDef::OTYPER
GPIO port output type register, Address offset: 0x04
uint16_t GPIO_TypeDef::RESERVED0
Reserved, 0x06
__IO uint32_t GPIO_TypeDef::OSPEEDR
GPIO port output speed register, Address offset: 0x08
__IO uint32_t GPIO_TypeDef::PUPDR
GPIO port pull-up/pull-down register, Address offset: 0x0C
__IO uint16_t GPIO_TypeDef::IDR
GPIO port input data register, Address offset: 0x10
uint16_t GPIO_TypeDef::RESERVED1
Reserved, 0x12
__IO uint16_t GPIO_TypeDef::ODR
GPIO port output data register, Address offset: 0x14
uint16_t GPIO_TypeDef::RESERVED2
Reserved, 0x16
__IO uint32_t GPIO_TypeDef::BSRR
GPIO port bit set/reset registerBSRR, Address offset: 0x18
__IO uint32_t GPIO_TypeDef::LCKR
GPIO port configuration lock register, Address offset: 0x1C