chiptool fmt.

This commit is contained in:
Dario Nieuwenhuis 2023-10-07 00:09:14 +02:00
parent f0f06b4c95
commit 11256dc370
15 changed files with 1848 additions and 1850 deletions

View File

@ -1,4 +1,3 @@
---
block/OPAMP: block/OPAMP:
description: Operational Amplifier description: Operational Amplifier
items: items:
@ -131,28 +130,28 @@ enum/PGA_GAIN:
description: Gain 16 description: Gain 16
value: 4 value: 4
- name: Gain2_VM0 - name: Gain2_VM0
description: "Gain 2, feedback connected to VM0" description: Gain 2, feedback connected to VM0
value: 8 value: 8
- name: Gain4_VM0 - name: Gain4_VM0
description: "Gain 4, feedback connected to VM0" description: Gain 4, feedback connected to VM0
value: 9 value: 9
- name: Gain8_VM0 - name: Gain8_VM0
description: "Gain 8, feedback connected to VM0" description: Gain 8, feedback connected to VM0
value: 10 value: 10
- name: Gain16_VM0 - name: Gain16_VM0
description: "Gain 16, feedback connected to VM0" description: Gain 16, feedback connected to VM0
value: 11 value: 11
- name: Gain2_VM1 - name: Gain2_VM1
description: "Gain 2, feedback connected to VM1" description: Gain 2, feedback connected to VM1
value: 12 value: 12
- name: Gain4_VM1 - name: Gain4_VM1
description: "Gain 4, feedback connected to VM1" description: Gain 4, feedback connected to VM1
value: 13 value: 13
- name: Gain8_VM1 - name: Gain8_VM1
description: "Gain 8, feedback connected to VM1" description: Gain 8, feedback connected to VM1
value: 14 value: 14
- name: Gain16_VM1 - name: Gain16_VM1
description: "Gain 16, feedback connected to VM1" description: Gain 16, feedback connected to VM1
value: 15 value: 15
enum/TSTREF: enum/TSTREF:
bit_size: 1 bit_size: 1

View File

