CC26x2, CC13x2 PRCM register definitions. More...
CC26x2, CC13x2 PRCM register definitions.
Definition in file cc26x2_cc13x2_prcm.h.
#include <cc26xx_cc13xx.h>
Go to the source code of this file.
Data Structures | |
struct | ddi0_osc_regs_t |
DDI_0_OSC registers. More... | |
struct | ddi0_osc_regs_m16_t |
DDI_0_OSC registers with masked 16-bit access. More... | |
struct | aon_pmctl_regs_t |
AON_PMCTL registers. More... | |
struct | aon_rtc_regs_t |
AON_RTC registers. More... | |
struct | prcm_regs_t |
PRCM registers. More... | |
Macros | |
#define | DDI_0_OSC ((ddi0_osc_regs_t *) (DDI0_OSC_BASE)) |
DDI_0_OSC register bank. | |
#define | DDI_0_OSC_M16 ((ddi0_osc_regs_m16_t *) (DDI0_OSC_BASE_M16)) |
DDI_0_OSC 16-bit masked access register bank. | |
#define | AON_PMCTL ((aon_pmctl_regs_t *) (AON_PMCTL_BASE)) |
AON_PMCTL register bank. | |
#define | AON_RTC_CTL_RTC_UPD_EN 0x00000002 |
RTC_UPD is a 16 KHz signal used to sync up the radio timer. More... | |
#define | AON_RTC ((aon_rtc_regs_t *) (AON_RTC_BASE)) |
AON_RTC register bank. | |
#define | DDI_0_OSC_CTL0_SCLK_HF_SRC_SEL_m 0x00000001 |
DDI_0_OSC register values. | |
#define | DDI_0_OSC_CTL0_SCLK_HF_SRC_SEL_s 0 |
#define | DDI_0_OSC_CTL0_SCLK_HF_SRC_SEL_XOSC 0x00000001 |
#define | DDI_0_OSC_CTL0_SCLK_HF_SRC_SEL_RCOSC 0x00000000 |
#define | DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_m 0x0000000C |
#define | DDI_0_OSC_CTL0_SCLK_LF_SRC_SEL_s 2 |
#define | DDI_0_OSC_CTL0_ACLK_TDC_SRC_SEL 0x00000180 |
#define | DDI_0_OSC_CTL0_CLK_LOSS_EN 0x00000200 |
#define | DDI_0_OSC_CTL0_XOSC_LF_DIG_BYPASS 0x00000400 |
#define | DDI_0_OSC_CTL0_XOSC_HF_POWER_MODE 0x00000800 |
#define | DDI_0_OSC_CTL0_RCOSC_LF_TRIMMED 0x00001000 |
#define | DDI_0_OSC_CTL0_HPOSC_MODE_EN 0x00004000 |
#define | DDI_0_OSC_CTL0_CLK_DCDC_SRC_SEL_m 0x01000000 |
#define | DDI_0_OSC_CTL0_DOUBLER_RESET_DURATION 0x02000000 |
#define | DDI_0_OSC_CTL0_DOUBLER_START_DURATION 0x0C000000 |
#define | DDI_0_OSC_CTL0_BYPASS_RCOSC_LF_CLK_QUAL 0x10000000 |
#define | DDI_0_OSC_CTL0_BYPASS_XOSC_LF_CLK_QUAL 0x20000000 |
#define | DDI_0_OSC_CTL0_XTAL_IS_24M 0x80000000 |
#define | DDI_0_OSC_STAT0_PENDINGSCLKHFSWITCHING 0x00000001 |
#define | DDI_0_OSC_STAT0_SCLK_HF_SRC_m 0x10000000 |
#define | DDI_0_OSC_STAT0_SCLK_HF_SRC_s 28 |
#define | DDI_0_OSC_STAT0_SCLK_LF_SRC_m 0x60000000 |
#define | DDI_0_OSC_STAT0_SCLK_LF_SRC_s 29 |
#define | DDI_DIR 0x00000000 |
#define | DDI_SET 0x00000080 |
#define | DDI_CLR 0x00000100 |
#define | DDI_MASK4B 0x00000200 |
#define | DDI_MASK8B 0x00000300 |
#define | DDI_MASK16B 0x00000400 |
#define | DDI0_OSC_BASE (PERIPH_BASE + 0xCA000) |
DDI0_OSC base address. | |
#define | DDI0_OSC_BASE_M16 (DDI0_OSC_BASE + DDI_MASK16B) |
DDI0_OSC 16-bit masked access base address. | |
#define | OSC_RCOSC_HF 0x00000000 |
SCLK_HF oscillators. More... | |
#define | OSC_XOSC_HF 0x00000001 |
External HF crystal oscillator. | |
void | osc_hf_source_switch (uint32_t osc) |
DDI_0_OSC functions. More... | |
#define | AON_PMCTL_SLEEPCTL_IO_PAD_SLEEP_DIS 0x00000001 |
AON_PMTCTL register values. | |
#define | AON_PMCTL_RESETCTL_BOOT_DET_1_CLR_m 0x02000000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_0_CLR_m 0x01000000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_1_SET_m 0x00020000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_0_SET_m 0x00010000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_1_m 0x00002000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_0_m 0x00001000 |
#define | AON_PMCTL_RESETCTL_BOOT_DET_0_s 12 |
#define | AON_PMCTL_RESETCTL_MCU_WARM_RESET_m 0x00000010 |
#define | AON_PMCTL_BASE (PERIPH_BASE + 0x90000) |
AON_PMCTL base address. | |
#define | AON_RTC_BASE (PERIPH_BASE + 0x92000) |
AON_RTC base address. | |
#define | CLKLOADCTL_LOAD 0x1 |
PRCM register values. | |
#define | CLKLOADCTL_LOADDONE 0x2 |
#define | PDCTL0_RFC_ON 0x1 |
#define | PDCTL0_SERIAL_ON 0x2 |
#define | PDCTL0_PERIPH_ON 0x4 |
#define | PDSTAT0_RFC_ON 0x1 |
#define | PDSTAT0_SERIAL_ON 0x2 |
#define | PDSTAT0_PERIPH_ON 0x4 |
#define | PDCTL1_CPU_ON 0x2 |
#define | PDCTL1_RFC_ON 0x4 |
#define | PDCTL1_VIMS_ON 0x8 |
#define | PDSTAT1_CPU_ON 0x2 |
#define | PDSTAT1_RFC_ON 0x4 |
#define | PDSTAT1_VIMS_ON 0x8 |
#define | GPIOCLKGR_CLK_EN 0x1 |
#define | I2CCLKGR_CLK_EN 0x1 |
#define | UARTCLKGR_CLK_EN_UART0 0x1 |
#define | UARTCLKGR_CLK_EN_UART1 0x2 |
#define | GPIOCLKGS_CLK_EN 0x1 |
#define | I2CCLKGS_CLK_EN 0x1 |
#define | UARTCLKGS_CLK_EN_UART0 0x1 |
#define | UARTCLKGS_CLK_EN_UART1 0x2 |
#define | GPIOCLKGDS_CLK_EN 0x1 |
#define | I2CCLKGDS_CLK_EN 0x1 |
#define | UARTCLKGDS_CLK_EN_UART0 0x1 |
#define | UARTCLKGDS_CLK_EN_UART1 0x2 |
#define | PRCM_BASE (PERIPH_BASE + 0x82000) |
PRCM base address. | |
#define | PRCM_BASE_NONBUF (PERIPH_BASE_NONBUF + 0x82000) |
PRCM base address (nonbuf) | |
#define | PRCM ((prcm_regs_t *) (PRCM_BASE)) |
PRCM register bank. | |
#define | PRCM_NONBUF ((prcm_regs_t *) (PRCM_BASE_NONBUF)) |
PRCM register bank (nonbuf) | |
#define AON_RTC_CTL_RTC_UPD_EN 0x00000002 |
RTC_UPD is a 16 KHz signal used to sync up the radio timer.
The 16 Khz is SCLK_LF divided by 2
0h = RTC_UPD signal is forced to 0 1h = RTC_UPD signal is toggling @16 kHz
Definition at line 232 of file cc26x2_cc13x2_prcm.h.
#define OSC_RCOSC_HF 0x00000000 |
void osc_hf_source_switch | ( | uint32_t | osc | ) |
DDI_0_OSC functions.
Switch the high frequency clock.
[in] | osc | The oscillator to use. |