
RM0008
Contents
Doc ID 13902 Rev 12
5/1096
Clock control register (RCC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Clock configuration register (RCC_CFGR) . . . . . . . . . . . . . . . . . . . . . 131
Clock interrupt register (RCC_CIR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
APB2 peripheral reset register (RCC_APB2RSTR) . . . . . . . . . . . . . . 137
APB1 peripheral reset register (RCC_APB1RSTR) . . . . . . . . . . . . . . 138
AHB Peripheral Clock enable register (RCC_AHBENR) . . . . . . . . . . . 141
APB2 peripheral clock enable register (RCC_APB2ENR) . . . . . . . . . . 142
APB1 peripheral clock enable register (RCC_APB1ENR) . . . . . . . . . . 144
Backup domain control register (RCC_BDCR) . . . . . . . . . . . . . . . . . . 146
Control/status register (RCC_CSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
AHB peripheral clock reset register (RCC_AHBRSTR) . . . . . . . . . . . . 149
Clock configuration register2 (RCC_CFGR2) . . . . . . . . . . . . . . . . . . . 150
RCC register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
General-purpose and alternate-function I/Os (GPIOs and AFIOs) . . 154
GPIO functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
General-purpose I/O (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
External interrupt/wakeup lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Alternate functions (AF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Software remapping of I/O alternate functions . . . . . . . . . . . . . . . . . . 157
GPIO locking mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Output configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Alternate function configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Analog configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
GPIO configurations for device peripherals . . . . . . . . . . . . . . . . . . . . . 161
Port configuration register low (GPIOx_CRL) (x=A..G) . . . . . . . . . . . . 165
Port configuration register high (GPIOx_CRH) (x=A..G) . . . . . . . . . . . 166
Port input data register (GPIOx_IDR) (x=A..G) . . . . . . . . . . . . . . . . . . 166
Port output data register (GPIOx_ODR) (x=A..G) . . . . . . . . . . . . . . . . 167
Port bit set/reset register (GPIOx_BSRR) (x=A..G) . . . . . . . . . . . . . . . 167
Port bit reset register (GPIOx_BRR) (x=A..G) . . . . . . . . . . . . . . . . . . . 168
Port configuration lock register (GPIOx_LCKR) (x=A..G) . . . . . . . . . . 168
Alternate function I/O and debug configuration (AFIO) . . . . . . . . . . . . . 169
Using OSC32_IN/OSC32_OUT pins as GPIO ports PC14/PC15 . . . . 169