@ -1,4 +1,3 @@
---
block/OPAMP: block/OPAMP:
description: Operational amplifiers description: Operational amplifiers
items: items:
@ -138,7 +137,7 @@ enum/OPAMP_CSR_LOCK:
description: CSR is read-write description: CSR is read-write
value: 0 value: 0
- name: ReadOnly - name: ReadOnly
description: "CSR is read-only, can only be cleared by system reset" description: CSR is read-only, can only be cleared by system reset
value: 1 value: 1
enum/OPAMP_CSR_OPAHSM: enum/OPAMP_CSR_OPAHSM:
bit_size: 1 bit_size: 1
@ -180,58 +179,58 @@ enum/OPAMP_CSR_PGA_GAIN:
description: Gain 64 description: Gain 64
value: 5 value: 5
- name: Gain2_InputVINM0 - name: Gain2_InputVINM0
description: "Gain 2, input/bias connected to VINM0 or inverting gain" description: Gain 2, input/bias connected to VINM0 or inverting gain
value: 8 value: 8
- name: Gain4_InputVINM0 - name: Gain4_InputVINM0
description: "Gain 4, input/bias connected to VINM0 or inverting gain" description: Gain 4, input/bias connected to VINM0 or inverting gain
value: 9 value: 9
- name: Gain8_InputVINM0 - name: Gain8_InputVINM0
description: "Gain 8, input/bias connected to VINM0 or inverting gain" description: Gain 8, input/bias connected to VINM0 or inverting gain
value: 10 value: 10
- name: Gain16_InputVINM0 - name: Gain16_InputVINM0
description: "Gain 16, input/bias connected to VINM0 or inverting gain" description: Gain 16, input/bias connected to VINM0 or inverting gain
value: 11 value: 11
- name: Gain32_InputVINM0 - name: Gain32_InputVINM0
description: "Gain 32, input/bias connected to VINM0 or inverting gain" description: Gain 32, input/bias connected to VINM0 or inverting gain
value: 12 value: 12
- name: Gain64_InputVINM0 - name: Gain64_InputVINM0
description: "Gain 64, input/bias connected to VINM0 or inverting gain" description: Gain 64, input/bias connected to VINM0 or inverting gain
value: 13 value: 13
- name: Gain2_FilteringVINM0 - name: Gain2_FilteringVINM0
description: "Gain 2, with filtering on VINM0" description: Gain 2, with filtering on VINM0
value: 16 value: 16
- name: Gain4_FilteringVINM0 - name: Gain4_FilteringVINM0
description: "Gain 4, with filtering on VINM0" description: Gain 4, with filtering on VINM0
value: 17 value: 17
- name: Gain8_FilteringVINM0 - name: Gain8_FilteringVINM0
description: "Gain 8, with filtering on VINM0" description: Gain 8, with filtering on VINM0
value: 18 value: 18
- name: Gain16_FilteringVINM0 - name: Gain16_FilteringVINM0
description: "Gain 16, with filtering on VINM0" description: Gain 16, with filtering on VINM0
value: 19 value: 19
- name: Gain32_FilteringVINM0 - name: Gain32_FilteringVINM0
description: "Gain 32, with filtering on VINM0" description: Gain 32, with filtering on VINM0
value: 20 value: 20
- name: Gain64_FilteringVINM0 - name: Gain64_FilteringVINM0
description: "Gain 64, with filtering on VINM0" description: Gain 64, with filtering on VINM0
value: 21 value: 21
- name: Gain2_InputVINM0FilteringVINM1 - name: Gain2_InputVINM0FilteringVINM1
description: "Gain 2, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 2, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 24 value: 24
- name: Gain4_InputVINM0FilteringVINM1 - name: Gain4_InputVINM0FilteringVINM1
description: "Gain 4, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 4, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 25 value: 25
- name: Gain8_InputVINM0FilteringVINM1 - name: Gain8_InputVINM0FilteringVINM1
description: "Gain 8, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 8, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 26 value: 26
- name: Gain16_InputVINM0FilteringVINM1 - name: Gain16_InputVINM0FilteringVINM1
description: "Gain 16, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 16, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 27 value: 27
- name: Gain32_InputVINM0FilteringVINM1 - name: Gain32_InputVINM0FilteringVINM1
description: "Gain 32, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 32, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 28 value: 28
- name: Gain64_InputVINM0FilteringVINM1 - name: Gain64_InputVINM0FilteringVINM1
description: "Gain 64, input/bias connected to VINM0 with filtering on VINM1 or inverting gain" description: Gain 64, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
value: 29 value: 29
enum/OPAMP_CSR_USERTRIM: enum/OPAMP_CSR_USERTRIM:
bit_size: 1 bit_size: 1
@ -279,7 +278,7 @@ enum/OPAMP_TCMR_LOCK:
description: TCMR is read-write description: TCMR is read-write
value: 0 value: 0
- name: ReadOnly - name: ReadOnly
description: "TCMR is read-only, can only be cleared by system reset" description: TCMR is read-only, can only be cleared by system reset
value: 1 value: 1
enum/OPAMP_TCMR_VPS_SEL: enum/OPAMP_TCMR_VPS_SEL:
bit_size: 2 bit_size: 2

View File

@ -808,12 +808,12 @@ enum/LSEDRV:
- name: Low - name: Low
description: Low driving capability description: Low driving capability
value: 0 value: 0
- name: MediumLow
description: Medium low driving capability
value: 2
- name: MediumHigh - name: MediumHigh
description: Medium high driving capability description: Medium high driving capability
value: 1 value: 1
- name: MediumLow
description: Medium low driving capability
value: 2
- name: High - name: High
description: High driving capability description: High driving capability
value: 3 value: 3

View File

@ -959,12 +959,12 @@ enum/LSEDRV:
- name: Low - name: Low
description: Low driving capability description: Low driving capability
value: 0 value: 0
- name: MediumLow
description: Medium low driving capability
value: 2
- name: MediumHigh - name: MediumHigh
description: Medium high driving capability description: Medium high driving capability
value: 1 value: 1
- name: MediumLow
description: Medium low driving capability
value: 2
- name: High - name: High
description: High driving capability description: High driving capability
value: 3 value: 3

View File

@ -935,12 +935,12 @@ enum/LSEDRV:
- name: Low - name: Low
description: Low driving capability description: Low driving capability
value: 0 value: 0
- name: MediumLow
description: Medium low driving capability
value: 2
- name: MediumHigh - name: MediumHigh
description: Medium high driving capability description: Medium high driving capability
value: 1 value: 1
- name: MediumLow
description: Medium low driving capability
value: 2
- name: High - name: High
description: High driving capability description: High driving capability
value: 3 value: 3

View File

