General-purpose I/Os (GPIO)
8.4.34
GPIOB register map
Offset Register name
GPIOB_MODER
0x0400
Reset value
GPIOB_OTYPER
0x0404
Reset value
GPIOB_OSPEEDR
0x0408
Reset value
GPIOB_PUPDR
0x040C
Reset value
GPIOB_IDR
0x0410
Reset value
GPIOB_ODR
0x0414
Reset value
GPIOB_BSRR
0x0418
Reset value
GPIOB_LCKR
0x041C
Reset value
GPIOB_AFRL
0x0420
Reset value
GPIOB_AFRH
0x0424
Reset value
GPIOB_BRR
0x0428
Reset value
Refer to
338/1306
Table 61. GPIOB register map and reset values
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
AFSEL7[3:0] AFSEL6[3:0] AFSEL5[3:0] AFSEL4[3:0] AFSEL3[3:0] AFSEL2[3:0] AFSEL1[3:0] AFSEL0[3:0]
0
0
0
0
0
0
0
0
AFSEL15[3:0] AFSEL14[3:0] AFSEL13[3:0] AFSEL12[3:0] AFSEL11[3:0] AFSEL10[3:0] AFSEL9[3:0] AFSEL8[3:0]
0
0
0
0
0
0
0
0
Section 2.4
for the register boundary addresses.
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
x
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
RM0461 Rev 5
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
0
0
x
x
x
x
x
x
x
x
x
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
0
0
0
0
0
0
0
0
0
RM0461
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
x
x
x
x
x
x
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
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?
Questions and answers