commit
f54653612c
687
data/registers/tamp_h5.yaml
Normal file
687
data/registers/tamp_h5.yaml
Normal file
@ -0,0 +1,687 @@
|
|||||||
|
block/TAMP:
|
||||||
|
description: Tamper and backup.
|
||||||
|
items:
|
||||||
|
- name: CR1
|
||||||
|
description: TAMP control register 1.
|
||||||
|
byte_offset: 0
|
||||||
|
fieldset: CR1
|
||||||
|
- name: CR2
|
||||||
|
description: TAMP control register 2.
|
||||||
|
byte_offset: 4
|
||||||
|
fieldset: CR2
|
||||||
|
- name: CR3
|
||||||
|
description: TAMP control register 3.
|
||||||
|
byte_offset: 8
|
||||||
|
fieldset: CR3
|
||||||
|
- name: FLTCR
|
||||||
|
description: TAMP filter control register.
|
||||||
|
byte_offset: 12
|
||||||
|
fieldset: FLTCR
|
||||||
|
- name: ATCR1
|
||||||
|
description: TAMP active tamper control register 1.
|
||||||
|
byte_offset: 16
|
||||||
|
fieldset: ATCR1
|
||||||
|
- name: ATSEEDR
|
||||||
|
description: TAMP active tamper seed register.
|
||||||
|
byte_offset: 20
|
||||||
|
- name: ATOR
|
||||||
|
description: TAMP active tamper output register.
|
||||||
|
byte_offset: 24
|
||||||
|
fieldset: ATOR
|
||||||
|
- name: ATCR2
|
||||||
|
description: TAMP active tamper control register 2.
|
||||||
|
byte_offset: 28
|
||||||
|
fieldset: ATCR2
|
||||||
|
- name: SECCFGR
|
||||||
|
description: TAMP secure mode register.
|
||||||
|
byte_offset: 32
|
||||||
|
fieldset: SECCFGR
|
||||||
|
- name: PRIVCFGR
|
||||||
|
description: TAMP privilege mode control register.
|
||||||
|
byte_offset: 36
|
||||||
|
fieldset: PRIVCFGR
|
||||||
|
- name: IER
|
||||||
|
description: TAMP interrupt enable register.
|
||||||
|
byte_offset: 44
|
||||||
|
fieldset: IER
|
||||||
|
- name: SR
|
||||||
|
description: TAMP status register.
|
||||||
|
byte_offset: 48
|
||||||
|
fieldset: SR
|
||||||
|
- name: MISR
|
||||||
|
description: TAMP non-secure masked interrupt status register.
|
||||||
|
byte_offset: 52
|
||||||
|
fieldset: MISR
|
||||||
|
- name: SMISR
|
||||||
|
description: TAMP secure masked interrupt status register.
|
||||||
|
byte_offset: 56
|
||||||
|
fieldset: SMISR
|
||||||
|
- name: SCR
|
||||||
|
description: TAMP status clear register.
|
||||||
|
byte_offset: 60
|
||||||
|
fieldset: SCR
|
||||||
|
- name: COUNT1R
|
||||||
|
description: TAMP monotonic counter 1 register.
|
||||||
|
byte_offset: 64
|
||||||
|
- name: OR
|
||||||
|
description: TAMP option register.
|
||||||
|
byte_offset: 80
|
||||||
|
fieldset: OR
|
||||||
|
- name: RPCFGR
|
||||||
|
description: TAMP resources protection configuration register.
|
||||||
|
byte_offset: 84
|
||||||
|
fieldset: RPCFGR
|
||||||
|
- name: BKPR
|
||||||
|
description: TAMP backup x register. (x=0-31)
|
||||||
|
array:
|
||||||
|
len: 32
|
||||||
|
stride: 4
|
||||||
|
byte_offset: 256
|
||||||
|
fieldset/ATCR1:
|
||||||
|
description: TAMP active tamper control register 1.
|
||||||
|
fields:
|
||||||
|
- name: TAMPAM
|
||||||
|
description: Tamper x active mode. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ATOSEL
|
||||||
|
description: Active tamper shared output x selection The selected output must be available in the package pinout. (x=1-4)
|
||||||
|
bit_offset: 8
|
||||||
|
bit_size: 2
|
||||||
|
array:
|
||||||
|
len: 4
|
||||||
|
stride: 2
|
||||||
|
- name: ATCKSEL
|
||||||
|
description: Active tamper RTC asynchronous prescaler clock selection These bits selects the RTC asynchronous prescaler stage output.The selected clock is CK_ATPRE. fCK_ATPRE = fRTCCLK / 2ATCKSEL when (PREDIV_A+1) = 128. ... These bits can be written only when all active tampers are disabled. The write protection remains for up to 1.5 ck_atpre cycles after all the active tampers are disable.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 3
|
||||||
|
- name: ATPER
|
||||||
|
description: Active tamper output change period The tamper output is changed every CK_ATPER = (2ATPER x CK_ATPRE) cycles. Refer to.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 3
|
||||||
|
- name: ATOSHARE
|
||||||
|
description: Active tamper output sharing TAMP_IN1 is compared with TAMPOUTSEL1 TAMP_IN2 is compared with TAMPOUTSEL2 TAMP_IN3 is compared with TAMPOUTSEL3 TAMP_IN4 is compared with TAMPOUTSEL4 TAMP_IN5 is compared with TAMPOUTSEL5 TAMP_IN6 is compared with TAMPOUTSEL6 TAMP_IN7 is compared with TAMPOUTSEL7 TAMP_IN8 is compared with TAMPOUTSEL8.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
- name: FLTEN
|
||||||
|
description: Active tamper filter enable.
|
||||||
|
bit_offset: 31
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/ATCR2:
|
||||||
|
description: TAMP active tamper control register 2.
|
||||||
|
fields:
|
||||||
|
- name: ATOSEL
|
||||||
|
description: Active tamper shared output x selection The selected output must be available in the package pinout. Bits 9:8 are the mirror of ATOSELx[1:0] in the TAMP_ATCR1, and so can also be read or written through TAMP_ATCR1. (x=1-8)
|
||||||
|
bit_offset: 8
|
||||||
|
bit_size: 3
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 3
|
||||||
|
fieldset/ATOR:
|
||||||
|
description: TAMP active tamper output register.
|
||||||
|
fields:
|
||||||
|
- name: PRNG
|
||||||
|
description: Pseudo-random generator value This field provides the values of the PRNG output. Because of potential inconsistencies due to synchronization delays, PRNG must be read at least twice. The read value is correct if it is equal to previous read value. This field can only be read when the APB is in secure mode.
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 8
|
||||||
|
- name: SEEDF
|
||||||
|
description: Seed running flag This flag is set by hardware when a new seed is written in the TAMP_ATSEEDR. It is cleared by hardware when the PRNG has absorbed this new seed, and by system reset. The TAMP APB cock must not be switched off as long as SEEDF is set.
|
||||||
|
bit_offset: 14
|
||||||
|
bit_size: 1
|
||||||
|
- name: INITS
|
||||||
|
description: Active tamper initialization status This flag is set by hardware when the PRNG has absorbed the first 128-bit seed, meaning that the enabled active tampers are functional. This flag is cleared when the active tampers are disabled.
|
||||||
|
bit_offset: 15
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/CR1:
|
||||||
|
description: TAMP control register 1.
|
||||||
|
fields:
|
||||||
|
- name: TAMPE
|
||||||
|
description: Tamper detection on TAMP_INx enable. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ITAMP1E
|
||||||
|
description: Internal tamper 1 enable.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2E
|
||||||
|
description: Internal tamper 2 enable.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3E
|
||||||
|
description: Internal tamper 3 enable.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4E
|
||||||
|
description: Internal tamper 4 enable.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5E
|
||||||
|
description: Internal tamper 5 enable.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6E
|
||||||
|
description: Internal tamper 6 enable.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7E
|
||||||
|
description: Internal tamper 7 enable.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8E
|
||||||
|
description: Internal tamper 8 enable.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9E
|
||||||
|
description: Internal tamper 9 enable.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11E
|
||||||
|
description: Internal tamper 11 enable.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12E
|
||||||
|
description: Internal tamper 12 enable.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13E
|
||||||
|
description: Internal tamper 13 enable.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15E
|
||||||
|
description: Internal tamper 15 enable.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/CR2:
|
||||||
|
description: TAMP control register 2.
|
||||||
|
fields:
|
||||||
|
- name: TAMPPOM
|
||||||
|
description: Tamper x potential mode. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: TAMPMSK
|
||||||
|
description: Tamper x mask. The tamper x interrupt must not be enabled when TAMPxMSK is set. (x=1-3)
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 3
|
||||||
|
stride: 1
|
||||||
|
- name: BKBLOCK
|
||||||
|
description: Backup registers and device secrets access blocked.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: BKERASE
|
||||||
|
description: Backup registers and device secrets erase Writing ‘1’ to this bit reset the backup registers and device secrets(1). Writing 0 has no effect. This bit is always read as 0.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: TAMPTRG
|
||||||
|
description: Active level for tamper x input If TAMPFLT = 00 Tamper x input rising edge triggers a tamper detection event. If TAMPFLT = 00 Tamper x input falling edge triggers a tamper detection event. (x=1-8)
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
fieldset/CR3:
|
||||||
|
description: TAMP control register 3.
|
||||||
|
fields:
|
||||||
|
- name: ITAMP1POM
|
||||||
|
description: Internal tamper 1 potential mode.
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2POM
|
||||||
|
description: Internal tamper 2 potential mode.
|
||||||
|
bit_offset: 1
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3POM
|
||||||
|
description: Internal tamper 3 potential mode.
|
||||||
|
bit_offset: 2
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4POM
|
||||||
|
description: Internal tamper 4 potential mode.
|
||||||
|
bit_offset: 3
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5POM
|
||||||
|
description: Internal tamper 5 potential mode.
|
||||||
|
bit_offset: 4
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6POM
|
||||||
|
description: Internal tamper 6 potential mode.
|
||||||
|
bit_offset: 5
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7POM
|
||||||
|
description: Internal tamper 7 potential mode.
|
||||||
|
bit_offset: 6
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8POM
|
||||||
|
description: Internal tamper 8 potential mode.
|
||||||
|
bit_offset: 7
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9POM
|
||||||
|
description: Internal tamper 9 potential mode.
|
||||||
|
bit_offset: 8
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11POM
|
||||||
|
description: Internal tamper 11 potential mode.
|
||||||
|
bit_offset: 10
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12POM
|
||||||
|
description: Internal tamper 12 potential mode.
|
||||||
|
bit_offset: 11
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13POM
|
||||||
|
description: Internal tamper 13 potential mode.
|
||||||
|
bit_offset: 12
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15POM
|
||||||
|
description: Internal tamper 15 potential mode.
|
||||||
|
bit_offset: 14
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/FLTCR:
|
||||||
|
description: TAMP filter control register.
|
||||||
|
fields:
|
||||||
|
- name: TAMPFREQ
|
||||||
|
description: Tamper sampling frequency Determines the frequency at which each of the TAMP_INx inputs are sampled.
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 3
|
||||||
|
- name: TAMPFLT
|
||||||
|
description: TAMP_INx filter count These bits determines the number of consecutive samples at the specified level (TAMP*TRG) needed to activate a tamper event. TAMPFLT is valid for each of the TAMP_INx inputs.
|
||||||
|
bit_offset: 3
|
||||||
|
bit_size: 2
|
||||||
|
- name: TAMPPRCH
|
||||||
|
description: TAMP_INx precharge duration These bit determines the duration of time during which the pull-up/is activated before each sample. TAMPPRCH is valid for each of the TAMP_INx inputs.
|
||||||
|
bit_offset: 5
|
||||||
|
bit_size: 2
|
||||||
|
- name: TAMPPUDIS
|
||||||
|
description: TAMP_INx pull-up disable This bit determines if each of the TAMPx pins are precharged before each sample.
|
||||||
|
bit_offset: 7
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/IER:
|
||||||
|
description: TAMP interrupt enable register.
|
||||||
|
fields:
|
||||||
|
- name: TAMPIE
|
||||||
|
description: Tamper x interrupt enable. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ITAMP1IE
|
||||||
|
description: Internal tamper 1 interrupt enable.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2IE
|
||||||
|
description: Internal tamper 2 interrupt enable.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3IE
|
||||||
|
description: Internal tamper 3 interrupt enable.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4IE
|
||||||
|
description: Internal tamper 4 interrupt enable.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5IE
|
||||||
|
description: Internal tamper 5 interrupt enable.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6IE
|
||||||
|
description: Internal tamper 6 interrupt enable.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7IE
|
||||||
|
description: Internal tamper 7 interrupt enable.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8IE
|
||||||
|
description: Internal tamper 8 interrupt enable.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9IE
|
||||||
|
description: Internal tamper 9 interrupt enable.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11IE
|
||||||
|
description: Internal tamper 11 interrupt enable.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12IE
|
||||||
|
description: Internal tamper 12 interrupt enable.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13IE
|
||||||
|
description: Internal tamper 13 interrupt enable.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15IE
|
||||||
|
description: Internal tamper 15 interrupt enable.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/MISR:
|
||||||
|
description: TAMP non-secure masked interrupt status register.
|
||||||
|
fields:
|
||||||
|
- name: TAMPMF
|
||||||
|
description: TAMP1 non-secure interrupt masked flag This flag is set by hardware when the tamper 1 non-secure interrupt is raised.
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ITAMP1MF
|
||||||
|
description: Internal tamper 1 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 1 non-secure interrupt is raised.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2MF
|
||||||
|
description: Internal tamper 2 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 2 non-secure interrupt is raised.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3MF
|
||||||
|
description: Internal tamper 3 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 3 non-secure interrupt is raised.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4MF
|
||||||
|
description: Internal tamper 4 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 4 non-secure interrupt is raised.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5MF
|
||||||
|
description: Internal tamper 5 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 5 non-secure interrupt is raised.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6MF
|
||||||
|
description: Internal tamper 6 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 6 non-secure interrupt is raised.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7MF
|
||||||
|
description: Internal tamper 7 tamper non-secure interrupt masked flag This flag is set by hardware when the internal tamper 7 non-secure interrupt is raised.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8MF
|
||||||
|
description: Internal tamper 8 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 8 non-secure interrupt is raised.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9MF
|
||||||
|
description: internal tamper 9 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 9 non-secure interrupt is raised.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11MF
|
||||||
|
description: internal tamper 11 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 11 non-secure interrupt is raised.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12MF
|
||||||
|
description: internal tamper 12 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 12 non-secure interrupt is raised.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13MF
|
||||||
|
description: internal tamper 13 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 13 non-secure interrupt is raised.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15MF
|
||||||
|
description: internal tamper 15 non-secure interrupt masked flag This flag is set by hardware when the internal tamper 15 non-secure interrupt is raised.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/OR:
|
||||||
|
description: TAMP option register.
|
||||||
|
fields:
|
||||||
|
- name: OUT3_RMP
|
||||||
|
description: TAMP_OUT3 mapping.
|
||||||
|
bit_offset: 1
|
||||||
|
bit_size: 2
|
||||||
|
- name: OUT5_RMP
|
||||||
|
description: TAMP_OUT5 mapping.
|
||||||
|
bit_offset: 3
|
||||||
|
bit_size: 1
|
||||||
|
- name: IN2_RMP
|
||||||
|
description: TAMP_IN2 mapping.
|
||||||
|
bit_offset: 8
|
||||||
|
bit_size: 1
|
||||||
|
- name: IN3_RMP
|
||||||
|
description: TAMP_IN3 mapping.
|
||||||
|
bit_offset: 9
|
||||||
|
bit_size: 1
|
||||||
|
- name: IN4_RMP
|
||||||
|
description: TAMP_IN4 mapping.
|
||||||
|
bit_offset: 10
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/PRIVCFGR:
|
||||||
|
description: TAMP privilege mode control register.
|
||||||
|
fields:
|
||||||
|
- name: CNT1PRIV
|
||||||
|
description: Monotonic counter 1 privilege protection.
|
||||||
|
bit_offset: 15
|
||||||
|
bit_size: 1
|
||||||
|
- name: BKPRWPRIV
|
||||||
|
description: Backup registers zone 1 privilege protection.
|
||||||
|
bit_offset: 29
|
||||||
|
bit_size: 1
|
||||||
|
- name: BKPWPRIV
|
||||||
|
description: Backup registers zone 2 privilege protection.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
- name: TAMPPRIV
|
||||||
|
description: 'Tamper privilege protection (excluding backup registers) Note: Refer to for details on the read protection.'
|
||||||
|
bit_offset: 31
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/RPCFGR:
|
||||||
|
description: TAMP erase configuration register.
|
||||||
|
fields:
|
||||||
|
- name: RPCFG0
|
||||||
|
description: Configurable resource 0 protection.
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/SCR:
|
||||||
|
description: TAMP status clear register.
|
||||||
|
fields:
|
||||||
|
- name: CTAMPF
|
||||||
|
description: Clear TAMPx detection flag. Writing 1 in this bit clears the TAMPxF bit in the TAMP_SR register. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: CITAMP1F
|
||||||
|
description: Clear ITAMP1 detection flag Writing 1 in this bit clears the ITAMP1F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP2F
|
||||||
|
description: Clear ITAMP2 detection flag Writing 1 in this bit clears the ITAMP2F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP3F
|
||||||
|
description: Clear ITAMP3 detection flag Writing 1 in this bit clears the ITAMP3F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP4F
|
||||||
|
description: Clear ITAMP4 detection flag Writing 1 in this bit clears the ITAMP4F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP5F
|
||||||
|
description: Clear ITAMP5 detection flag Writing 1 in this bit clears the ITAMP5F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP6F
|
||||||
|
description: Clear ITAMP6 detection flag Writing 1 in this bit clears the ITAMP6F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP7F
|
||||||
|
description: Clear ITAMP7 detection flag Writing 1 in this bit clears the ITAMP7F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP8F
|
||||||
|
description: Clear ITAMP8 detection flag Writing 1 in this bit clears the ITAMP8F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP9F
|
||||||
|
description: Clear ITAMP9 detection flag Writing 1 in this bit clears the ITAMP9F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP11F
|
||||||
|
description: Clear ITAMP11 detection flag Writing 1 in this bit clears the ITAMP11F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP12F
|
||||||
|
description: Clear ITAMP12 detection flag Writing 1 in this bit clears the ITAMP12F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP13F
|
||||||
|
description: Clear ITAMP13 detection flag Writing 1 in this bit clears the ITAMP13F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: CITAMP15F
|
||||||
|
description: Clear ITAMP15 detection flag Writing 1 in this bit clears the ITAMP15F bit in the TAMP_SR register.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/SECCFGR:
|
||||||
|
description: TAMP secure mode register.
|
||||||
|
fields:
|
||||||
|
- name: BKPRWSEC
|
||||||
|
description: 'Backup registers read/write protection offset Protection zone 1 is defined for backup registers from TAMP_BKP0R to TAMP_BKPxR (x = BKPRWSEC-1, from 0 to 128). if TZEN=1, these backup registers can be read and written only with secure access. If TZEN=0: the protection zone 1 can be read and written with non-secure access. If BKPRWSEC = 0: there is no protection zone 1. If BKPRWPRIV is set, BKPRWSEC[7:0] can be written only in privileged mode.'
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 8
|
||||||
|
- name: CNT1SEC
|
||||||
|
description: Monotonic counter 1 secure protection.
|
||||||
|
bit_offset: 15
|
||||||
|
bit_size: 1
|
||||||
|
- name: BKPWSEC
|
||||||
|
description: 'Backup registers write protection offset Protection zone 2 is defined for backup registers from TAMP_BKPyR (y = BKPRWSEC, from 0 to 128) to TAMP_BKPzR (z = BKPWSEC-1, from 0 to 128, BKPWSEC ≥ BKPRWSEC): if TZEN=1, these backup registers can be written only with secure access. They can be read with secure or non-secure access. Protection zone 3 defined for backup registers from TAMP_BKPtR (t = BKPWSEC, from 0 to 127). They can be read or written with secure or non-secure access. If TZEN=0: the protection zone 2 can be read and written with non-secure access. If BKPWSEC = 0 or if BKPWSEC ≤ BKPRWSEC: there is no protection zone 2. If BKPWPRIV is set, BKPRWSEC[7:0] can be written only in privileged mode.'
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 8
|
||||||
|
- name: BHKLOCK
|
||||||
|
description: Boot hardware key lock This bit can be read and can only be written to 1 by software. It is cleared by hardware together with the backup registers following a tamper detection event or when the readout protection (RDP) is disabled.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
- name: TAMPSEC
|
||||||
|
description: 'Tamper protection (excluding monotonic counters and backup registers) Note: Refer to for details on the read protection.'
|
||||||
|
bit_offset: 31
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/SMISR:
|
||||||
|
description: TAMP secure masked interrupt status register.
|
||||||
|
fields:
|
||||||
|
- name: TAMPMF
|
||||||
|
description: TAMPx secure interrupt masked flag. This flag is set by hardware when the tamper x secure interrupt is raised. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ITAMP1MF
|
||||||
|
description: Internal tamper 1 secure interrupt masked flag This flag is set by hardware when the internal tamper 1 secure interrupt is raised.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2MF
|
||||||
|
description: Internal tamper 2 secure interrupt masked flag This flag is set by hardware when the internal tamper 2 secure interrupt is raised.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3MF
|
||||||
|
description: Internal tamper 3 secure interrupt masked flag This flag is set by hardware when the internal tamper 3 secure interrupt is raised.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4MF
|
||||||
|
description: Internal tamper 4 secure interrupt masked flag This flag is set by hardware when the internal tamper 4 secure interrupt is raised.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5MF
|
||||||
|
description: Internal tamper 5 secure interrupt masked flag This flag is set by hardware when the internal tamper 5 secure interrupt is raised.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6MF
|
||||||
|
description: Internal tamper 6 secure interrupt masked flag This flag is set by hardware when the internal tamper 6 secure interrupt is raised.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7MF
|
||||||
|
description: Internal tamper 7 secure interrupt masked flag This flag is set by hardware when the internal tamper 7 secure interrupt is raised.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8MF
|
||||||
|
description: Internal tamper 8 secure interrupt masked flag This flag is set by hardware when the internal tamper 8 secure interrupt is raised.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9MF
|
||||||
|
description: internal tamper 9 secure interrupt masked flag This flag is set by hardware when the internal tamper 9 secure interrupt is raised.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11MF
|
||||||
|
description: internal tamper 11 secure interrupt masked flag This flag is set by hardware when the internal tamper 11 secure interrupt is raised.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12MF
|
||||||
|
description: internal tamper 12 secure interrupt masked flag This flag is set by hardware when the internal tamper 12 secure interrupt is raised.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13MF
|
||||||
|
description: internal tamper 13 secure interrupt masked flag This flag is set by hardware when the internal tamper 13 secure interrupt is raised.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15MF
|
||||||
|
description: internal tamper 15 secure interrupt masked flag This flag is set by hardware when the internal tamper 15 secure interrupt is raised.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
||||||
|
fieldset/SR:
|
||||||
|
description: TAMP status register.
|
||||||
|
fields:
|
||||||
|
- name: TAMPF
|
||||||
|
description: TAMPx detection flag. This flag is set by hardware when a tamper detection event is detected on the TAMPx input. (x=1-8)
|
||||||
|
bit_offset: 0
|
||||||
|
bit_size: 1
|
||||||
|
array:
|
||||||
|
len: 8
|
||||||
|
stride: 1
|
||||||
|
- name: ITAMP1F
|
||||||
|
description: Internal tamper 1 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 1.
|
||||||
|
bit_offset: 16
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP2F
|
||||||
|
description: Internal tamper 2 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 2.
|
||||||
|
bit_offset: 17
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP3F
|
||||||
|
description: Internal tamper 3 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 3.
|
||||||
|
bit_offset: 18
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP4F
|
||||||
|
description: Internal tamper 4 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 4.
|
||||||
|
bit_offset: 19
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP5F
|
||||||
|
description: Internal tamper 5 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 5.
|
||||||
|
bit_offset: 20
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP6F
|
||||||
|
description: Internal tamper 6 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 6.
|
||||||
|
bit_offset: 21
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP7F
|
||||||
|
description: Internal tamper 7 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 7.
|
||||||
|
bit_offset: 22
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP8F
|
||||||
|
description: Internal tamper 8 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 8.
|
||||||
|
bit_offset: 23
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP9F
|
||||||
|
description: Internal tamper 9 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 9.
|
||||||
|
bit_offset: 24
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP11F
|
||||||
|
description: Internal tamper 11 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 11.
|
||||||
|
bit_offset: 26
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP12F
|
||||||
|
description: Internal tamper 12 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 12.
|
||||||
|
bit_offset: 27
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP13F
|
||||||
|
description: Internal tamper 13 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 13.
|
||||||
|
bit_offset: 28
|
||||||
|
bit_size: 1
|
||||||
|
- name: ITAMP15F
|
||||||
|
description: Internal tamper 15 flag This flag is set by hardware when a tamper detection event is detected on the internal tamper 15.
|
||||||
|
bit_offset: 30
|
||||||
|
bit_size: 1
|
@ -548,6 +548,7 @@ impl PeriMatcher {
|
|||||||
(".*:UCPD:.*", ("ucpd", "v1", "UCPD")),
|
(".*:UCPD:.*", ("ucpd", "v1", "UCPD")),
|
||||||
("STM32G0.*:TAMP:.*", ("tamp", "g0", "TAMP")),
|
("STM32G0.*:TAMP:.*", ("tamp", "g0", "TAMP")),
|
||||||
("STM32G4.*:TAMP:.*", ("tamp", "g4", "TAMP")),
|
("STM32G4.*:TAMP:.*", ("tamp", "g4", "TAMP")),
|
||||||
|
("STM32H5.*:TAMP:.*", ("tamp", "h5", "TAMP")),
|
||||||
("STM32L5.*:TAMP:.*", ("tamp", "l5", "TAMP")),
|
("STM32L5.*:TAMP:.*", ("tamp", "l5", "TAMP")),
|
||||||
("STM32U5.*:TAMP:.*", ("tamp", "u5", "TAMP")),
|
("STM32U5.*:TAMP:.*", ("tamp", "u5", "TAMP")),
|
||||||
("STM32WL.*:TAMP:.*", ("tamp", "wl", "TAMP")),
|
("STM32WL.*:TAMP:.*", ("tamp", "wl", "TAMP")),
|
||||||
|
@ -1,3 +1,88 @@
|
|||||||
transforms:
|
transforms:
|
||||||
- !DeleteEnums
|
- !DeleteEnums
|
||||||
from: ^(BHKLOCK|ERCFG|PRIV|SEC)$
|
from: ^(BHKLOCK|ERCFG|PRIV|SEC)$
|
||||||
|
|
||||||
|
- !DeleteFieldsets
|
||||||
|
from: ^(BKP\d+R|COUNT\dR)$
|
||||||
|
|
||||||
|
- !MakeRegisterArray
|
||||||
|
blocks: ^TAMP$
|
||||||
|
from: ^BKP\d+R$
|
||||||
|
to: BKPR
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: ATCR1
|
||||||
|
from: TAMP\dAM
|
||||||
|
to: TAMPAM
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: ATCR\d
|
||||||
|
from: ATOSEL\d
|
||||||
|
to: ATOSEL
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: CR1
|
||||||
|
from: ^TAMP\d(E|NOER|MSK|TRG)$
|
||||||
|
to: TAMP${1}
|
||||||
|
|
||||||
|
- !RenameFields
|
||||||
|
fieldset: CR2
|
||||||
|
from: TAMP(\d)NOER
|
||||||
|
to: TAMP${1}POM
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: CR2
|
||||||
|
from: ^TAMP\d(POM|MSK|TRG)$
|
||||||
|
to: TAMP${1}
|
||||||
|
|
||||||
|
- !RenameFields
|
||||||
|
fieldset: CR3
|
||||||
|
from: ITAMP(\d+)NOER
|
||||||
|
to: ITAMP${1}POM
|
||||||
|
|
||||||
|
- !RenameRegisters
|
||||||
|
block: TAMP
|
||||||
|
from: ERCFGR
|
||||||
|
to: RPCFGR
|
||||||
|
|
||||||
|
- !Rename
|
||||||
|
from: ERCFGR
|
||||||
|
to: RPCFGR
|
||||||
|
|
||||||
|
- !RenameFields
|
||||||
|
fieldset: RPCFGR
|
||||||
|
from: ERCFG(\d)
|
||||||
|
to: RPCFG${1}
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: IER
|
||||||
|
from: TAMP\dIE
|
||||||
|
to: TAMPIE
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: CR2
|
||||||
|
from: ^TAMP\d(POM|MSK|TRG)$
|
||||||
|
to: TAMP${1}
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: MISR
|
||||||
|
from: ^TAMP\dMF$
|
||||||
|
to: TAMPMF
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: SCR
|
||||||
|
from: ^CTAMP\dF$
|
||||||
|
to: CTAMPF
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: SMISR
|
||||||
|
from: ^TAMP\dMF$
|
||||||
|
to: TAMPMF
|
||||||
|
|
||||||
|
- !MakeFieldArray
|
||||||
|
fieldsets: SR
|
||||||
|
from: ^TAMP\dF$
|
||||||
|
to: TAMPF
|
||||||
|
|
||||||
|
- !DeleteFieldsets
|
||||||
|
from: ATSEEDR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user