@ -1799,12 +1799,12 @@ enum/LSEDRV:
- name: Low - name: Low
description: Low driving capability description: Low driving capability
value: 0 value: 0
- name: MediumLow
description: Medium low driving capability
value: 2
- name: MediumHigh - name: MediumHigh
description: Medium high driving capability description: Medium high driving capability
value: 1 value: 1
- name: MediumLow
description: Medium low driving capability
value: 2
- name: High - name: High
description: High driving capability description: High driving capability
value: 3 value: 3

View File

@ -3714,12 +3714,12 @@ enum/LSEDRV:
- name: Low - name: Low
description: Low driving capability description: Low driving capability
value: 0 value: 0
- name: MediumLow
description: Medium low driving capability
value: 2
- name: MediumHigh - name: MediumHigh
description: Medium high driving capability description: Medium high driving capability
value: 1 value: 1
- name: MediumLow
description: Medium low driving capability
value: 2
- name: High - name: High
description: High driving capability description: High driving capability
value: 3 value: 3

View File

@ -1685,6 +1685,21 @@ enum/HPRE:
- name: Div512 - name: Div512
description: hclk = SYSCLK divided by 256 description: hclk = SYSCLK divided by 256
value: 15 value: 15
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3
enum/PPRE: enum/PPRE:
bit_size: 3 bit_size: 3
variants: variants:
@ -1718,18 +1733,3 @@ enum/RTCSEL:
- name: HSE - name: HSE
description: HSE oscillator clock divided by 32 selected description: HSE oscillator clock divided by 32 selected
value: 3 value: 3
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3

View File

@ -1486,6 +1486,21 @@ enum/HPRE:
- name: Div512 - name: Div512
description: hclk = SYSCLK divided by 256 description: hclk = SYSCLK divided by 256
value: 15 value: 15
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3
enum/MCOPRE: enum/MCOPRE:
bit_size: 3 bit_size: 3
variants: variants:
@ -1570,18 +1585,3 @@ enum/RTCSEL:
- name: HSE - name: HSE
description: HSE oscillator clock divided by 32 selected description: HSE oscillator clock divided by 32 selected
value: 3 value: 3
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3

View File

@ -1108,6 +1108,21 @@ enum/HPRE:
- name: Div512 - name: Div512
description: hclk = SYSCLK divided by 256 description: hclk = SYSCLK divided by 256
value: 15 value: 15
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3
enum/MCOPRE: enum/MCOPRE:
bit_size: 3 bit_size: 3
variants: variants:
@ -1192,18 +1207,3 @@ enum/RTCSEL:
- name: HSE - name: HSE
description: HSE oscillator clock divided by 32 selected description: HSE oscillator clock divided by 32 selected
value: 3 value: 3
enum/LSEDRV:
bit_size: 2
variants:
- name: Low
description: Low driving capability
value: 0
- name: MediumLow
description: Medium low driving capability
value: 1
- name: MediumHigh
description: Medium high driving capability
value: 2
- name: High
description: High driving capability
value: 3

View File

@ -116,19 +116,19 @@ fieldset/FLTCR:
description: TAMP filter control register description: TAMP filter control register
fields: fields:
- name: TAMPFREQ - name: TAMPFREQ
description: "Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled." description: Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled.
bit_offset: 0 bit_offset: 0
bit_size: 3 bit_size: 3
- name: TAMPFLT - name: TAMPFLT
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 3 bit_offset: 3
bit_size: 2 bit_size: 2
- name: TAMPPRCH - name: TAMPPRCH
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 5 bit_offset: 5
bit_size: 2 bit_size: 2
- name: TAMPPUDIS - name: TAMPPUDIS
description: "INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample." description: INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample.
bit_offset: 7 bit_offset: 7
bit_size: 1 bit_size: 1
fieldset/HWCFGR1: fieldset/HWCFGR1:

View File

@ -90,19 +90,19 @@ fieldset/FLTCR:
description: TAMP filter control register description: TAMP filter control register
fields: fields:
- name: TAMPFREQ - name: TAMPFREQ
description: "Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled." description: Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled.
bit_offset: 0 bit_offset: 0
bit_size: 3 bit_size: 3
- name: TAMPFLT - name: TAMPFLT
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 3 bit_offset: 3
bit_size: 2 bit_size: 2
- name: TAMPPRCH - name: TAMPPRCH
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 5 bit_offset: 5
bit_size: 2 bit_size: 2
- name: TAMPPUDIS - name: TAMPPUDIS
description: "INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample." description: INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample.
bit_offset: 7 bit_offset: 7
bit_size: 1 bit_size: 1
fieldset/IER: fieldset/IER:

