RM0351
7.4.13
GPIO register map
The following table gives the GPIO register map and reset values.
Offset
Register
GPIOA_MODER
0x00
Reset value
GPIOB_MODER
0x00
Reset value
GPIOx_MODER
(where x = C..H)
0x00
Reset value
GPIOx_OTYPER
(where x = A..H)
0x04
Reset value
GPIOA_OSPEEDR
0x08
Reset value
GPIOx_OSPEEDR
(where x = B..H)
0x08
Reset value
GPIOA_PUPDR
0x0C
Reset value
GPIOB_PUPDR
0x0C
Reset value
GPIOx_IDR
(where x = A..H)
0x10
Reset value
GPIOx_ODR
(where x = A..H)
0x14
Reset value
Table 33. GPIO register map and reset values
1
0
1
0
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
0
1
0
0
0
DocID024597 Rev 3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
x
x
0
0
General-purpose I/Os (GPIO)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
x
x
x
x
x
x
x
x
x
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
x
x
x
x
x
0
0
0
0
0
271/1693
272
Need help?
Do you have a question about the STM32L4x6 and is the answer not in the manual?
Questions and answers