GD32W51x User Manual
251
1: Toggle the corresponding OCTLy bit
8.5.13.
GPIO secure configuration register (GPIOx_SCFG) (x=A…C)
Address offset: 0x30
Reset value: 0x0000 FFFF
If TZEN = 0 the register is
RAZ/WI, if TZEN = 1, secure code can use this register to
configure GPIO pin secure state, non-secure code can read, but write will ignore.
This register has to be accessed by word (32-bit)/half-word (16-bit)/byte (8-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SCFG15 SCFG14 SCFG13 SCFG12 SCFG11 SCFG10 SCFG9
SCFG8
SCFG7
SCFG6
SCFG5
SCFG4
SCFG3
SCFG2
SCFG1
SCFG0
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
SCFGy(y=0~15)
GPIOx secure configure bit
This bit is set and cleared by softw are.
0: Configure the I/O pin to non-secure
1: Configure the I/O pin to secure.