diff --git a/data/extra/family/STM32WB.yaml b/data/extra/family/STM32WB.yaml index a72291a..38a6f55 100644 --- a/data/extra/family/STM32WB.yaml +++ b/data/extra/family/STM32WB.yaml @@ -2,3 +2,6 @@ peripherals: VREFINTCAL: address: 0x1FFF75AA block: vrefintcal_v1/VREFINTCAL + FLASH: + address: 0x58004000 + block: flash_wb55/FLASH diff --git a/data/registers/flash_wb55.yaml b/data/registers/flash_wb55.yaml new file mode 100644 index 0000000..60cc8a2 --- /dev/null +++ b/data/registers/flash_wb55.yaml @@ -0,0 +1,559 @@ +--- +block/FLASH: + description: Flash + items: + - byte_offset: 0 + description: Access control register + fieldset: ACR + name: ACR + - access: Write + byte_offset: 8 + description: Flash key register + fieldset: KEYR + name: KEYR + - access: Write + byte_offset: 12 + description: Option byte key register + fieldset: OPTKEYR + name: OPTKEYR + - byte_offset: 16 + description: Status register + fieldset: SR + name: SR + - byte_offset: 20 + description: Flash control register + fieldset: CR + name: CR + - byte_offset: 24 + description: Flash ECC register + fieldset: ECCR + name: ECCR + - byte_offset: 32 + description: Flash option register + fieldset: OPTR + name: OPTR + - byte_offset: 36 + description: Flash Bank 1 PCROP Start address zone A register + fieldset: PCROP1ASR + name: PCROP1ASR + - byte_offset: 40 + description: Flash Bank 1 PCROP End address zone A register + fieldset: PCROP1AER + name: PCROP1AER + - byte_offset: 44 + description: Flash Bank 1 WRP area A address register + fieldset: WRP1AR + name: WRP1AR + - byte_offset: 48 + description: Flash Bank 1 WRP area B address register + fieldset: WRP1BR + name: WRP1BR + - byte_offset: 52 + description: Flash Bank 1 PCROP Start address area B register + fieldset: PCROP1BSR + name: PCROP1BSR + - byte_offset: 56 + description: Flash Bank 1 PCROP End address area B register + fieldset: PCROP1BER + name: PCROP1BER + - byte_offset: 60 + description: IPCC mailbox data buffer address register + fieldset: IPCCBR + name: IPCCBR + - byte_offset: 92 + description: CPU2 cortex M0 access control register + fieldset: C2ACR + name: C2ACR + - byte_offset: 96 + description: CPU2 cortex M0 status register + fieldset: C2SR + name: C2SR + - byte_offset: 100 + description: CPU2 cortex M0 control register + fieldset: C2CR + name: C2CR + - byte_offset: 128 + description: Secure flash start address register + fieldset: SFR + name: SFR + - byte_offset: 132 + description: Secure SRAM2 start address and cortex M0 reset vector register + fieldset: SRRVR + name: SRRVR +fieldset/ACR: + description: Access control register + fields: + - bit_offset: 0 + bit_size: 3 + description: Latency + name: LATENCY + - bit_offset: 8 + bit_size: 1 + description: Prefetch enable + name: PRFTEN + - bit_offset: 9 + bit_size: 1 + description: Instruction cache enable + name: ICEN + - bit_offset: 10 + bit_size: 1 + description: Data cache enable + name: DCEN + - bit_offset: 11 + bit_size: 1 + description: Instruction cache reset + name: ICRST + - bit_offset: 12 + bit_size: 1 + description: Data cache reset + name: DCRST + - bit_offset: 15 + bit_size: 1 + description: CPU1 CortexM4 program erase suspend request + name: PES + - bit_offset: 16 + bit_size: 1 + description: Flash User area empty + name: EMPTY +fieldset/C2ACR: + description: CPU2 cortex M0 access control register + fields: + - bit_offset: 8 + bit_size: 1 + description: CPU2 cortex M0 prefetch enable + name: PRFTEN + - bit_offset: 9 + bit_size: 1 + description: CPU2 cortex M0 instruction cache enable + name: ICEN + - bit_offset: 11 + bit_size: 1 + description: CPU2 cortex M0 instruction cache reset + name: ICRST + - bit_offset: 15 + bit_size: 1 + description: CPU2 cortex M0 program erase suspend request + name: PES +fieldset/C2CR: + description: CPU2 cortex M0 control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Programming + name: PG + - bit_offset: 1 + bit_size: 1 + description: Page erase + name: PER + - bit_offset: 2 + bit_size: 1 + description: Masse erase + name: MER + - bit_offset: 3 + bit_size: 8 + description: Page Number selection + name: PNB + - bit_offset: 16 + bit_size: 1 + description: Start + name: STRT + - bit_offset: 18 + bit_size: 1 + description: Fast programming + name: FSTPG + - bit_offset: 24 + bit_size: 1 + description: End of operation interrupt enable + name: EOPIE + - bit_offset: 25 + bit_size: 1 + description: Error interrupt enable + name: ERRIE + - bit_offset: 26 + bit_size: 1 + description: PCROP read error interrupt enable + name: RDERRIE +fieldset/C2SR: + description: CPU2 cortex M0 status register + fields: + - bit_offset: 0 + bit_size: 1 + description: End of operation + name: EOP + - bit_offset: 1 + bit_size: 1 + description: Operation error + name: OPERR + - bit_offset: 3 + bit_size: 1 + description: Programming error + name: PROGERR + - bit_offset: 4 + bit_size: 1 + description: write protection error + name: WRPERR + - bit_offset: 5 + bit_size: 1 + description: Programming alignment error + name: PGAERR + - bit_offset: 6 + bit_size: 1 + description: Size error + name: SIZERR + - bit_offset: 7 + bit_size: 1 + description: Programming sequence error + name: PGSERR + - bit_offset: 8 + bit_size: 1 + description: Fast programming data miss error + name: MISSERR + - bit_offset: 9 + bit_size: 1 + description: Fast programming error + name: FASTERR + - bit_offset: 14 + bit_size: 1 + description: PCROP read error + name: RDERR + - bit_offset: 16 + bit_size: 1 + description: Busy + name: BSY + - bit_offset: 18 + bit_size: 1 + description: Programming or erase configuration busy + name: CFGBSY + - bit_offset: 19 + bit_size: 1 + description: Programming or erase operation suspended + name: PESD +fieldset/CR: + description: Flash control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Programming + name: PG + - bit_offset: 1 + bit_size: 1 + description: Page erase + name: PER + - bit_offset: 2 + bit_size: 1 + description: This bit triggers the mass erase (all user pages) when set + name: MER + - bit_offset: 3 + bit_size: 8 + description: Page number selection + name: PNB + - bit_offset: 16 + bit_size: 1 + description: Start + name: STRT + - bit_offset: 17 + bit_size: 1 + description: Options modification start + name: OPTSTRT + - bit_offset: 18 + bit_size: 1 + description: Fast programming + name: FSTPG + - bit_offset: 24 + bit_size: 1 + description: End of operation interrupt enable + name: EOPIE + - bit_offset: 25 + bit_size: 1 + description: Error interrupt enable + name: ERRIE + - bit_offset: 26 + bit_size: 1 + description: PCROP read error interrupt enable + name: RDERRIE + - bit_offset: 27 + bit_size: 1 + description: Force the option byte loading + name: OBL_LAUNCH + - bit_offset: 30 + bit_size: 1 + description: Options Lock + name: OPTLOCK + - bit_offset: 31 + bit_size: 1 + description: FLASH_CR Lock + name: LOCK +fieldset/ECCR: + description: Flash ECC register + fields: + - bit_offset: 0 + bit_size: 17 + description: ECC fail address + name: ADDR_ECC + - bit_offset: 20 + bit_size: 1 + description: System Flash ECC fail + name: SYSF_ECC + - bit_offset: 24 + bit_size: 1 + description: ECC correction interrupt enable + name: ECCCIE + - bit_offset: 26 + bit_size: 3 + description: CPU identification + name: CPUID + - bit_offset: 30 + bit_size: 1 + description: ECC correction + name: ECCC + - bit_offset: 31 + bit_size: 1 + description: ECC detection + name: ECCD +fieldset/IPCCBR: + description: IPCC mailbox data buffer address register + fields: + - bit_offset: 0 + bit_size: 14 + description: PCC mailbox data buffer base address + name: IPCCDBA +fieldset/KEYR: + description: Flash key register + fields: + - bit_offset: 0 + bit_size: 32 + description: KEYR + name: KEYR +fieldset/OPTKEYR: + description: Option byte key register + fields: + - bit_offset: 0 + bit_size: 32 + description: Option byte key + name: OPTKEYR +fieldset/OPTR: + description: Flash option register + fields: + - bit_offset: 0 + bit_size: 8 + description: Read protection level + name: RDP + - bit_offset: 8 + bit_size: 1 + description: Security enabled + name: ESE + - bit_offset: 9 + bit_size: 3 + description: BOR reset Level + name: BOR_LEV + - bit_offset: 12 + bit_size: 1 + description: nRST_STOP + name: nRST_STOP + - bit_offset: 13 + bit_size: 1 + description: nRST_STDBY + name: nRST_STDBY + - bit_offset: 14 + bit_size: 1 + description: nRST_SHDW + name: nRST_SHDW + - bit_offset: 16 + bit_size: 1 + description: Independent watchdog selection + name: IDWG_SW + - bit_offset: 17 + bit_size: 1 + description: Independent watchdog counter freeze in Stop mode + name: IWDG_STOP + - bit_offset: 18 + bit_size: 1 + description: Independent watchdog counter freeze in Standby mode + name: IWDG_STDBY + - bit_offset: 19 + bit_size: 1 + description: Window watchdog selection + name: WWDG_SW + - bit_offset: 23 + bit_size: 1 + description: Boot configuration + name: nBOOT1 + - bit_offset: 24 + bit_size: 1 + description: SRAM2 parity check enable + name: SRAM2_PE + - bit_offset: 25 + bit_size: 1 + description: SRAM2 Erase when system reset + name: SRAM2_RST + - bit_offset: 26 + bit_size: 1 + description: Software Boot0 + name: nSWBOOT0 + - bit_offset: 27 + bit_size: 1 + description: nBoot0 option bit + name: nBOOT0 + - bit_offset: 29 + bit_size: 3 + description: Radio Automatic Gain Control Trimming + name: AGC_TRIM +fieldset/PCROP1AER: + description: Flash Bank 1 PCROP End address zone A register + fields: + - bit_offset: 0 + bit_size: 9 + description: Bank 1 PCROP area end offset + name: PCROP1A_END + - bit_offset: 31 + bit_size: 1 + description: PCROP area preserved when RDP level decreased + name: PCROP_RDP +fieldset/PCROP1ASR: + description: Flash Bank 1 PCROP Start address zone A register + fields: + - bit_offset: 0 + bit_size: 9 + description: Bank 1 PCROPQ area start offset + name: PCROP1A_STRT +fieldset/PCROP1BER: + description: Flash Bank 1 PCROP End address area B register + fields: + - bit_offset: 0 + bit_size: 9 + description: Bank 1 PCROP area end area B offset + name: PCROP1B_END +fieldset/PCROP1BSR: + description: Flash Bank 1 PCROP Start address area B register + fields: + - bit_offset: 0 + bit_size: 9 + description: Bank 1 PCROP area B start offset + name: PCROP1B_STRT +fieldset/SFR: + description: Secure flash start address register + fields: + - bit_offset: 0 + bit_size: 8 + description: Secure flash start address + name: SFSA + - bit_offset: 8 + bit_size: 1 + description: Flash security disable + name: FSD + - bit_offset: 12 + bit_size: 1 + description: Disable Cortex M0 debug access + name: DDS +fieldset/SR: + description: Status register + fields: + - bit_offset: 0 + bit_size: 1 + description: End of operation + name: EOP + - bit_offset: 1 + bit_size: 1 + description: Operation error + name: OPERR + - bit_offset: 3 + bit_size: 1 + description: Programming error + name: PROGERR + - bit_offset: 4 + bit_size: 1 + description: Write protected error + name: WRPERR + - bit_offset: 5 + bit_size: 1 + description: Programming alignment error + name: PGAERR + - bit_offset: 6 + bit_size: 1 + description: Size error + name: SIZERR + - bit_offset: 7 + bit_size: 1 + description: Programming sequence error + name: PGSERR + - bit_offset: 8 + bit_size: 1 + description: Fast programming data miss error + name: MISERR + - bit_offset: 9 + bit_size: 1 + description: Fast programming error + name: FASTERR + - bit_offset: 13 + bit_size: 1 + description: User Option OPTVAL indication + name: OPTNV + - bit_offset: 14 + bit_size: 1 + description: PCROP read error + name: RDERR + - bit_offset: 15 + bit_size: 1 + description: Option validity error + name: OPTVERR + - bit_offset: 16 + bit_size: 1 + description: Busy + name: BSY + - bit_offset: 18 + bit_size: 1 + description: Programming or erase configuration busy + name: CFGBSY + - bit_offset: 19 + bit_size: 1 + description: Programming or erase operation suspended + name: PESD +fieldset/SRRVR: + description: Secure SRAM2 start address and cortex M0 reset vector register + fields: + - bit_offset: 0 + bit_size: 18 + description: cortex M0 access control register + name: SBRV + - bit_offset: 18 + bit_size: 5 + description: Secure backup SRAM2a start address + name: SBRSA + - bit_offset: 23 + bit_size: 1 + description: backup SRAM2a security disable + name: BRSD + - bit_offset: 25 + bit_size: 5 + description: Secure non backup SRAM2a start address + name: SNBRSA + - bit_offset: 30 + bit_size: 1 + description: non-backup SRAM2b security disable + name: NBRSD + - bit_offset: 31 + bit_size: 1 + description: CPU2 cortex M0 boot reset vector memory selection + name: C2OPT +fieldset/WRP1AR: + description: Flash Bank 1 WRP area A address register + fields: + - bit_offset: 0 + bit_size: 8 + description: Bank 1 WRP first area A start offset + name: WRP1A_STRT + - bit_offset: 16 + bit_size: 8 + description: Bank 1 WRP first area A end offset + name: WRP1A_END +fieldset/WRP1BR: + description: Flash Bank 1 WRP area B address register + fields: + - bit_offset: 0 + bit_size: 8 + description: Bank 1 WRP second area B start offset + name: WRP1B_END + - bit_offset: 16 + bit_size: 8 + description: Bank 1 WRP second area B end offset + name: WRP1B_STRT diff --git a/data/registers/ipcc_v1.yaml b/data/registers/ipcc_v1.yaml index caee0b1..4987b60 100644 --- a/data/registers/ipcc_v1.yaml +++ b/data/registers/ipcc_v1.yaml @@ -8,6 +8,7 @@ block/IPCC: len: 2 stride: 16 byte_offset: 0 + block: IPCC_CPU block/IPCC_CPU: description: IPCC items: diff --git a/data/registers/pwr_wb55.yaml b/data/registers/pwr_wb55.yaml new file mode 100644 index 0000000..bb32aa4 --- /dev/null +++ b/data/registers/pwr_wb55.yaml @@ -0,0 +1,1116 @@ +block/PWR: + description: Power control + items: + - byte_offset: 0 + description: Power control register 1 + fieldset: CR1 + name: CR1 + - byte_offset: 4 + description: Power control register 2 + fieldset: CR2 + name: CR2 + - byte_offset: 8 + description: Power control register 3 + fieldset: CR3 + name: CR3 + - byte_offset: 12 + description: Power control register 4 + fieldset: CR4 + name: CR4 + - access: Read + byte_offset: 16 + description: Power status register 1 + fieldset: SR1 + name: SR1 + - access: Read + byte_offset: 20 + description: Power status register 2 + fieldset: SR2 + name: SR2 + - access: Write + byte_offset: 24 + description: Power status clear register + fieldset: SCR + name: SCR + - byte_offset: 28 + description: Power control register 5 + fieldset: CR5 + name: CR5 + - byte_offset: 32 + description: Power Port A pull-up control register + fieldset: PUCRA + name: PUCRA + - byte_offset: 36 + description: Power Port A pull-down control register + fieldset: PDCRA + name: PDCRA + - byte_offset: 40 + description: Power Port B pull-up control register + fieldset: PUCRB + name: PUCRB + - byte_offset: 44 + description: Power Port B pull-down control register + fieldset: PDCRB + name: PDCRB + - byte_offset: 48 + description: Power Port C pull-up control register + fieldset: PUCRC + name: PUCRC + - byte_offset: 52 + description: Power Port C pull-down control register + fieldset: PDCRC + name: PDCRC + - byte_offset: 56 + description: Power Port D pull-up control register + fieldset: PUCRD + name: PUCRD + - byte_offset: 60 + description: Power Port D pull-down control register + fieldset: PDCRD + name: PDCRD + - byte_offset: 64 + description: Power Port E pull-up control register + fieldset: PUCRE + name: PUCRE + - byte_offset: 68 + description: Power Port E pull-down control register + fieldset: PDCRE + name: PDCRE + - byte_offset: 88 + description: Power Port H pull-up control register + fieldset: PUCRH + name: PUCRH + - byte_offset: 92 + description: Power Port H pull-down control register + fieldset: PDCRH + name: PDCRH + - byte_offset: 128 + description: CPU2 Power control register 1 + fieldset: C2CR1 + name: C2CR1 + - byte_offset: 132 + description: CPU2 Power control register 3 + fieldset: C2CR3 + name: C2CR3 + - byte_offset: 136 + description: Power status clear register + fieldset: EXTSCR + name: EXTSCR +fieldset/C2CR1: + description: CPU2 Power control register 1 + fields: + - bit_offset: 0 + bit_size: 3 + description: Low-power mode selection for CPU2 + name: LPMS + - bit_offset: 4 + bit_size: 1 + description: Flash power down mode during LPRun for CPU2 + name: FPDR + - bit_offset: 5 + bit_size: 1 + description: Flash power down mode during LPSleep for CPU2 + name: FPDS + - bit_offset: 14 + bit_size: 1 + description: BLE external wakeup signal + name: BLEEWKUP + - bit_offset: 15 + bit_size: 1 + description: 802.15.4 external wakeup signal + name: _802EWKUP +fieldset/C2CR3: + description: CPU2 Power control register 3 + fields: + - bit_offset: 0 + bit_size: 1 + description: Enable Wakeup pin WKUP1 for CPU2 + name: EWUP1 + - bit_offset: 1 + bit_size: 1 + description: Enable Wakeup pin WKUP2 for CPU2 + name: EWUP2 + - bit_offset: 2 + bit_size: 1 + description: Enable Wakeup pin WKUP3 for CPU2 + name: EWUP3 + - bit_offset: 3 + bit_size: 1 + description: Enable Wakeup pin WKUP4 for CPU2 + name: EWUP4 + - bit_offset: 4 + bit_size: 1 + description: Enable Wakeup pin WKUP5 for CPU2 + name: EWUP5 + - bit_offset: 9 + bit_size: 1 + description: Enable BLE host wakeup interrupt for CPU2 + name: EBLEWUP + - bit_offset: 10 + bit_size: 1 + description: Enable 802.15.4 host wakeup interrupt for CPU2 + name: E802WUP + - bit_offset: 12 + bit_size: 1 + description: Apply pull-up and pull-down configuration for CPU2 + name: APC + - bit_offset: 15 + bit_size: 1 + description: Enable internal wakeup line for CPU2 + name: EIWUL +fieldset/CR1: + description: Power control register 1 + fields: + - bit_offset: 0 + bit_size: 3 + description: Low-power mode selection for CPU1 + name: LPMS + - bit_offset: 4 + bit_size: 1 + description: Flash power down mode during LPRun for CPU1 + name: FPDR + - bit_offset: 5 + bit_size: 1 + description: Flash power down mode during LPsSleep for CPU1 + name: FPDS + - bit_offset: 8 + bit_size: 1 + description: Disable backup domain write protection + name: DBP + - bit_offset: 9 + bit_size: 2 + description: Voltage scaling range selection + name: VOS + - bit_offset: 14 + bit_size: 1 + description: Low-power run + name: LPR +fieldset/CR2: + description: Power control register 2 + fields: + - bit_offset: 0 + bit_size: 1 + description: Power voltage detector enable + name: PVDE + - bit_offset: 1 + bit_size: 3 + description: Power voltage detector level selection + name: PLS + - bit_offset: 4 + bit_size: 1 + description: 'Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V' + name: PVME1 + - bit_offset: 6 + bit_size: 1 + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V' + name: PVME3 + - bit_offset: 10 + bit_size: 1 + description: VDDUSB USB supply valid + name: USV +fieldset/CR3: + description: Power control register 3 + fields: + - bit_offset: 0 + bit_size: 1 + description: Enable Wakeup pin WKUP1 + name: EWUP1 + - bit_offset: 1 + bit_size: 1 + description: Enable Wakeup pin WKUP2 + name: EWUP2 + - bit_offset: 2 + bit_size: 1 + description: Enable Wakeup pin WKUP3 + name: EWUP3 + - bit_offset: 3 + bit_size: 1 + description: Enable Wakeup pin WKUP4 + name: EWUP4 + - bit_offset: 4 + bit_size: 1 + description: Enable Wakeup pin WKUP5 + name: EWUP5 + - bit_offset: 8 + bit_size: 1 + description: Enable BORH and Step Down counverter forced in Bypass interrups for + CPU1 + name: EBORHSDFB + - bit_offset: 9 + bit_size: 1 + description: SRAM2a retention in Standby mode + name: RRS + - bit_offset: 10 + bit_size: 1 + description: Apply pull-up and pull-down configuration + name: APC + - bit_offset: 11 + bit_size: 1 + description: Enable BLE end of activity interrupt for CPU1 + name: EBLEA + - bit_offset: 12 + bit_size: 1 + description: Enable critical radio phase end of activity interrupt for CPU1 + name: ECRPE + - bit_offset: 13 + bit_size: 1 + description: Enable end of activity interrupt for CPU1 + name: E802A + - bit_offset: 14 + bit_size: 1 + description: Enable CPU2 Hold interrupt for CPU1 + name: EC2H + - bit_offset: 15 + bit_size: 1 + description: Enable internal wakeup line for CPU1 + name: EIWUL +fieldset/CR4: + description: Power control register 4 + fields: + - bit_offset: 0 + bit_size: 1 + description: Wakeup pin WKUP1 polarity + name: WP1 + - bit_offset: 1 + bit_size: 1 + description: Wakeup pin WKUP2 polarity + name: WP2 + - bit_offset: 2 + bit_size: 1 + description: Wakeup pin WKUP3 polarity + name: WP3 + - bit_offset: 3 + bit_size: 1 + description: Wakeup pin WKUP4 polarity + name: WP4 + - bit_offset: 4 + bit_size: 1 + description: Wakeup pin WKUP5 polarity + name: WP5 + - bit_offset: 8 + bit_size: 1 + description: VBAT battery charging enable + name: VBE + - bit_offset: 9 + bit_size: 1 + description: VBAT battery charging resistor selection + name: VBRS + - bit_offset: 15 + bit_size: 1 + description: BOOT CPU2 after reset or wakeup from Stop or Standby modes + name: C2BOOT +fieldset/CR5: + description: Power control register 5 + fields: + - bit_offset: 0 + bit_size: 4 + description: Step Down converter voltage output scaling + name: SDVOS + - bit_offset: 4 + bit_size: 3 + description: Step Down converter supplt startup current selection + name: SDSC + - bit_offset: 8 + bit_size: 1 + description: BORH configuration selection + name: BORHC + - bit_offset: 9 + bit_size: 1 + description: VOS configuration selection (non user) + name: SMPSCFG + - bit_offset: 14 + bit_size: 1 + description: Enable Step Down converter Bypass mode enabled + name: SDBEN + - bit_offset: 15 + bit_size: 1 + description: Enable Step Down converter SMPS mode enabled + name: SDEB +fieldset/EXTSCR: + description: Power status clear register + fields: + - bit_offset: 0 + bit_size: 1 + description: Clear CPU1 Stop Standby flags + name: C1CSSF + - bit_offset: 1 + bit_size: 1 + description: Clear CPU2 Stop Standby flags + name: C2CSSF + - bit_offset: 2 + bit_size: 1 + description: Clear Critical Radio system phase + name: CCRPF + - bit_offset: 8 + bit_size: 1 + description: System Standby flag for CPU1 + name: C1SBF + - bit_offset: 9 + bit_size: 1 + description: System Stop flag for CPU1 + name: C1STOPF + - bit_offset: 10 + bit_size: 1 + description: System Standby flag for CPU2 + name: C2SBF + - bit_offset: 11 + bit_size: 1 + description: System Stop flag for CPU2 + name: C2STOPF + - bit_offset: 13 + bit_size: 1 + description: Critical Radio system phase + name: CRPF + - bit_offset: 14 + bit_size: 1 + description: CPU1 deepsleep mode + name: C1DS + - bit_offset: 15 + bit_size: 1 + description: CPU2 deepsleep mode + name: C2DS +fieldset/PDCRA: + description: Power Port A pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD1 + - bit_offset: 2 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD2 + - bit_offset: 3 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD3 + - bit_offset: 4 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD4 + - bit_offset: 5 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD5 + - bit_offset: 6 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD6 + - bit_offset: 7 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD7 + - bit_offset: 8 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD8 + - bit_offset: 9 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD9 + - bit_offset: 10 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD10 + - bit_offset: 11 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD11 + - bit_offset: 12 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD12 + - bit_offset: 14 + bit_size: 1 + description: Port A pull-down bit y (y=0..15) + name: PD14 +fieldset/PDCRB: + description: Power Port B pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD1 + - bit_offset: 2 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD2 + - bit_offset: 3 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD3 + - bit_offset: 5 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD5 + - bit_offset: 6 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD6 + - bit_offset: 7 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD7 + - bit_offset: 8 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD8 + - bit_offset: 9 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD9 + - bit_offset: 10 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD10 + - bit_offset: 11 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD11 + - bit_offset: 12 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD12 + - bit_offset: 13 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD13 + - bit_offset: 14 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD14 + - bit_offset: 15 + bit_size: 1 + description: Port B pull-down bit y (y=0..15) + name: PD15 +fieldset/PDCRC: + description: Power Port C pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD1 + - bit_offset: 2 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD2 + - bit_offset: 3 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD3 + - bit_offset: 4 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD4 + - bit_offset: 5 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD5 + - bit_offset: 6 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD6 + - bit_offset: 7 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD7 + - bit_offset: 8 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD8 + - bit_offset: 9 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD9 + - bit_offset: 10 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD10 + - bit_offset: 11 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD11 + - bit_offset: 12 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD12 + - bit_offset: 13 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD13 + - bit_offset: 14 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD14 + - bit_offset: 15 + bit_size: 1 + description: Port C pull-down bit y (y=0..15) + name: PD15 +fieldset/PDCRD: + description: Power Port D pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD1 + - bit_offset: 2 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD2 + - bit_offset: 3 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD3 + - bit_offset: 4 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD4 + - bit_offset: 5 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD5 + - bit_offset: 6 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD6 + - bit_offset: 7 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD7 + - bit_offset: 8 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD8 + - bit_offset: 9 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD9 + - bit_offset: 10 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD10 + - bit_offset: 11 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD11 + - bit_offset: 12 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD12 + - bit_offset: 13 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD13 + - bit_offset: 14 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD14 + - bit_offset: 15 + bit_size: 1 + description: Port D pull-down bit y (y=0..15) + name: PD15 +fieldset/PDCRE: + description: Power Port E pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port E pull-down bit y (y=0..15) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port E pull-down bit y (y=0..15) + name: PD1 + - bit_offset: 2 + bit_size: 1 + description: Port E pull-down bit y (y=0..15) + name: PD2 + - bit_offset: 3 + bit_size: 1 + description: Port E pull-down bit y (y=0..15) + name: PD3 + - bit_offset: 4 + bit_size: 1 + description: Port E pull-down bit y (y=0..15) + name: PD4 +fieldset/PDCRH: + description: Power Port H pull-down control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port H pull-down bit y (y=0..1) + name: PD0 + - bit_offset: 1 + bit_size: 1 + description: Port H pull-down bit y (y=0..1) + name: PD1 + - bit_offset: 3 + bit_size: 1 + description: Port H pull-down bit y (y=0..1) + name: PD3 +fieldset/PUCRA: + description: Power Port A pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU1 + - bit_offset: 2 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU2 + - bit_offset: 3 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU3 + - bit_offset: 4 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU4 + - bit_offset: 5 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU5 + - bit_offset: 6 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU6 + - bit_offset: 7 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU7 + - bit_offset: 8 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU8 + - bit_offset: 9 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU9 + - bit_offset: 10 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU10 + - bit_offset: 11 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU11 + - bit_offset: 12 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU12 + - bit_offset: 13 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU13 + - bit_offset: 15 + bit_size: 1 + description: Port A pull-up bit y (y=0..15) + name: PU15 +fieldset/PUCRB: + description: Power Port B pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU1 + - bit_offset: 2 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU2 + - bit_offset: 3 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU3 + - bit_offset: 4 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU4 + - bit_offset: 5 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU5 + - bit_offset: 6 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU6 + - bit_offset: 7 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU7 + - bit_offset: 8 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU8 + - bit_offset: 9 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU9 + - bit_offset: 10 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU10 + - bit_offset: 11 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU11 + - bit_offset: 12 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU12 + - bit_offset: 13 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU13 + - bit_offset: 14 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU14 + - bit_offset: 15 + bit_size: 1 + description: Port B pull-up bit y (y=0..15) + name: PU15 +fieldset/PUCRC: + description: Power Port C pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU1 + - bit_offset: 2 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU2 + - bit_offset: 3 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU3 + - bit_offset: 4 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU4 + - bit_offset: 5 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU5 + - bit_offset: 6 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU6 + - bit_offset: 7 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU7 + - bit_offset: 8 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU8 + - bit_offset: 9 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU9 + - bit_offset: 10 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU10 + - bit_offset: 11 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU11 + - bit_offset: 12 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU12 + - bit_offset: 13 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU13 + - bit_offset: 14 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU14 + - bit_offset: 15 + bit_size: 1 + description: Port C pull-up bit y (y=0..15) + name: PU15 +fieldset/PUCRD: + description: Power Port D pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU1 + - bit_offset: 2 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU2 + - bit_offset: 3 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU3 + - bit_offset: 4 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU4 + - bit_offset: 5 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU5 + - bit_offset: 6 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU6 + - bit_offset: 7 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU7 + - bit_offset: 8 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU8 + - bit_offset: 9 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU9 + - bit_offset: 10 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU10 + - bit_offset: 11 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU11 + - bit_offset: 12 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU12 + - bit_offset: 13 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU13 + - bit_offset: 14 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU14 + - bit_offset: 15 + bit_size: 1 + description: Port D pull-up bit y (y=0..15) + name: PU15 +fieldset/PUCRE: + description: Power Port E pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port E pull-up bit y (y=0..15) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port E pull-up bit y (y=0..15) + name: PU1 + - bit_offset: 2 + bit_size: 1 + description: Port E pull-up bit y (y=0..15) + name: PU2 + - bit_offset: 3 + bit_size: 1 + description: Port E pull-up bit y (y=0..15) + name: PU3 + - bit_offset: 4 + bit_size: 1 + description: Port E pull-up bit y (y=0..15) + name: PU4 +fieldset/PUCRH: + description: Power Port H pull-up control register + fields: + - bit_offset: 0 + bit_size: 1 + description: Port H pull-up bit y (y=0..1) + name: PU0 + - bit_offset: 1 + bit_size: 1 + description: Port H pull-up bit y (y=0..1) + name: PU1 + - bit_offset: 3 + bit_size: 1 + description: Port H pull-up bit y (y=0..1) + name: PU3 +fieldset/SCR: + description: Power status clear register + fields: + - bit_offset: 0 + bit_size: 1 + description: Clear wakeup flag 1 + name: CWUF1 + - bit_offset: 1 + bit_size: 1 + description: Clear wakeup flag 2 + name: CWUF2 + - bit_offset: 2 + bit_size: 1 + description: Clear wakeup flag 3 + name: CWUF3 + - bit_offset: 3 + bit_size: 1 + description: Clear wakeup flag 4 + name: CWUF4 + - bit_offset: 4 + bit_size: 1 + description: Clear wakeup flag 5 + name: CWUF5 + - bit_offset: 7 + bit_size: 1 + description: Clear SMPS Step Down converter forced in Bypass interrupt flag + name: CSMPSFBF + - bit_offset: 8 + bit_size: 1 + description: Clear BORH interrupt flag + name: CBORHF + - bit_offset: 9 + bit_size: 1 + description: Clear BLE wakeup interrupt flag + name: CBLEWUF + - bit_offset: 10 + bit_size: 1 + description: Clear 802.15.4 wakeup interrupt flag + name: C802WUF + - bit_offset: 11 + bit_size: 1 + description: Clear critical radio phase end of activity interrupt flag + name: CCRPEF + - bit_offset: 12 + bit_size: 1 + description: Clear BLE end of activity interrupt flag + name: CBLEAF + - bit_offset: 13 + bit_size: 1 + description: Clear 802.15.4 end of activity interrupt flag + name: C802AF + - bit_offset: 14 + bit_size: 1 + description: Clear CPU2 Hold interrupt flag + name: CC2HF +fieldset/SR1: + description: Power status register 1 + fields: + - bit_offset: 0 + bit_size: 1 + description: Wakeup flag 1 + name: CWUF1 + - bit_offset: 1 + bit_size: 1 + description: Wakeup flag 2 + name: CWUF2 + - bit_offset: 2 + bit_size: 1 + description: Wakeup flag 3 + name: CWUF3 + - bit_offset: 3 + bit_size: 1 + description: Wakeup flag 4 + name: CWUF4 + - bit_offset: 4 + bit_size: 1 + description: Wakeup flag 5 + name: CWUF5 + - bit_offset: 7 + bit_size: 1 + description: Step Down converter forced in Bypass interrupt flag + name: SDFBF + - bit_offset: 8 + bit_size: 1 + description: BORH interrupt flag + name: BORHF + - bit_offset: 9 + bit_size: 1 + description: BLE wakeup interrupt flag + name: BLEWUF + - bit_offset: 10 + bit_size: 1 + description: 802.15.4 wakeup interrupt flag + name: _802WUF + - bit_offset: 11 + bit_size: 1 + description: Enable critical radio phase end of activity interrupt flag + name: CRPEF + - bit_offset: 12 + bit_size: 1 + description: BLE end of activity interrupt flag + name: BLEAF + - bit_offset: 13 + bit_size: 1 + description: 802.15.4 end of activity interrupt flag + name: AF802 + - bit_offset: 14 + bit_size: 1 + description: CPU2 Hold interrupt flag + name: C2HF + - bit_offset: 15 + bit_size: 1 + description: Internal Wakeup interrupt flag + name: WUFI +fieldset/SR2: + description: Power status register 2 + fields: + - bit_offset: 0 + bit_size: 1 + description: Step Down converter Bypass mode flag + name: SDBF + - bit_offset: 1 + bit_size: 1 + description: Step Down converter SMPS mode flag + name: SDSMPSF + - bit_offset: 8 + bit_size: 1 + description: Low-power regulator started + name: REGLPS + - bit_offset: 9 + bit_size: 1 + description: Low-power regulator flag + name: REGLPF + - bit_offset: 10 + bit_size: 1 + description: Voltage scaling flag + name: VOSF + - bit_offset: 11 + bit_size: 1 + description: Power voltage detector output + name: PVDO + - bit_offset: 12 + bit_size: 1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + name: PVMO1 + - bit_offset: 14 + bit_size: 1 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + name: PVMO3 diff --git a/data/registers/rtc_wb.yaml b/data/registers/rtc_wb.yaml new file mode 100644 index 0000000..c734e4e --- /dev/null +++ b/data/registers/rtc_wb.yaml @@ -0,0 +1,891 @@ +--- +block/RTC: + description: Real-time clock + items: + - name: TR + description: time register + byte_offset: 0 + fieldset: TR + - name: DR + description: date register + byte_offset: 4 + fieldset: DR + - name: CR + description: control register + byte_offset: 8 + fieldset: CR + - byte_offset: 12 + description: initialization and status register + fieldset: ISR + name: ISR + - byte_offset: 16 + description: prescaler register + fieldset: PRER + name: PRER + - byte_offset: 20 + description: wakeup timer register + fieldset: WUTR + name: WUTR + - byte_offset: 28 + description: alarm A register + fieldset: ALRMAR + name: ALRMAR + - byte_offset: 32 + description: alarm B register + fieldset: ALRMBR + name: ALRMBR + - access: Write + byte_offset: 36 + description: write protection register + fieldset: WPR + name: WPR + - access: Read + byte_offset: 40 + description: sub second register + fieldset: SSR + name: SSR + - access: Write + byte_offset: 44 + description: shift control register + fieldset: SHIFTR + name: SHIFTR + - access: Read + byte_offset: 48 + description: time stamp time register + fieldset: TSTR + name: TSTR + - access: Read + byte_offset: 52 + description: time stamp date register + fieldset: TSDR + name: TSDR + - access: Read + byte_offset: 56 + description: timestamp sub second register + fieldset: TSSSR + name: TSSSR + - byte_offset: 60 + description: calibration register + fieldset: CALR + name: CALR + - byte_offset: 64 + description: tamper configuration register + fieldset: TAMPCR + name: TAMPCR + - byte_offset: 68 + description: alarm A sub second register + fieldset: ALRMASSR + name: ALRMASSR + - byte_offset: 72 + description: alarm B sub second register + fieldset: ALRMBSSR + name: ALRMBSSR + - byte_offset: 76 + description: option register + fieldset: OR + name: OR + - byte_offset: 80 + description: backup register + fieldset: BKP0R + name: BKP0R + - byte_offset: 84 + description: backup register + fieldset: BKP1R + name: BKP1R + - byte_offset: 88 + description: backup register + fieldset: BKP2R + name: BKP2R + - byte_offset: 92 + description: backup register + fieldset: BKP3R + name: BKP3R + - byte_offset: 96 + description: backup register + fieldset: BKP4R + name: BKP4R + - byte_offset: 100 + description: backup register + fieldset: BKP5R + name: BKP5R + - byte_offset: 104 + description: backup register + fieldset: BKP6R + name: BKP6R + - byte_offset: 108 + description: backup register + fieldset: BKP7R + name: BKP7R + - byte_offset: 112 + description: backup register + fieldset: BKP8R + name: BKP8R + - byte_offset: 116 + description: backup register + fieldset: BKP9R + name: BKP9R + - byte_offset: 120 + description: backup register + fieldset: BKP10R + name: BKP10R + - byte_offset: 124 + description: backup register + fieldset: BKP11R + name: BKP11R + - byte_offset: 128 + description: backup register + fieldset: BKP12R + name: BKP12R + - byte_offset: 132 + description: backup register + fieldset: BKP13R + name: BKP13R + - byte_offset: 136 + description: backup register + fieldset: BKP14R + name: BKP14R + - byte_offset: 140 + description: backup register + fieldset: BKP15R + name: BKP15R + - byte_offset: 144 + description: backup register + fieldset: BKP16R + name: BKP16R + - byte_offset: 148 + description: backup register + fieldset: BKP17R + name: BKP17R + - byte_offset: 152 + description: backup register + fieldset: BKP18R + name: BKP18R + - byte_offset: 156 + description: backup register + fieldset: BKP19R + name: BKP19R +fieldset/ALRMAR: + description: alarm A register + fields: + - bit_offset: 0 + bit_size: 4 + description: Second units in BCD format + name: SU + - bit_offset: 4 + bit_size: 3 + description: Second tens in BCD format + name: ST + - bit_offset: 7 + bit_size: 1 + description: Alarm A seconds mask + name: MSK1 + - bit_offset: 8 + bit_size: 4 + description: Minute units in BCD format + name: MNU + - bit_offset: 12 + bit_size: 3 + description: Minute tens in BCD format + name: MNT + - bit_offset: 15 + bit_size: 1 + description: Alarm A minutes mask + name: MSK2 + - bit_offset: 16 + bit_size: 4 + description: Hour units in BCD format + name: HU + - bit_offset: 20 + bit_size: 2 + description: Hour tens in BCD format + name: HT + - bit_offset: 22 + bit_size: 1 + description: AM/PM notation + name: PM + - bit_offset: 23 + bit_size: 1 + description: Alarm A hours mask + name: MSK3 + - bit_offset: 24 + bit_size: 4 + description: Date units or day in BCD format + name: DU + - bit_offset: 28 + bit_size: 2 + description: Date tens in BCD format + name: DT + - bit_offset: 30 + bit_size: 1 + description: Week day selection + name: WDSEL + - bit_offset: 31 + bit_size: 1 + description: Alarm A date mask + name: MSK4 +fieldset/ALRMASSR: + description: alarm A sub second register + fields: + - bit_offset: 0 + bit_size: 15 + description: Sub seconds value + name: SS + - bit_offset: 24 + bit_size: 4 + description: Mask the most-significant bits starting at this bit + name: MASKSS +fieldset/ALRMBR: + description: alarm B register + fields: + - bit_offset: 0 + bit_size: 4 + description: Second units in BCD format + name: SU + - bit_offset: 4 + bit_size: 3 + description: Second tens in BCD format + name: ST + - bit_offset: 7 + bit_size: 1 + description: Alarm B seconds mask + name: MSK1 + - bit_offset: 8 + bit_size: 4 + description: Minute units in BCD format + name: MNU + - bit_offset: 12 + bit_size: 3 + description: Minute tens in BCD format + name: MNT + - bit_offset: 15 + bit_size: 1 + description: Alarm B minutes mask + name: MSK2 + - bit_offset: 16 + bit_size: 4 + description: Hour units in BCD format + name: HU + - bit_offset: 20 + bit_size: 2 + description: Hour tens in BCD format + name: HT + - bit_offset: 22 + bit_size: 1 + description: AM/PM notation + name: PM + - bit_offset: 23 + bit_size: 1 + description: Alarm B hours mask + name: MSK3 + - bit_offset: 24 + bit_size: 4 + description: Date units or day in BCD format + name: DU + - bit_offset: 28 + bit_size: 2 + description: Date tens in BCD format + name: DT + - bit_offset: 30 + bit_size: 1 + description: Week day selection + name: WDSEL + - bit_offset: 31 + bit_size: 1 + description: Alarm B date mask + name: MSK4 +fieldset/ALRMBSSR: + description: alarm B sub second register + fields: + - bit_offset: 0 + bit_size: 15 + description: Sub seconds value + name: SS + - bit_offset: 24 + bit_size: 4 + description: Mask the most-significant bits starting at this bit + name: MASKSS +fieldset/BKP0R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP10R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP11R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP12R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP13R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP14R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP15R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP16R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP17R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP18R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP19R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP1R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP2R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP3R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP4R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP5R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP6R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP7R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP8R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/BKP9R: + description: backup register + fields: + - bit_offset: 0 + bit_size: 32 + description: BKP + name: BKP +fieldset/CALR: + description: calibration register + fields: + - bit_offset: 0 + bit_size: 9 + description: Calibration minus + name: CALM + - bit_offset: 13 + bit_size: 1 + description: Use a 16-second calibration cycle period + name: CALW16 + - bit_offset: 14 + bit_size: 1 + description: Use an 8-second calibration cycle period + name: CALW8 + - bit_offset: 15 + bit_size: 1 + description: Increase frequency of RTC by 488.5 ppm + name: CALP +fieldset/CR: + description: control register + fields: + - bit_offset: 0 + bit_size: 3 + description: Wakeup clock selection + name: WUCKSEL + - bit_offset: 3 + bit_size: 1 + description: Time-stamp event active edge + name: TSEDGE + - bit_offset: 4 + bit_size: 1 + description: Reference clock detection enable (50 or 60 Hz) + name: REFCKON + - bit_offset: 5 + bit_size: 1 + description: Bypass the shadow registers + name: BYPSHAD + - bit_offset: 6 + bit_size: 1 + description: Hour format + name: FMT + - bit_offset: 8 + bit_size: 1 + description: Alarm A enable + name: ALRAE + - bit_offset: 9 + bit_size: 1 + description: Alarm B enable + name: ALRBE + - bit_offset: 10 + bit_size: 1 + description: Wakeup timer enable + name: WUTE + - bit_offset: 11 + bit_size: 1 + description: Time stamp enable + name: TSE + - bit_offset: 12 + bit_size: 1 + description: Alarm A interrupt enable + name: ALRAIE + - bit_offset: 13 + bit_size: 1 + description: Alarm B interrupt enable + name: ALRBIE + - bit_offset: 14 + bit_size: 1 + description: Wakeup timer interrupt enable + name: WUTIE + - bit_offset: 15 + bit_size: 1 + description: Time-stamp interrupt enable + name: TSIE + - bit_offset: 16 + bit_size: 1 + description: Add 1 hour (summer time change) + name: ADD1H + - bit_offset: 17 + bit_size: 1 + description: Subtract 1 hour (winter time change) + name: SUB1H + - bit_offset: 18 + bit_size: 1 + description: Backup + name: BKP + - bit_offset: 19 + bit_size: 1 + description: Calibration output selection + name: COSEL + - bit_offset: 20 + bit_size: 1 + description: Output polarity + name: POL + - bit_offset: 21 + bit_size: 2 + description: Output selection + name: OSEL + - bit_offset: 23 + bit_size: 1 + description: Calibration output enable + name: COE + - bit_offset: 24 + bit_size: 1 + description: timestamp on internal event enable + name: ITSE +fieldset/DR: + description: date register + fields: + - bit_offset: 0 + bit_size: 4 + description: Date units in BCD format + name: DU + - bit_offset: 4 + bit_size: 2 + description: Date tens in BCD format + name: DT + - bit_offset: 8 + bit_size: 4 + description: Month units in BCD format + name: MU + - bit_offset: 12 + bit_size: 1 + description: Month tens in BCD format + name: MT + - bit_offset: 13 + bit_size: 3 + description: Week day units + name: WDU + - bit_offset: 16 + bit_size: 4 + description: Year units in BCD format + name: YU + - bit_offset: 20 + bit_size: 4 + description: Year tens in BCD format + name: YT +fieldset/ISR: + description: initialization and status register + fields: + - bit_offset: 0 + bit_size: 1 + description: Alarm A write flag + name: ALRAWF + - bit_offset: 1 + bit_size: 1 + description: Alarm B write flag + name: ALRBWF + - bit_offset: 2 + bit_size: 1 + description: Wakeup timer write flag + name: WUTWF + - bit_offset: 3 + bit_size: 1 + description: Shift operation pending + name: SHPF + - bit_offset: 4 + bit_size: 1 + description: Initialization status flag + name: INITS + - bit_offset: 5 + bit_size: 1 + description: Registers synchronization flag + name: RSF + - bit_offset: 6 + bit_size: 1 + description: Initialization flag + name: INITF + - bit_offset: 7 + bit_size: 1 + description: Initialization mode + name: INIT + - bit_offset: 8 + bit_size: 1 + description: Alarm A flag + name: ALRAF + - bit_offset: 9 + bit_size: 1 + description: Alarm B flag + name: ALRBF + - bit_offset: 10 + bit_size: 1 + description: Wakeup timer flag + name: WUTF + - bit_offset: 11 + bit_size: 1 + description: Time-stamp flag + name: TSF + - bit_offset: 12 + bit_size: 1 + description: Time-stamp overflow flag + name: TSOVF + - bit_offset: 13 + bit_size: 1 + description: Tamper detection flag + name: TAMP1F + - bit_offset: 14 + bit_size: 1 + description: RTC_TAMP2 detection flag + name: TAMP2F + - bit_offset: 15 + bit_size: 1 + description: RTC_TAMP3 detection flag + name: TAMP3F + - bit_offset: 16 + bit_size: 1 + description: Recalibration pending Flag + name: RECALPF + - bit_offset: 17 + bit_size: 1 + description: INTERNAL TIME-STAMP FLAG + name: ITSF +fieldset/OR: + description: option register + fields: + - bit_offset: 0 + bit_size: 1 + description: RTC_ALARM on PC13 output type + name: RTC_ALARM_TYPE + - bit_offset: 1 + bit_size: 1 + description: RTC_OUT remap + name: RTC_OUT_RMP +fieldset/PRER: + description: prescaler register + fields: + - bit_offset: 0 + bit_size: 15 + description: Synchronous prescaler factor + name: PREDIV_S + - bit_offset: 16 + bit_size: 7 + description: Asynchronous prescaler factor + name: PREDIV_A +fieldset/SHIFTR: + description: shift control register + fields: + - bit_offset: 0 + bit_size: 15 + description: Subtract a fraction of a second + name: SUBFS + - bit_offset: 31 + bit_size: 1 + description: Add one second + name: ADD1S +fieldset/SSR: + description: sub second register + fields: + - bit_offset: 0 + bit_size: 16 + description: Sub second value + name: SS +fieldset/TAMPCR: + description: tamper configuration register + fields: + - bit_offset: 0 + bit_size: 1 + description: Tamper 1 detection enable + name: TAMP1E + - bit_offset: 1 + bit_size: 1 + description: Active level for tamper 1 + name: TAMP1TRG + - bit_offset: 2 + bit_size: 1 + description: Tamper interrupt enable + name: TAMPIE + - bit_offset: 3 + bit_size: 1 + description: Tamper 2 detection enable + name: TAMP2E + - bit_offset: 4 + bit_size: 1 + description: Active level for tamper 2 + name: TAMP2TRG + - bit_offset: 5 + bit_size: 1 + description: Tamper 3 detection enable + name: TAMP3E + - bit_offset: 6 + bit_size: 1 + description: Active level for tamper 3 + name: TAMP3TRG + - bit_offset: 7 + bit_size: 1 + description: Activate timestamp on tamper detection event + name: TAMPTS + - bit_offset: 8 + bit_size: 3 + description: Tamper sampling frequency + name: TAMPFREQ + - bit_offset: 11 + bit_size: 2 + description: Tamper filter count + name: TAMPFLT + - bit_offset: 13 + bit_size: 2 + description: Tamper precharge duration + name: TAMPPRCH + - bit_offset: 15 + bit_size: 1 + description: TAMPER pull-up disable + name: TAMPPUDIS + - bit_offset: 16 + bit_size: 1 + description: Tamper 1 interrupt enable + name: TAMP1IE + - bit_offset: 17 + bit_size: 1 + description: Tamper 1 no erase + name: TAMP1NOERASE + - bit_offset: 18 + bit_size: 1 + description: Tamper 1 mask flag + name: TAMP1MF + - bit_offset: 19 + bit_size: 1 + description: Tamper 2 interrupt enable + name: TAMP2IE + - bit_offset: 20 + bit_size: 1 + description: Tamper 2 no erase + name: TAMP2NOERASE + - bit_offset: 21 + bit_size: 1 + description: Tamper 2 mask flag + name: TAMP2MF + - bit_offset: 22 + bit_size: 1 + description: Tamper 3 interrupt enable + name: TAMP3IE + - bit_offset: 23 + bit_size: 1 + description: Tamper 3 no erase + name: TAMP3NOERASE + - bit_offset: 24 + bit_size: 1 + description: Tamper 3 mask flag + name: TAMP3MF +fieldset/TR: + description: time register + fields: + - bit_offset: 0 + bit_size: 4 + description: Second units in BCD format + name: SU + - bit_offset: 4 + bit_size: 3 + description: Second tens in BCD format + name: ST + - bit_offset: 8 + bit_size: 4 + description: Minute units in BCD format + name: MNU + - bit_offset: 12 + bit_size: 3 + description: Minute tens in BCD format + name: MNT + - bit_offset: 16 + bit_size: 4 + description: Hour units in BCD format + name: HU + - bit_offset: 20 + bit_size: 2 + description: Hour tens in BCD format + name: HT + - bit_offset: 22 + bit_size: 1 + description: AM/PM notation + name: PM +fieldset/TSDR: + description: time stamp date register + fields: + - bit_offset: 0 + bit_size: 4 + description: Date units in BCD format + name: DU + - bit_offset: 4 + bit_size: 2 + description: Date tens in BCD format + name: DT + - bit_offset: 8 + bit_size: 4 + description: Month units in BCD format + name: MU + - bit_offset: 12 + bit_size: 1 + description: Month tens in BCD format + name: MT + - bit_offset: 13 + bit_size: 3 + description: Week day units + name: WDU +fieldset/TSSSR: + description: timestamp sub second register + fields: + - bit_offset: 0 + bit_size: 16 + description: Sub second value + name: SS +fieldset/TSTR: + description: time stamp time register + fields: + - bit_offset: 0 + bit_size: 4 + description: Second units in BCD format + name: SU + - bit_offset: 4 + bit_size: 3 + description: Second tens in BCD format + name: ST + - bit_offset: 8 + bit_size: 4 + description: Minute units in BCD format + name: MNU + - bit_offset: 12 + bit_size: 3 + description: Minute tens in BCD format + name: MNT + - bit_offset: 16 + bit_size: 4 + description: Hour units in BCD format + name: HU + - bit_offset: 20 + bit_size: 2 + description: Hour tens in BCD format + name: HT + - bit_offset: 22 + bit_size: 1 + description: AM/PM notation + name: PM +fieldset/WPR: + description: write protection register + fields: + - bit_offset: 0 + bit_size: 8 + description: Write protection key + name: KEY +fieldset/WUTR: + description: wakeup timer register + fields: + - bit_offset: 0 + bit_size: 16 + description: Wakeup auto-reload value bits + name: WUT diff --git a/stm32data/__main__.py b/stm32data/__main__.py index bda06df..1d12b53 100755 --- a/stm32data/__main__.py +++ b/stm32data/__main__.py @@ -148,6 +148,7 @@ perimap = [ ('.*:MDIOS:mdios1_v1_0', 'mdios_v1/MDIOS'), ('.*:QUADSPI:quadspi1_v1_0', 'quadspi_v1/QUADSPI'), ('.*:RTC:rtc2_v2_6', 'rtc_v2/RTC'), + ('.*:RTC:rtc2_v2_WB', 'rtc_wb/RTC'), ('.*:SAI:sai1_v1_1', 'sai_v1/SAI'), ('.*:SDMMC:sdmmc_v1_3', 'sdmmc_v1/SDMMC'), ('.*:SPDIFRX:spdifrx1_v1_0', 'spdifrx_v1/SPDIFRX'), @@ -200,6 +201,7 @@ perimap = [ ('STM32L1.*:PWR:.*', 'pwr_l1/PWR'), ('STM32U5.*:PWR:.*', 'pwr_u5/PWR'), ('STM32WL.*:PWR:.*', 'pwr_wl5/PWR'), + ('STM32WB.*:PWR:.*', 'pwr_wb55/PWR'), ('STM32H7.*:FLASH:.*', 'flash_h7/FLASH'), ('STM32F0.*:FLASH:.*', 'flash_f0/FLASH'), ('STM32F1.*:FLASH:.*', 'flash_f1/FLASH'), @@ -208,6 +210,7 @@ perimap = [ ('STM32F7.*:FLASH:.*', 'flash_f7/FLASH'), ('STM32L4.*:FLASH:.*', 'flash_l4/FLASH'), ('STM32U5.*:FLASH:.*', 'flash_u5/FLASH'), + ('STM32WB.*:FLASH:.*', 'flash_wb55/FLASH'), ('STM32F7.*:ETH:ETH:ethermac110_v2_0', 'eth_v1c/ETH'), ('.*ETH:ethermac110_v3_0', 'eth_v2/ETH'),