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