GD32W51x User Manual
7
8.2. Characteristics .......................................................................................................230
8.3. Function overview..................................................................................................230
8.3.1. GPIO pin configuration..........................................................................................232
8.3.2. External interrupt/event lines..................................................................................233
8.3.3. Alternate functions (AF).........................................................................................233
8.3.4. Additional functions ..............................................................................................233
8.3.5. Input configuration................................................................................................233
8.3.6. Output configuration.............................................................................................233
8.3.7. Analog configuration.............................................................................................234
8.3.8. Alternate function (AF) configuration .......................................................................235
8.3.9. GPIO locking function...........................................................................................235
8.3.10. GPIO single cycle toggle function ...........................................................................236
8.4. TrustZone GPIO security........................................................................................236
8.5. Register definition..................................................................................................237
8.5.1. Port control register (GPIOx_CTL, x=A..C)...............................................................237
8.5.2. Port output mode register (GPIOx_OMODE, x=A..C).................................................239
8.5.3. Port output speed register (GPIOx_OSPD, x=A..C) ...................................................241
8.5.4. Port pull-up/pull-down register (GPIOx_PUD, x=A..C)................................................243
8.5.5. Port input status register (GPIOx_ISTAT, x=A..C)......................................................245
8.5.6. Port output control register (GPIOx_OCTL, x=A..C)...................................................245
8.5.7. Port bit operate register (GPIOx_BOP, x=A..C) .........................................................246
8.5.8. Port configuration lock register (GPIOx_LOCK, x=A..C) .............................................246
8.5.9. Alternate function selected register 0 (GPIOx_AFSEL0, x=A..C)..................................247
8.5.10. Alternate function selected register 1 (GPIOx_AFSEL1, x=A..C)..................................248
8.5.11. Bit clear register (GPIOx_BC, x=A..C).....................................................................250
8.5.12. Port bit toggle register (GPIOx_TG, x=A..C).............................................................250
8.5.13. GPIO secure configuration register (GPIOx_SCFG) (x=A…C).....................................251
9. TrustZone protection controller union (TZPCU)...................................................252
9.1. Overview.................................................................................................................252
9.2. Characteristics.......................................................................................................252
9.3. Function overview..................................................................................................252
9.3.1. Block diagram......................................................................................................252
9.3.2. Illegal access definition.........................................................................................254
9.3.3. TrustZone® security privilege controller (TZSPC)......................................................255
9.3.4. TrustZone® block based memory protection controller (TZBMPC)...............................256
9.3.5. TrustZone® illegal access controller (TZIAC)............................................................256
9.3.6. SPC/GSSA debug................................................................................................257
9.4. TZSPC Register definition .....................................................................................258
9.4.1. TZSPC control register (TZPCU_TZSPC_CTL).........................................................258
9.4.2. TZSPC secure access mode configuration register 0 (TZPCU_TZSPC_SAM_CFG0) .....258
9.4.3. TZSPC secure access mode configuration register 1 (TZPCU_TZSPC_SAM_CFG1) .....261