Expand description

This register is used to lock the configuration of the port bits when a correct write sequence is applied to bit 16 (LCKK). The value of bits [15:0] is used to lock the configuration of the GPIO. During the write sequence, the value of LCKR[15:0] must not change. When the LOCK sequence has been applied on a port bit, the value of this port bit can no longer be modified until the next MCU reset or peripheral reset. A specific write sequence is used to write to the GPIOx_LCKR register. Only word access (32-bit long) is allowed during this locking sequence. Each lock bit freezes a specific configuration register (control and alternate function registers).

Structs

This register is used to lock the configuration of the port bits when a correct write sequence is applied to bit 16 (LCKK). The value of bits [15:0] is used to lock the configuration of the GPIO. During the write sequence, the value of LCKR[15:0] must not change. When the LOCK sequence has been applied on a port bit, the value of this port bit can no longer be modified until the next MCU reset or peripheral reset. A specific write sequence is used to write to the GPIOx_LCKR register. Only word access (32-bit long) is allowed during this locking sequence. Each lock bit freezes a specific configuration register (control and alternate function registers).

Register GPIOB_LCKR reader

Register GPIOB_LCKR writer

Type Definitions

Field LCK0 reader - LCK0

Field LCK0 writer - LCK0

Field LCK1 reader - LCK1

Field LCK1 writer - LCK1

Field LCK2 reader - LCK2

Field LCK2 writer - LCK2

Field LCK3 reader - LCK3

Field LCK3 writer - LCK3

Field LCK4 reader - LCK4

Field LCK4 writer - LCK4

Field LCK5 reader - LCK5

Field LCK5 writer - LCK5

Field LCK6 reader - LCK6

Field LCK6 writer - LCK6

Field LCK7 reader - LCK7

Field LCK7 writer - LCK7

Field LCK8 reader - LCK8

Field LCK8 writer - LCK8

Field LCK9 reader - LCK9

Field LCK9 writer - LCK9

Field LCK10 reader - LCK10

Field LCK10 writer - LCK10

Field LCK11 reader - LCK11

Field LCK11 writer - LCK11

Field LCK12 reader - LCK12

Field LCK12 writer - LCK12

Field LCK13 reader - LCK13

Field LCK13 writer - LCK13

Field LCK14 reader - LCK14

Field LCK14 writer - LCK14

Field LCK15 reader - LCK15

Field LCK15 writer - LCK15

Field LCKK reader - LCKK

Field LCKK writer - LCKK