View File

@ -53,7 +53,7 @@ block/TAMP:
access: Read access: Read
fieldset: SR fieldset: SR
- name: MISR - name: MISR
description: " TAMP masked interrupt status register " description: TAMP masked interrupt status register
byte_offset: 52 byte_offset: 52
access: Read access: Read
fieldset: MISR fieldset: MISR
@ -269,7 +269,7 @@ fieldset/IER:
len: 8 len: 8
stride: 1 stride: 1
fieldset/MISR: fieldset/MISR:
description: " TAMP masked interrupt status register " description: TAMP masked interrupt status register
fields: fields:
- name: TAMPMF - name: TAMPMF
description: Tamper X interrupt masked flag description: Tamper X interrupt masked flag

View File

@ -2,71 +2,71 @@ block/TAMP:
description: Tamper and backup registers description: Tamper and backup registers
items: items:
- name: CR1 - name: CR1
description: "TAMP control register 1" description: TAMP control register 1
byte_offset: 0 byte_offset: 0
fieldset: CR1 fieldset: CR1
- name: CR2 - name: CR2
description: "TAMP control register 2" description: TAMP control register 2
byte_offset: 4 byte_offset: 4
fieldset: CR2 fieldset: CR2
- name: CR3 - name: CR3
description: "TAMP control register 3" description: TAMP control register 3
byte_offset: 8 byte_offset: 8
fieldset: CR3 fieldset: CR3
- name: FLTCR - name: FLTCR
description: "TAMP filter control register" description: TAMP filter control register
byte_offset: 12 byte_offset: 12
fieldset: FLTCR fieldset: FLTCR
- name: ATCR1 - name: ATCR1
description: "TAMP active tamper control register 1" description: TAMP active tamper control register 1
byte_offset: 16 byte_offset: 16
fieldset: ATCR1 fieldset: ATCR1
- name: ATSEEDR - name: ATSEEDR
description: "TAMP active tamper seed register" description: TAMP active tamper seed register
byte_offset: 20 byte_offset: 20
fieldset: ATSEEDR fieldset: ATSEEDR
- name: ATOR - name: ATOR
description: "TAMP active tamper output register" description: TAMP active tamper output register
byte_offset: 24 byte_offset: 24
fieldset: ATOR fieldset: ATOR
- name: ATCR2 - name: ATCR2
description: "TAMP active tamper control register 2" description: TAMP active tamper control register 2
byte_offset: 28 byte_offset: 28
fieldset: ATCR2 fieldset: ATCR2
- name: SECCFGR - name: SECCFGR
description: "TAMP secure mode register" description: TAMP secure mode register
byte_offset: 32 byte_offset: 32
fieldset: SECCFGR fieldset: SECCFGR
- name: PRIVCR - name: PRIVCR
description: "TAMP privilege mode control register" description: TAMP privilege mode control register
byte_offset: 36 byte_offset: 36
fieldset: PRIVCR fieldset: PRIVCR
- name: IER - name: IER
description: "TAMP interrupt enable register" description: TAMP interrupt enable register
byte_offset: 44 byte_offset: 44
fieldset: IER fieldset: IER
- name: SR - name: SR
description: "TAMP status register" description: TAMP status register
byte_offset: 48 byte_offset: 48
fieldset: SR fieldset: SR
- name: MISR - name: MISR
description: "TAMP non-secure masked interrupt status register" description: TAMP non-secure masked interrupt status register
byte_offset: 52 byte_offset: 52
fieldset: MISR fieldset: MISR
- name: SMISR - name: SMISR
description: "TAMP secure masked interrupt status register" description: TAMP secure masked interrupt status register
byte_offset: 56 byte_offset: 56
fieldset: SMISR fieldset: SMISR
- name: SCR - name: SCR
description: "TAMP status clear register" description: TAMP status clear register
byte_offset: 60 byte_offset: 60
fieldset: SCR fieldset: SCR
- name: COUNTR - name: COUNTR
description: "TAMP monotonic counter 1 register" description: TAMP monotonic counter 1 register
byte_offset: 64 byte_offset: 64
fieldset: COUNTR fieldset: COUNTR
- name: ERCFGR - name: ERCFGR
description: "TAMP erase configuration register" description: TAMP erase configuration register
byte_offset: 84 byte_offset: 84
fieldset: ERCFGR fieldset: ERCFGR
- name: BKPR - name: BKPR
@ -77,7 +77,7 @@ block/TAMP:
byte_offset: 256 byte_offset: 256
fieldset: BKPR fieldset: BKPR
fieldset/ATCR1: fieldset/ATCR1:
description: "TAMP active tamper control register 1" description: TAMP active tamper control register 1
fields: fields:
- name: TAMPAM - name: TAMPAM
description: Tamper X active mode description: Tamper X active mode
@ -87,23 +87,23 @@ fieldset/ATCR1:
len: 8 len: 8
stride: 1 stride: 1
- name: ATOSEL - name: ATOSEL
description: "Active tamper shared output X selection. The selected output must be available in the package pinout" description: Active tamper shared output X selection. The selected output must be available in the package pinout
bit_offset: 8 bit_offset: 8
bit_size: 2 bit_size: 2
array: array:
len: 4 len: 4
stride: 2 stride: 2
- name: ATCKSEL - 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." 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_offset: 16
bit_size: 3 bit_size: 3
enum: ATCKSEL enum: ATCKSEL
- name: ATPER - name: ATPER
description: "Active tamper output change period. The tamper output is changed every CK_ATPER = (2ATPER x CK_ATPRE) cycles. Refer to ." 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_offset: 24
bit_size: 3 bit_size: 3
- name: ATOSHARE - name: ATOSHARE
description: "Active tamper output sharing. IN1 is compared with TAMPOUTSEL1. IN2 is compared with TAMPOUTSEL2. IN3 is compared with TAMPOUTSEL3. IN4 is compared with TAMPOUTSEL4. IN5 is compared with TAMPOUTSEL5. IN6 is compared with TAMPOUTSEL6. IN7 is compared with TAMPOUTSEL7. IN8 is compared with TAMPOUTSEL8" description: Active tamper output sharing. IN1 is compared with TAMPOUTSEL1. IN2 is compared with TAMPOUTSEL2. IN3 is compared with TAMPOUTSEL3. IN4 is compared with TAMPOUTSEL4. IN5 is compared with TAMPOUTSEL5. IN6 is compared with TAMPOUTSEL6. IN7 is compared with TAMPOUTSEL7. IN8 is compared with TAMPOUTSEL8
bit_offset: 30 bit_offset: 30
bit_size: 1 bit_size: 1
- name: FLTEN - name: FLTEN
@ -111,53 +111,53 @@ fieldset/ATCR1:
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
fieldset/ATCR2: fieldset/ATCR2:
description: "TAMP active tamper control register 2" description: TAMP active tamper control register 2
fields: fields:
- name: ATOSEL - 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 ATOSEL1[1:0] in the ATCR1, and so can also be read or. written through ATCR1." description: Active tamper shared output X selection. The selected output must be available in the package pinout. Bits 9:8 are the mirror of ATOSEL1[1:0] in the ATCR1, and so can also be read or. written through ATCR1.
bit_offset: 8 bit_offset: 8
bit_size: 3 bit_size: 3
array: array:
len: 8 len: 8
stride: 3 stride: 3
fieldset/ATOR: fieldset/ATOR:
description: "TAMP active tamper output register" description: TAMP active tamper output register
fields: fields:
- name: PRNG - 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." 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_offset: 0
bit_size: 8 bit_size: 8
- name: SEEDF - name: SEEDF
description: "Seed running flag. This flag is set by hardware when a new seed is written in the 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." description: Seed running flag. This flag is set by hardware when a new seed is written in the 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_offset: 14
bit_size: 1 bit_size: 1
- name: INITS - 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." 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_offset: 15
bit_size: 1 bit_size: 1
fieldset/ATSEEDR: fieldset/ATSEEDR:
description: "TAMP active tamper seed register" description: TAMP active tamper seed register
fields: fields:
- name: SEED - name: SEED
description: "Pseudo-random generator seed value. This register must be written four times with 32-bit values to provide the 128-bit seed to the PRNG. Writing to this register automatically sends the seed value to the PRNG." description: Pseudo-random generator seed value. This register must be written four times with 32-bit values to provide the 128-bit seed to the PRNG. Writing to this register automatically sends the seed value to the PRNG.
bit_offset: 0 bit_offset: 0
bit_size: 32 bit_size: 32
fieldset/BKPR: fieldset/BKPR:
description: TAMP backup register description: TAMP backup register
fields: fields:
- name: BKP - name: BKP
description: "The application can write or read data to and from these registers. In the default (ERASE) configuration this register is reset on a tamper detection event. It is forced to reset value as long as there is at least one internal or external tamper flag being set. This register is also reset when the readout protection (RDP) is disabled." description: The application can write or read data to and from these registers. In the default (ERASE) configuration this register is reset on a tamper detection event. It is forced to reset value as long as there is at least one internal or external tamper flag being set. This register is also reset when the readout protection (RDP) is disabled.
bit_offset: 0 bit_offset: 0
bit_size: 32 bit_size: 32
fieldset/COUNTR: fieldset/COUNTR:
description: "TAMP monotonic counter 1 register" description: TAMP monotonic counter 1 register
fields: fields:
- name: COUNT - name: COUNT
description: This register is read-only only and is incremented by one when a write access is done to this register. This register cannot roll-over and is frozen when reaching the maximum value. description: This register is read-only only and is incremented by one when a write access is done to this register. This register cannot roll-over and is frozen when reaching the maximum value.
bit_offset: 0 bit_offset: 0
bit_size: 32 bit_size: 32
fieldset/CR1: fieldset/CR1:
description: "TAMP control register 1 " description: TAMP control register 1
fields: fields:
- name: TAMPE - name: TAMPE
description: Tamper detection on INx enable description: Tamper detection on INx enable
@ -174,7 +174,7 @@ fieldset/CR1:
len: 13 len: 13
stride: 1 stride: 1
fieldset/CR2: fieldset/CR2:
description: "TAMP control register 2" description: TAMP control register 2
fields: fields:
- name: TAMPNOER - name: TAMPNOER
description: Tamper X no erase description: Tamper X no erase
@ -207,7 +207,7 @@ fieldset/CR2:
stride: 1 stride: 1
enum: TAMPTRG enum: TAMPTRG
fieldset/CR3: fieldset/CR3:
description: "TAMP control register 3" description: TAMP control register 3
fields: fields:
- name: ITAMPNOER - name: ITAMPNOER
description: Internal Tamper X no erase description: Internal Tamper X no erase
@ -217,7 +217,7 @@ fieldset/CR3:
len: 13 len: 13
stride: 1 stride: 1
fieldset/ERCFGR: fieldset/ERCFGR:
description: "TAMP erase configuration register" description: TAMP erase configuration register
fields: fields:
- name: ERCFG0 - name: ERCFG0
description: Configurable device secrets configuration description: Configurable device secrets configuration
@ -225,29 +225,29 @@ fieldset/ERCFGR:
bit_size: 1 bit_size: 1
enum: ERCFG enum: ERCFG
fieldset/FLTCR: fieldset/FLTCR:
description: "TAMP filter control register" description: TAMP filter control register
fields: fields:
- name: TAMPFREQ - name: TAMPFREQ
description: "Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled." description: Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled.
bit_offset: 0 bit_offset: 0
bit_size: 3 bit_size: 3
enum: TAMPFREQ enum: TAMPFREQ
- name: TAMPFLT - name: TAMPFLT
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 3 bit_offset: 3
bit_size: 2 bit_size: 2
enum: TAMPFLT enum: TAMPFLT
- name: TAMPPRCH - name: TAMPPRCH
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 5 bit_offset: 5
bit_size: 2 bit_size: 2
enum: TAMPPRCH enum: TAMPPRCH
- name: TAMPPUDIS - name: TAMPPUDIS
description: "INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample." description: INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample.
bit_offset: 7 bit_offset: 7
bit_size: 1 bit_size: 1
fieldset/IER: fieldset/IER:
description: "TAMP interrupt enable register" description: TAMP interrupt enable register
fields: fields:
- name: TAMPIE - name: TAMPIE
description: Tamper X interrupt enable description: Tamper X interrupt enable
@ -264,24 +264,24 @@ fieldset/IER:
len: 13 len: 13
stride: 1 stride: 1
fieldset/MISR: fieldset/MISR:
description: "TAMP non-secure masked interrupt status register" description: TAMP non-secure masked interrupt status register
fields: fields:
- name: TAMPMF - name: TAMPMF
description: "TAMPx non-secure interrupt masked flag. This flag is set by hardware when the tamper X non-secure interrupt is raised." description: TAMPx non-secure interrupt masked flag. This flag is set by hardware when the tamper X non-secure interrupt is raised.
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
array: array:
len: 8 len: 8
stride: 1 stride: 1
- name: ITAMPMF - name: ITAMPMF
description: "Internal tamper X non-secure interrupt masked flag. This flag is set by hardware when the internal tamper X non-secure interrupt is raised." description: Internal tamper X non-secure interrupt masked flag. This flag is set by hardware when the internal tamper X non-secure interrupt is raised.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
array: array:
len: 13 len: 13
stride: 1 stride: 1
fieldset/PRIVCR: fieldset/PRIVCR:
description: "TAMP privilege mode control register " description: TAMP privilege mode control register
fields: fields:
- name: CNT1PRIV - name: CNT1PRIV
description: Monotonic counter 1 privilege protection description: Monotonic counter 1 privilege protection
@ -299,29 +299,29 @@ fieldset/PRIVCR:
bit_size: 1 bit_size: 1
enum: PRIV enum: PRIV
- name: TAMPPRIV - name: TAMPPRIV
description: "Tamper privilege protection (excluding backup registers). Note: Refer to for details on the read protection." description: 'Tamper privilege protection (excluding backup registers). Note: Refer to for details on the read protection.'
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
enum: PRIV enum: PRIV
fieldset/SCR: fieldset/SCR:
description: "TAMP status clear register" description: TAMP status clear register
fields: fields:
- name: CTAMPF - name: CTAMPF
description: "Clear TAMPx detection flag. Writing 1 in this bit clears the TAMPxF bit in the SR register." description: Clear TAMPx detection flag. Writing 1 in this bit clears the TAMPxF bit in the SR register.
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
array: array:
len: 8 len: 8
stride: 1 stride: 1
- name: CITAMPF - name: CITAMPF
description: "Clear ITAMPx detection flag. Writing 1 in this bit clears the ITAMPxF bit in the SR register." description: Clear ITAMPx detection flag. Writing 1 in this bit clears the ITAMPxF bit in the SR register.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
array: array:
len: 13 len: 13
stride: 1 stride: 1
fieldset/SECCFGR: fieldset/SECCFGR:
description: "TAMP secure mode register" description: TAMP secure mode register
fields: fields:
- name: BKPRWSEC - name: BKPRWSEC
description: "Backup registers read/write protection offset. Protection zone 1 is defined for backup registers from BKP0R to 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:\tthe 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." description: "Backup registers read/write protection offset. Protection zone 1 is defined for backup registers from BKP0R to 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:\tthe 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."
@ -337,44 +337,44 @@ fieldset/SECCFGR:
bit_offset: 16 bit_offset: 16
bit_size: 8 bit_size: 8
- name: BHKLOCK - 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." 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_offset: 30
bit_size: 1 bit_size: 1
enum: BHKLOCK enum: BHKLOCK
- name: TAMPSEC - name: TAMPSEC
description: "Tamper protection (excluding monotonic counters and backup registers). Note: Refer to for details on the read protection." description: 'Tamper protection (excluding monotonic counters and backup registers). Note: Refer to for details on the read protection.'
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
enum: SEC enum: SEC
fieldset/SMISR: fieldset/SMISR:
description: "TAMP secure masked interrupt status register" description: TAMP secure masked interrupt status register
fields: fields:
- name: TAMPMF - name: TAMPMF
description: "TAMPx secure interrupt masked flag. This flag is set by hardware when the tamper X secure interrupt is raised." description: TAMPx secure interrupt masked flag. This flag is set by hardware when the tamper X secure interrupt is raised.
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
array: array:
len: 8 len: 8
stride: 1 stride: 1
- name: ITAMPMF - name: ITAMPMF
description: "Internal tamper X secure interrupt masked flag. This flag is set by hardware when the internal tamper X secure interrupt is raised." description: Internal tamper X secure interrupt masked flag. This flag is set by hardware when the internal tamper X secure interrupt is raised.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
array: array:
len: 13 len: 13
stride: 1 stride: 1
fieldset/SR: fieldset/SR:
description: "TAMP status register" description: TAMP status register
fields: fields:
- name: TAMPF - name: TAMPF
description: "TAMPx detection flag. This flag is set by hardware when a tamper detection event is detected on the TAMPx input." description: TAMPx detection flag. This flag is set by hardware when a tamper detection event is detected on the TAMPx input.
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
array: array:
len: 8 len: 8
stride: 1 stride: 1
- name: ITAMPF - name: ITAMPF
description: "Internal tamper X flag. This flag is set by hardware when a tamper detection event is detected on the internal tamper X." description: Internal tamper X flag. This flag is set by hardware when a tamper detection event is detected on the internal tamper X.
bit_offset: 16 bit_offset: 16
bit_size: 1 bit_size: 1
array: array:
@ -413,6 +413,24 @@ enum/ERCFG:
- name: Protected - name: Protected
description: Configurable device secrets are is included in the device secrets protected by TAMP peripheral description: Configurable device secrets are is included in the device secrets protected by TAMP peripheral
value: 1 value: 1
enum/PRIV:
bit_size: 1
variants:
- name: Unprivileged
description: Can be read/written with privileged or unprivileged access.
value: 0
- name: Privileged
description: Can be read/written only with privileged access.
value: 1
enum/SEC:
bit_size: 1
variants:
- name: NonSecure
description: Can be written when the APB access is secure or non-secure.
value: 0
- name: Secure
description: Can be written only when the APB access is secure.
value: 1
enum/TAMPFLT: enum/TAMPFLT:
bit_size: 2 bit_size: 2
variants: variants:
@ -470,30 +488,12 @@ enum/TAMPPRCH:
- name: Cycles8 - name: Cycles8
description: 8 RTCCLK cycles description: 8 RTCCLK cycles
value: 3 value: 3
enum/PRIV:
bit_size: 1
variants:
- name: Unprivileged
description: Can be read/written with privileged or unprivileged access.
value: 0
- name: Privileged
description: Can be read/written only with privileged access.
value: 1
enum/SEC:
bit_size: 1
variants:
- name: NonSecure
description: Can be written when the APB access is secure or non-secure.
value: 0
- name: Secure
description: Can be written only when the APB access is secure.
value: 1
enum/TAMPTRG: enum/TAMPTRG:
bit_size: 1 bit_size: 1
variants: variants:
- name: FilteredLowOrUnfilteredHigh - name: FilteredLowOrUnfilteredHigh
description: "If TAMPFLT 00 Tamper 2 input staying low triggers a tamper detection event. " description: If TAMPFLT 00 Tamper 2 input staying low triggers a tamper detection event.
value: 0 value: 0
- name: FilteredHighOrUnfilteredLow - name: FilteredHighOrUnfilteredLow
description: "If TAMPFLT 00 Tamper 2 input staying high triggers a tamper detection event. " description: If TAMPFLT 00 Tamper 2 input staying high triggers a tamper detection event.
value: 1 value: 1

