pwr u5 cleanup

This commit is contained in:
Dario Nieuwenhuis 2023-09-16 01:15:15 +02:00
parent 86fb0cfc2f
commit 05ea13251c

View File

@ -2,82 +2,82 @@ block/PWR:
description: Power control description: Power control
items: items:
- name: CR1 - name: CR1
description: PWR control register 1 description: control register 1
byte_offset: 0 byte_offset: 0
fieldset: CR1 fieldset: CR1
- name: CR2 - name: CR2
description: PWR control register 2 description: control register 2
byte_offset: 4 byte_offset: 4
fieldset: CR2 fieldset: CR2
- name: CR3 - name: CR3
description: PWR control register 3 description: control register 3
byte_offset: 8 byte_offset: 8
fieldset: CR3 fieldset: CR3
- name: VOSR - name: VOSR
description: PWR voltage scaling register description: voltage scaling register
byte_offset: 12 byte_offset: 12
fieldset: VOSR fieldset: VOSR
- name: SVMCR - name: SVMCR
description: PWR supply voltage monitoring control register description: supply voltage monitoring control register
byte_offset: 16 byte_offset: 16
fieldset: SVMCR fieldset: SVMCR
- name: WUCR1 - name: WUCR1
description: PWR wakeup control register 1 description: wakeup control register 1
byte_offset: 20 byte_offset: 20
fieldset: WUCR1 fieldset: WUCR1
- name: WUCR2 - name: WUCR2
description: PWR wakeup control register 2 description: wakeup control register 2
byte_offset: 24 byte_offset: 24
fieldset: WUCR2 fieldset: WUCR2
- name: WUCR3 - name: WUCR3
description: PWR wakeup control register 3 description: wakeup control register 3
byte_offset: 28 byte_offset: 28
fieldset: WUCR3 fieldset: WUCR3
- name: BDCR1 - name: BDCR1
description: PWR Backup domain control register 1 description: Backup domain control register 1
byte_offset: 32 byte_offset: 32
fieldset: BDCR1 fieldset: BDCR1
- name: BDCR2 - name: BDCR2
description: PWR Backup domain control register 2 description: Backup domain control register 2
byte_offset: 36 byte_offset: 36
fieldset: BDCR2 fieldset: BDCR2
- name: DBPR - name: DBPR
description: PWR disable Backup domain register description: disable Backup domain register
byte_offset: 40 byte_offset: 40
fieldset: DBPR fieldset: DBPR
- name: UCPDR - name: UCPDR
description: PWR USB Type-C™ and Power Delivery register description: USB Type-C™ and Power Delivery register
byte_offset: 44 byte_offset: 44
fieldset: UCPDR fieldset: UCPDR
- name: SECCFGR - name: SECCFGR
description: PWR security configuration register description: security configuration register
byte_offset: 48 byte_offset: 48
fieldset: SECCFGR fieldset: SECCFGR
- name: PRIVCFGR - name: PRIVCFGR
description: PWR privilege control register description: privilege control register
byte_offset: 52 byte_offset: 52
fieldset: PRIVCFGR fieldset: PRIVCFGR
- name: SR - name: SR
description: PWR status register description: status register
byte_offset: 56 byte_offset: 56
fieldset: SR fieldset: SR
- name: SVMSR - name: SVMSR
byte_offset: 60 byte_offset: 60
fieldset: SVMSR fieldset: SVMSR
- name: BDSR - name: BDSR
description: PWR Backup domain status register description: Backup domain status register
byte_offset: 64 byte_offset: 64
fieldset: BDSR fieldset: BDSR
- name: WUSR - name: WUSR
description: PWR wakeup status register description: wakeup status register
byte_offset: 68 byte_offset: 68
fieldset: WUSR fieldset: WUSR
- name: WUSCR - name: WUSCR
description: PWR wakeup status clear register description: wakeup status clear register
byte_offset: 72 byte_offset: 72
fieldset: WUSCR fieldset: WUSCR
- name: APCR - name: APCR
description: PWR apply pull configuration register description: apply pull configuration register
byte_offset: 76 byte_offset: 76
fieldset: APCR fieldset: APCR
- name: PUCR - name: PUCR
@ -95,14 +95,14 @@ block/PWR:
byte_offset: 84 byte_offset: 84
fieldset: PCR fieldset: PCR
fieldset/APCR: fieldset/APCR:
description: PWR apply pull configuration register description: apply pull configuration register
fields: fields:
- name: APC - name: APC
description: "Apply pull-up and pull-down configuration\r When this bit is set, the I/O pull-up and pull-down configurations defined in PUCRx and PDCRx are applied. When this bit is cleared, PUCRx and PDCRx are not applied to the I/Os." description: "Apply pull-up and pull-down configuration\r When this bit is set, the I/O pull-up and pull-down configurations defined in PUCRx and PDCRx are applied. When this bit is cleared, PUCRx and PDCRx are not applied to the I/Os."
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
fieldset/BDCR1: fieldset/BDCR1:
description: PWR Backup domain control register 1 description: Backup domain control register 1
fields: fields:
- name: BREN - name: BREN
description: "Backup RAM retention in Standby and VBAT modes\r When this bit is set, the backup RAM content is kept in Standby and VBAT modes.\r If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.\r Note: Backup RAM cannot be preserved in Shutdown mode." description: "Backup RAM retention in Standby and VBAT modes\r When this bit is set, the backup RAM content is kept in Standby and VBAT modes.\r If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.\r Note: Backup RAM cannot be preserved in Shutdown mode."
@ -113,7 +113,7 @@ fieldset/BDCR1:
bit_offset: 4 bit_offset: 4
bit_size: 1 bit_size: 1
fieldset/BDCR2: fieldset/BDCR2:
description: PWR Backup domain control register 2 description: Backup domain control register 2
fields: fields:
- name: VBE - name: VBE
description: VBAT charging enable description: VBAT charging enable
@ -126,7 +126,7 @@ fieldset/BDCR2:
bit_size: 1 bit_size: 1
enum: VBRS enum: VBRS
fieldset/BDSR: fieldset/BDSR:
description: PWR Backup domain status register description: Backup domain status register
fields: fields:
- name: VBATH - name: VBATH
description: Backup domain voltage level monitoring versus high threshold description: Backup domain voltage level monitoring versus high threshold
@ -144,7 +144,7 @@ fieldset/BDSR:
bit_size: 1 bit_size: 1
enum: TEMPH enum: TEMPH
fieldset/CR1: fieldset/CR1:
description: PWR control register 1 description: control register 1
fields: fields:
- name: LPMS - name: LPMS
description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the Deepsleep mode.\r 10x: Standby mode (Standby mode also entered if LPMS=11X in CR1\r with BREN=1 in BDCR1)\r 11x: Shutdown mode if BREN = 0 in BDCR1" description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the Deepsleep mode.\r 10x: Standby mode (Standby mode also entered if LPMS=11X in CR1\r with BREN=1 in BDCR1)\r 11x: Shutdown mode if BREN = 0 in BDCR1"
@ -186,7 +186,7 @@ fieldset/CR1:
bit_size: 1 bit_size: 1
enum: SRAMPD enum: SRAMPD
fieldset/CR2: fieldset/CR2:
description: PWR control register 2 description: control register 2
fields: fields:
- name: SRAM1PDS1 - name: SRAM1PDS1
description: SRAM1 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) description: SRAM1 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)
@ -298,7 +298,7 @@ fieldset/CR2:
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
fieldset/CR3: fieldset/CR3:
description: PWR control register 3 description: control register 3
fields: fields:
- name: REGSEL - name: REGSEL
description: "Regulator selection\r Note: REGSEL is reserved and must be kept at reset value in packages without SMPS." description: "Regulator selection\r Note: REGSEL is reserved and must be kept at reset value in packages without SMPS."
@ -310,7 +310,7 @@ fieldset/CR3:
bit_offset: 2 bit_offset: 2
bit_size: 1 bit_size: 1
fieldset/DBPR: fieldset/DBPR:
description: PWR disable Backup domain register description: disable Backup domain register
fields: fields:
- name: DBP - name: DBP
description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers." description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers."
@ -328,60 +328,28 @@ fieldset/PCR:
len: 16 len: 16
stride: 1 stride: 1
fieldset/PRIVCFGR: fieldset/PRIVCFGR:
description: PWR privilege control register description: privilege control register
fields: fields:
- name: SPRIV - name: SPRIV
description: "PWR secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." description: "secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access."
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
enum: PRIV enum: PRIV
- name: NSPRIV - name: NSPRIV
description: "PWR non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." description: "non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure."
bit_offset: 1 bit_offset: 1
bit_size: 1 bit_size: 1
enum: PRIV enum: PRIV
fieldset/SECCFGR: fieldset/SECCFGR:
description: PWR security configuration register description: security configuration register
fields: fields:
- name: WUP1SEC - name: WUP1SEC
description: WUP1 secure protection description: WUP1 secure protection
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
enum: SEC array:
- name: WUP2SEC len: 8
description: WUP2 secure protection stride: 1
bit_offset: 1
bit_size: 1
enum: SEC
- name: WUP3SEC
description: WUP3 secure protection
bit_offset: 2
bit_size: 1
enum: SEC
- name: WUP4SEC
description: WUP4 secure protection
bit_offset: 3
bit_size: 1
enum: SEC
- name: WUP5SEC
description: WUP5 secure protection
bit_offset: 4
bit_size: 1
enum: SEC
- name: WUP6SEC
description: WUP6 secure protection
bit_offset: 5
bit_size: 1
enum: SEC
- name: WUP7SEC
description: WUP7 secure protection
bit_offset: 6
bit_size: 1
enum: SEC
- name: WUP8SEC
description: WUP8 secure protection
bit_offset: 7
bit_size: 1
enum: SEC enum: SEC
- name: LPMSEC - name: LPMSEC
description: Low-power modes secure protection description: Low-power modes secure protection
@ -404,7 +372,7 @@ fieldset/SECCFGR:
bit_size: 1 bit_size: 1
enum: SEC enum: SEC
fieldset/SR: fieldset/SR:
description: PWR status register description: status register
fields: fields:
- name: CSSF - name: CSSF
description: "Clear Stop and Standby flags\r This bit is protected against non-secure access when LPMSEC=1 in SECCFGR.\r This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1.\r Writing 1 to this bit clears the STOPF and SBF flags." description: "Clear Stop and Standby flags\r This bit is protected against non-secure access when LPMSEC=1 in SECCFGR.\r This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1.\r Writing 1 to this bit clears the STOPF and SBF flags."
@ -419,7 +387,7 @@ fieldset/SR:
bit_offset: 2 bit_offset: 2
bit_size: 1 bit_size: 1
fieldset/SVMCR: fieldset/SVMCR:
description: PWR supply voltage monitoring control register description: supply voltage monitoring control register
fields: fields:
- name: PVDE - name: PVDE
description: Power voltage detector enable description: Power voltage detector enable
@ -496,7 +464,7 @@ fieldset/SVMSR:
bit_offset: 27 bit_offset: 27
bit_size: 1 bit_size: 1
fieldset/UCPDR: fieldset/UCPDR:
description: PWR USB Type-C™ and Power Delivery register description: USB Type-C™ and Power Delivery register
fields: fields:
- name: UCPD_DBDIS - name: UCPD_DBDIS
description: "UCPD dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to handover control to the UCPD (the UCPD must be initialized before doing the disable)." description: "UCPD dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to handover control to the UCPD (the UCPD must be initialized before doing the disable)."
@ -507,7 +475,7 @@ fieldset/UCPDR:
bit_offset: 1 bit_offset: 1
bit_size: 1 bit_size: 1
fieldset/VOSR: fieldset/VOSR:
description: PWR voltage scaling register description: voltage scaling register
fields: fields:
- name: BOOSTRDY - name: BOOSTRDY
description: "EPOD booster ready\r This bit is set to 1 by hardware when the power booster startup time is reached. The system clock frequency can be switched higher than 50 MHz only after this bit is set." description: "EPOD booster ready\r This bit is set to 1 by hardware when the power booster startup time is reached. The system clock frequency can be switched higher than 50 MHz only after this bit is set."
@ -527,85 +495,28 @@ fieldset/VOSR:
bit_offset: 18 bit_offset: 18
bit_size: 1 bit_size: 1
fieldset/WUCR1: fieldset/WUCR1:
description: PWR wakeup control register 1 description: wakeup control register 1
fields: fields:
- name: WUPEN1 - name: WUPEN
description: Wakeup pin WKUP1 enable description: Wakeup pin WKUP1 enable
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
- name: WUPEN2 array:
description: Wakeup pin WKUP2 enable len: 8
bit_offset: 1 stride: 1
bit_size: 1
- name: WUPEN3
description: Wakeup pin WKUP3 enable
bit_offset: 2
bit_size: 1
- name: WUPEN4
description: Wakeup pin WKUP4 enable
bit_offset: 3
bit_size: 1
- name: WUPEN5
description: Wakeup pin WKUP5 enable
bit_offset: 4
bit_size: 1
- name: WUPEN6
description: Wakeup pin WKUP6 enable
bit_offset: 5
bit_size: 1
- name: WUPEN7
description: Wakeup pin WKUP7 enable
bit_offset: 6
bit_size: 1
- name: WUPEN8
description: Wakeup pin WKUP8 enable
bit_offset: 7
bit_size: 1
fieldset/WUCR2: fieldset/WUCR2:
description: PWR wakeup control register 2 description: wakeup control register 2
fields: fields:
- name: WUPP1 - name: WUPP
description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0." description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0."
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
enum: WUPP array:
- name: WUPP2 len: 8
description: "Wakeup pin WKUP2 polarity\r This bit must be configured when WUPEN2 = 0." stride: 1
bit_offset: 1
bit_size: 1
enum: WUPP
- name: WUPP3
description: "Wakeup pin WKUP3 polarity\r This bit must be configured when WUPEN3 = 0."
bit_offset: 2
bit_size: 1
enum: WUPP
- name: WUPP4
description: "Wakeup pin WKUP4 polarity\r This bit must be configured when WUPEN4 = 0."
bit_offset: 3
bit_size: 1
enum: WUPP
- name: WUPP5
description: "Wakeup pin WKUP5 polarity\r This bit must be configured when WUPEN5 = 0."
bit_offset: 4
bit_size: 1
enum: WUPP
- name: WUPP6
description: "Wakeup pin WKUP6 polarity\r This bit must be configured when WUPEN6 = 0."
bit_offset: 5
bit_size: 1
enum: WUPP
- name: WUPP7
description: "Wakeup pin WKUP7 polarity\r This bit must be configured when WUPEN7 = 0."
bit_offset: 6
bit_size: 1
enum: WUPP
- name: WUPP8
description: "Wakeup pin WKUP8 polarity\r This bit must be configured when WUPEN8=0."
bit_offset: 7
bit_size: 1
enum: WUPP enum: WUPP
fieldset/WUCR3: fieldset/WUCR3:
description: PWR wakeup control register 3 description: wakeup control register 3
fields: fields:
- name: WUSEL1 - name: WUSEL1
description: "Wakeup pin WKUP1 selection\r This field must be configured when WUPEN1 = 0." description: "Wakeup pin WKUP1 selection\r This field must be configured when WUPEN1 = 0."
@ -648,7 +559,7 @@ fieldset/WUCR3:
bit_size: 2 bit_size: 2
enum: WUSEL enum: WUSEL
fieldset/WUSCR: fieldset/WUSCR:
description: PWR wakeup status clear register description: wakeup status clear register
fields: fields:
- name: CWUF1 - name: CWUF1
description: "Wakeup flag 1\r Writing 1 to this bit clears the WUF1 flag in WUSR." description: "Wakeup flag 1\r Writing 1 to this bit clears the WUF1 flag in WUSR."
@ -683,7 +594,7 @@ fieldset/WUSCR:
bit_offset: 7 bit_offset: 7
bit_size: 1 bit_size: 1
fieldset/WUSR: fieldset/WUSR:
description: PWR wakeup status register description: wakeup status register
fields: fields:
- name: WUF1 - name: WUF1
description: "Wakeup flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0." description: "Wakeup flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0."
@ -778,36 +689,36 @@ enum/PRIV:
bit_size: 1 bit_size: 1
variants: variants:
- name: Unprivileged - name: Unprivileged
description: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. description: Read and write to non-secure functions can be done by privileged or unprivileged access.
value: 0 value: 0
- name: Privileged - name: Privileged
description: Read and write to PWR non-secure functions can be done by privileged access only. description: Read and write to non-secure functions can be done by privileged access only.
value: 1 value: 1
enum/PVDLS: enum/PVDLS:
bit_size: 3 bit_size: 3
variants: variants:
- name: B_0x0 - name: v20
description: VPVD0 around 2.0 V description: VPVD0 around 2.0 V
value: 0 value: 0
- name: B_0x1 - name: v22
description: VPVD1 around 2.2 V description: VPVD1 around 2.2 V
value: 1 value: 1
- name: B_0x2 - name: v24
description: VPVD2 around 2.4 V description: VPVD2 around 2.4 V
value: 2 value: 2
- name: B_0x3 - name: v25
description: VPVD3 around 2.5 V description: VPVD3 around 2.5 V
value: 3 value: 3
- name: B_0x4 - name: v26
description: VPVD4 around 2.6 V description: VPVD4 around 2.6 V
value: 4 value: 4
- name: B_0x5 - name: v28
description: VPVD5 around 2.8 V description: VPVD5 around 2.8 V
value: 5 value: 5
- name: B_0x6 - name: v29
description: VPVD6 around 2.9 V description: VPVD6 around 2.9 V
value: 6 value: 6
- name: B_0x7 - name: pvd_in
description: External input analog voltage PVD_IN (compared internally to VREFINT) description: External input analog voltage PVD_IN (compared internally to VREFINT)
value: 7 value: 7
enum/PVDO: enum/PVDO:
@ -927,10 +838,10 @@ enum/VOS:
enum/WUPP: enum/WUPP:
bit_size: 1 bit_size: 1
variants: variants:
- name: B_0x0 - name: High
description: Detection on high level (rising edge) description: Detection on high level (rising edge)
value: 0 value: 0
- name: B_0x1 - name: Low
description: Detection on low level (falling edge) description: Detection on low level (falling edge)
value: 1 value: 1
enum/WUSEL: enum/WUSEL: