17#ifndef CC26X0_CC13X0_PRCM_H
18#define CC26X0_CC13X0_PRCM_H
52#define DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_mask 0x6
53#define DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_HF_RCOSC 0x0
54#define DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_HF_XOSC 0x4
55#define DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_LF_RCOSC 0x8
56#define DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_LF_XOSC 0xC
57#define DDI_0_OSC_CTL0_ACLK_REF_SRC_SEL_RCOSC_mask 0x60
58#define DDI_0_OSC_CTL0_ACLK_REF_SRC_SEL_RCOSC_HF 0x00
59#define DDI_0_OSC_CTL0_ACLK_REF_SRC_SEL_XOSC_HF 0x20
60#define DDI_0_OSC_CTL0_ACLK_REF_SRC_SEL_RCOSC_LF 0x40
61#define DDI_0_OSC_CTL0_ACLK_REF_SRC_SEL_XOSC_LF 0x60
62#define DDI_0_OSC_CTL0_ACLK_TDC_SRC_SEL_RCOSC_mask 0x180
63#define DDI_0_OSC_CTL0_ACLK_TDC_SRC_SEL_RCOSC_HF 0x000
64#define DDI_0_OSC_CTL0_ACLK_TDC_SRC_SEL_RCOSC_LF 0x080
65#define DDI_0_OSC_CTL0_ACLK_TDC_SRC_SEL_XOSC_HF 0x100
66#define DDI_0_OSC_CTL0_DOUBLER_START_DURATION_mask 0x6000000
67#define DDI_0_OSC_CTL0_BYPASS_RCOSC_LF_CLK_QUAL 0x10000000
68#define DDI_0_OSC_CTL0_BYPASS_XOSC_LF_CLK_QUAL 0x20000000
69#define DDI_0_OSC_CTL0_XTAL_IS_24M 0x80000000
76#define DDI0_OSC_BASE 0x400CA000
82#define DDI_0_OSC ((ddi0_osc_regs_t *) (DDI0_OSC_BASE))
97#define AON_SYSCTL_BASE 0x40090000
100#define AON_SYSCTL ((aon_sysctl_regs_t *) (AON_SYSCTL_BASE))
129#define MCUCLK_PWR_DWN_SRC 0x1
130#define MCUCLK_PWR_DWN_SRC_mask 0x3
131#define MCUCLK_RCOSC_HF_CAL_DONE 0x4
133#define AUXCLK_SRC_HF 0x1
134#define AUXCLK_SRC_LF 0x4
135#define AUXCLK_SRC_mask 0x7
136#define AUXCLK_SCLK_HF_DIV_pos 8
137#define AUXCLK_SCLK_HF_DIV_mask 0x700
138#define AUXCLK_PWR_DWN_SRC_pos 11
139#define AUXCLK_PWR_DWN_SRC_mask 0x1800
141#define MCUCFG_SRAM_RET_OFF 0x0
142#define MCUCFG_SRAM_RET_B0 0x1
143#define MCUCFG_SRAM_RET_B01 0x3
144#define MCUCFG_SRAM_RET_B012 0x7
145#define MCUCFG_SRAM_RET_B0124 0xF
146#define MCUCFG_SRAM_FIXED_WU_EN 0x100
147#define MCUCFG_SRAM_VIRT_OFF 0x200
149#define AUXCFG_RAM_RET_EN 0x1
151#define AUXCTL_AUX_FORCE_ON 0x1
152#define AUXCTL_SWEV 0x2
153#define AUXCTL_SCE_RUN_EN 0x3
154#define AUXCTL_RESET_REQ 0x80000000
156#define PWRSTAT_AUX_RESET_DONE 0x2
157#define PWRSTAT_AUX_BUS_CONNECTED 0x4
158#define PWRSTAT_MCU_PD_ON 0x10
159#define PWRSTAT_AUX_PD_ON 0x20
160#define PWRSTAT_JTAG_PD_ON 0x40
161#define PWRSTAT_AUX_PWR_DNW 0x200
163#define SHUTDOWN_EN 0x1
165#define AONWUC_CTL0_MCU_SRAM_ERASE 0x4
166#define AONWUC_CTL0_AUX_SRAM_ERASE 0x8
167#define AONWUC_CTL0_PWR_DWN_DIS 0x10
169#define AONWUC_CTL1_MCU_WARM_RESET 0x1
170#define AONWUC_CTL1_MCU_RESET_SRC 0x2
172#define RECHARGECFG_PER_E_mask 0x00000007
173#define RECHARGECFG_PER_M_mask 0x000000F8
174#define RECHARGECFG_MAX_PER_E_mask 0x00000700
175#define RECHARGECFG_MAX_PER_M_mask 0x0000F800
176#define RECHARGECFG_C1_mask 0x000F0000
177#define RECHARGECFG_C2_mask 0x000F0000
178#define RECHARGECFG_ADAPTIVE_EN 0x80000000
180#define RECHARGESTAT_MAX_USED_PER_mask 0x0FFFF
181#define RECHARGESTAT_VDDR_SMPLS_mask 0xF0000
183#define OSCCFG_PER_E_mask 0x07
184#define OSCCFG_PER_M_mask 0xF8
186#define JTAGCFG_JTAG_PD_FORCE_ON 0x10
193#define AON_WUC_BASE 0x40091000
196#define AON_WUC ((aon_wuc_regs_t *) (AON_WUC_BASE))
222#define AON_RTC_CTL_RTC_UPD_EN 0x00000002
228#define AON_RTC_BASE (PERIPH_BASE + 0x92000)
231#define AON_RTC ((aon_rtc_regs_t *) (AON_RTC_BASE))
315#define CLKLOADCTL_LOAD 0x1
316#define CLKLOADCTL_LOADDONE 0x2
318#define PDCTL0_RFC_ON 0x1
319#define PDCTL0_SERIAL_ON 0x2
320#define PDCTL0_PERIPH_ON 0x4
322#define PDSTAT0_RFC_ON 0x1
323#define PDSTAT0_SERIAL_ON 0x2
324#define PDSTAT0_PERIPH_ON 0x4
326#define PDCTL1_CPU_ON 0x2
327#define PDCTL1_RFC_ON 0x4
328#define PDCTL1_VIMS_ON 0x8
330#define PDSTAT1_CPU_ON 0x2
331#define PDSTAT1_RFC_ON 0x4
332#define PDSTAT1_VIMS_ON 0x8
334#define GPIOCLKGR_CLK_EN 0x1
335#define I2CCLKGR_CLK_EN 0x1
336#define UARTCLKGR_CLK_EN_UART0 0x1
338#define GPIOCLKGS_CLK_EN 0x1
339#define I2CCLKGS_CLK_EN 0x1
340#define UARTCLKGS_CLK_EN_UART0 0x1
342#define GPIOCLKGDS_CLK_EN 0x1
343#define I2CCLKGDS_CLK_EN 0x1
344#define UARTCLKGDS_CLK_EN_UART0 0x1
351#define PRCM_BASE (PERIPH_BASE + 0x82000)
352#define PRCM_BASE_NONBUF (PERIPH_BASE_NONBUF + 0x82000)
355#define PRCM ((prcm_regs_t *) (PRCM_BASE))
356#define PRCM_NONBUF ((prcm_regs_t *) (PRCM_BASE_NONBUF))
CC26xx, CC13xx definitions.
volatile uint32_t reg32_t
Unsigned 32-bit register type.
reg32_t SUBSECINC
Subseconds Increment.
reg32_t EVFLAGS
Event Flags, RTC Status.
reg32_t CHCTL
Channel Configuration.
reg32_t CH1CAPT
Channel 1 Capture Value.
reg32_t CH0CMP
Channel 0 Compare Value.
reg32_t SEC
Second Counter Value, Integer Part.
reg32_t SYNC
AON Synchronization.
reg32_t CH1CMP
Channel 1 Compare Value.
reg32_t CH2CMP
Channel 2 Compare Value.
reg32_t SUBSEC
Second Counter Value, Fractional Part.
reg32_t CH2CMPINC
Channel 2 Compare Value Auto-increment.
reg32_t RESETCTL
reset management
reg32_t PWRCTL
power management
reg32_t SLEEPCTL
sleep mode
reg32_t __reserved1
Reserved.
reg32_t JTAGCFG
JTAG config.
reg32_t MCUCLK
MCU clock management.
reg32_t AUXCLK
AUX clock management.
reg32_t SHUTDOWN
shutdown control
reg32_t __reserved3
Reserved.
reg32_t AUXCFG
AUX config.
reg32_t JTAGUSERCODE
JTAG USERCODE.
reg32_t OSCCFG
oscillator config
reg32_t RECHARGECFG
recharge controller config
reg32_t PWRSTAT
power status
reg32_t MCUCFG
MCU config.
reg32_t RECHARGESTAT
recharge controller status
reg32_t AUXCTL
AUX control.
reg32_t ANABYPASSVAL1
analog bypass values 1
reg32_t XOSCHFCTL
XOSCHF control.
reg32_t ATESTCTL
analog test control
reg32_t LFOSCCTL
low frequency oscillator control
reg32_t AMPCOMPTH1
amplitude compensation threshold 1
reg32_t AMPCOMPTH2
amplitude compensation threshold 2
reg32_t ADCDOUBLERNANOAMPCTL
ADC doubler nanoamp control.
reg32_t RCOSCHFCTL
RCOSCHF control.
reg32_t ANABYPASSVAL2
analog bypass values 2
reg32_t RADCEXTCFG
RADC external config.
reg32_t AMPCOMPCTL
amplitude compensation control
reg32_t I2SBCLKDIV
BCLK division ratio.
reg32_t PDCTL1VIMS
VIMS power domain control.
reg32_t PDCTL1
power domain control
reg32_t GPTCLKGDS
GPT clock gate for deep sleep mode.
reg32_t VIMSCLKG
VIMS clock gate.
reg32_t VDCTL
MCU voltage domain control.
reg32_t UARTCLKGDS
UART clock gate for deep sleep mode.
reg32_t SWRESET
SW initiated resets.
reg32_t I2SBCLKSEL
I2S clock select.
reg32_t I2SCLKGR
I2S clock gate for run mode.
reg32_t CPUCLKDIV
CPU clock division factor.
reg32_t INFRCLKDIVS
infrastructure clock division factor for sleep mode
reg32_t PDSTAT0RFC
RFC power domain status.
reg32_t GPTCLKGR
GPT clock gate for run mode.
reg32_t PDSTAT0SERIAL
SERIAL power domain status.
reg32_t GPIOCLKGDS
GPIO clock gate for deep sleep mode.
reg32_t UARTCLKGS
UART clock gate for sleep mode.
reg32_t SECDMACLKGR
TRNG, CRYPTO, and UDMA clock gate for run mode.
reg32_t PDSTAT0
power domain status
reg32_t SSICLKGS
SSI clock gate for sleep mode.
reg32_t __reserved9
power domain control
reg32_t I2CCLKGR
I2C clock gate for run mode.
reg32_t __reserved13
Reserved.
reg32_t PDCTL1CPU
CPU power domain control.
reg32_t RFCCLKG
RFC clock gate.
reg32_t I2SCLKCTL
I2S clock control.
reg32_t __reserved7
Reserved.
reg32_t INFRCLKDIVR
infrastructure clock division factor for run mode
reg32_t I2SMCLKDIV
MCLK division ratio.
reg32_t I2SCLKGS
I2S clock gate for sleep mode.
reg32_t I2SCLKGDS
I2S clock gate for deep sleep mode.
reg32_t PDCTL0RFC
RFC power domain control.
reg32_t PDCTL0SERIAL
SERIAL power domain control.
reg32_t GPTCLKGS
GPT clock gate for sleep mode.
reg32_t SSICLKGR
SSI clock gate for run mode.
reg32_t PDSTAT1BUS
BUS power domain status.
reg32_t I2CCLKGS
I2C clock gate for sleep mode.
reg32_t PDSTAT1VIMS
VIMS power domain status.
reg32_t PDRETEN
power domain retention (undocumented)
reg32_t GPIOCLKGR
GPIO clock gate for run mode.
reg32_t RAMHWOPT
undocumented
reg32_t PDCTL0PERIPH
PERIPH power domain control.
reg32_t PDSTAT1CPU
CPU power domain status.
reg32_t WARMRESET
WARM reset control and status.
reg32_t PDCTL0
power domain control
reg32_t PDSTAT0PERIPH
PERIPH power domain status.
reg32_t SECDMACLKGDS
TRNG, CRYPTO, and UDMA clock gate for deep sleep mode.
reg32_t I2SWCLKDIV
WCLK division ratio.
reg32_t PDSTAT1
power domain status
reg32_t RAMRETEN
memory retention control
reg32_t __reserved10
Reserved.
reg32_t INFRCLKDIVDS
infrastructure clock division factor for deep sleep mode
reg32_t UARTCLKGR
UART clock gate for run mode.
reg32_t PDSTAT1RFC
RFC power domain status.
reg32_t GPIOCLKGS
GPIO clock gate for sleep mode.
reg32_t CLKLOADCTL
clock load control
reg32_t SECDMACLKGS
TRNG, CRYPTO, and UDMA clock gate for sleep mode.
reg32_t SSICLKGDS
SSI clock gate for deep sleep mode.
reg32_t GPTCLKDIV
GPT scalar.
reg32_t RFCMODESEL
selected RFC mode
reg32_t PDCTL1RFC
RFC power domain control.
reg32_t I2CCLKGDS
I2C clock gate for deep sleep mode.