View File

@ -124,22 +124,22 @@ fieldset/FLTCR:
description: TAMP filter control register description: TAMP filter control register
fields: fields:
- name: TAMPFREQ - name: TAMPFREQ
description: "Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled." description: Tamper sampling frequency. Determines the frequency at which each of the INx inputs are sampled.
bit_offset: 0 bit_offset: 0
bit_size: 3 bit_size: 3
enum: TAMPFREQ enum: TAMPFREQ
- name: TAMPFLT - name: TAMPFLT
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 3 bit_offset: 3
bit_size: 2 bit_size: 2
enum: TAMPFLT enum: TAMPFLT
- name: TAMPPRCH - name: TAMPPRCH
description: "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 INx inputs." description: 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 INx inputs.
bit_offset: 5 bit_offset: 5
bit_size: 2 bit_size: 2
enum: TAMPPRCH enum: TAMPPRCH
- name: TAMPPUDIS - name: TAMPPUDIS
description: "INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample." description: INx pull-up disable. This bit determines if each of the TAMPx pins are precharged before each sample.
bit_offset: 7 bit_offset: 7
bit_size: 1 bit_size: 1
fieldset/IER: fieldset/IER:
@ -220,16 +220,16 @@ enum/TAMPFLT:
bit_size: 2 bit_size: 2
variants: variants:
- name: NoFilter - name: NoFilter
description: 'Tamper event is activated on edge of TAMP_INx input transitions to the active level (no internal pull-up on TAMP_INx input)"' description: Tamper event is activated on edge of TAMP_INx input transitions to the active level (no internal pull-up on TAMP_INx input)"
value: 0 value: 0
- name: Filter2 - name: Filter2
description: 'Tamper event is activated after 2 consecutive samples at the active level"' description: Tamper event is activated after 2 consecutive samples at the active level"
value: 1 value: 1
- name: Filter4 - name: Filter4
description: 'Tamper event is activated after 4 consecutive samples at the active level"' description: Tamper event is activated after 4 consecutive samples at the active level"
value: 2 value: 2
- name: Filter8 - name: Filter8
description: 'Tamper event is activated after 8 consecutive samples at the active level"' description: Tamper event is activated after 8 consecutive samples at the active level"
value: 3 value: 3
enum/TAMPFREQ: enum/TAMPFREQ:
bit_size: 3 bit_size: 3