cc2538_sys_ctrl.h¶
CC2538 System Control interface.
-
SYS_CTRL¶ One and only instance of the System Control module.
1
( (cc2538_sys_ctrl_t*)0x400d2000 )
-
sys_clock_freq()¶ Compute the current system clock frequency based on the SYS_CTRL register states.
1 2 3 4
((uint32_t)\ (SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.OSC ? \ RCOSC16M_FREQ : XOSC32M_FREQ) >> \ SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.SYS_DIV)
-
struct
cc2538_sys_ctrl_t¶ System Control component registers.
-
cc2538.h::cc2538_reg_tCLOCK_CTRL¶ Clock control register.
-
cc2538.h::cc2538_reg_tSYS_DIV¶ System clock rate setting.
Current functional frequency for system clock.
-
cc2538.h::cc2538_reg_tRESERVED1¶ Reserved bits.
-
cc2538.h::cc2538_reg_tIO_DIV¶ I/O clock rate setting.
Current functional frequency for IO_CLK.
-
cc2538.h::cc2538_reg_tRESERVED2¶ Reserved bits.
-
cc2538.h::cc2538_reg_tOSC¶ System clock oscillator selection.
Current clock source selected.
-
cc2538.h::cc2538_reg_tOSC_PD¶ Oscillator power-down.
-
cc2538.h::cc2538_reg_tRESERVED3¶ Reserved bits.
-
cc2538.h::cc2538_reg_tAMP_DET¶ Amplitude detector of XOSC during power up.
-
cc2538.h::cc2538_reg_tRESERVED4¶ Reserved bits.
-
cc2538.h::cc2538_reg_tOSC32K¶ 32-kHz clock oscillator selection
Current 32-kHz clock oscillator selected.
-
cc2538.h::cc2538_reg_tOSC32K_CADIS¶ Disable calibration 32-kHz RC oscillator.
-
cc2538.h::cc2538_reg_tRESERVED5¶ Reserved bits.
-
struct cc2538_sys_ctrl_t::@38::@43
CLOCK_CTRLbits¶
-
union cc2538_sys_ctrl_t::@38
cc2538_sys_ctrl_clk_ctrl¶ Clock control register.
-
cc2538.h::cc2538_reg_tCLOCK_STA¶ Clock status register.
-
cc2538.h::cc2538_reg_tRESERVED6¶ Reserved bits.
-
cc2538.h::cc2538_reg_tRESERVED7¶ Reserved bits.
-
cc2538.h::cc2538_reg_tHSOSC_STB¶ HSOSC stable status.
-
cc2538.h::cc2538_reg_tXOSC_STB¶ XOSC stable status.
-
cc2538.h::cc2538_reg_tSOURCE_CHANGE¶ System clock source change.
-
cc2538.h::cc2538_reg_tRESERVED8¶ Reserved bits.
-
cc2538.h::cc2538_reg_tRST¶ Last source of reset.
-
cc2538.h::cc2538_reg_tOSC32K_CALDIS¶ Disable calibration 32-kHz RC oscillator.
-
cc2538.h::cc2538_reg_tSYNC_32K¶ 32-kHz clock source synced to undivided system clock (16 or 32 MHz)
-
cc2538.h::cc2538_reg_tRESERVED9¶ Reserved bits.
-
struct cc2538_sys_ctrl_t::@39::@44
CLOCK_STAbits¶
-
union cc2538_sys_ctrl_t::@39
cc2538_sys_ctrl_clk_sta¶ Clock status register.
-
cc2538.h::cc2538_reg_tRCGCGPT¶ Module clocks for GPT[3:0] when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tSCGCGPT¶ Module clocks for GPT[3:0] when the CPU is in sleep mode.
-
cc2538.h::cc2538_reg_tDCGCGPT¶ Module clocks for GPT[3:0] when the CPU is in PM0.
-
cc2538.h::cc2538_reg_tSRGPT¶ Reset for GPT[3:0].
-
cc2538.h::cc2538_reg_tRCGCSSI¶ Module clocks for SSI[1:0] when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tSCGCSSI¶ Module clocks for SSI[1:0] when the CPU is insSleep mode.
-
cc2538.h::cc2538_reg_tDCGCSSI¶ Module clocks for SSI[1:0] when the CPU is in PM0.
-
cc2538.h::cc2538_reg_tSRSSI¶ Reset for SSI[1:0].
-
cc2538.h::cc2538_reg_tRCGCUART¶ Module clocks for UART[1:0] when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tUART0¶ Enable UART0 clock in active (run) mode.
Enable UART0 clock in PM0.
Enable UART0 clock in sleep mode.
-
cc2538.h::cc2538_reg_tUART1¶ Enable UART1 clock in active (run) mode.
Enable UART1 clock in PM0.
Enable UART1 clock in sleep mode.
-
cc2538.h::cc2538_reg_tRESERVED¶ Reserved bits.
-
struct cc2538_sys_ctrl_t::@40::@45
RCGCUARTbits¶
-
union cc2538_sys_ctrl_t::@40
cc2538_sys_ctrl_unnamed1¶ UART module clock register - active mode.
-
cc2538.h::cc2538_reg_tSCGCUART¶ Module clocks for UART[1:0] when the CPU is in sleep mode.
-
struct cc2538_sys_ctrl_t::@41::@46
SCGCUARTbits¶
-
union cc2538_sys_ctrl_t::@41
cc2538_sys_ctrl_unnamed2¶ UART module clock register - sleep mode.
-
cc2538.h::cc2538_reg_tDCGCUART¶ Module clocks for UART[1:0] when the CPU is in PM0.
-
struct cc2538_sys_ctrl_t::@42::@47
DCGCUARTbits¶
-
union cc2538_sys_ctrl_t::@42
cc2538_sys_ctrl_unnamed3¶ UART module clock register - PM0 mode.
-
cc2538.h::cc2538_reg_tSRUART¶ Reset for UART[1:0].
-
cc2538.h::cc2538_reg_tRCGCI2C¶ Module clocks for I2C when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tSCGCI2C¶ Module clocks for I2C when the CPU is in sleep mode.
-
cc2538.h::cc2538_reg_tDCGCI2C¶ Module clocks for I2C when the CPU is in PM0.
-
cc2538.h::cc2538_reg_tSRI2C¶ Reset for I2C.
-
cc2538.h::cc2538_reg_tRCGCSEC¶ Module clocks for the security module when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tSCGCSEC¶ Module clocks for the security module when the CPU is in sleep mode.
-
cc2538.h::cc2538_reg_tDCGCSEC¶ Module clocks for the security module when the CPU is in PM0.
-
cc2538.h::cc2538_reg_tSRSEC¶ Reset for the security module.
-
cc2538.h::cc2538_reg_tPMCTL¶ Power mode.
-
cc2538.h::cc2538_reg_tSRCRC¶ CRC on state retention.
-
cc2538.h::cc2538_reg_tRESERVED10()¶ Reserved bits.
-
cc2538.h::cc2538_reg_tPWRDBG¶ Power debug register.
-
cc2538.h::cc2538_reg_tRESERVED11()¶ Reserved bits.
-
cc2538.h::cc2538_reg_tCLD¶ This register controls the clock loss detection feature.
-
cc2538.h::cc2538_reg_tRESERVED12()¶ Reserved bits.
-
cc2538.h::cc2538_reg_tIWE¶ This register controls interrupt wake-up.
-
cc2538.h::cc2538_reg_tI_MAP¶ This register selects which interrupt map to be used.
-
cc2538.h::cc2538_reg_tRESERVED13()¶ Reserved bits.
-
cc2538.h::cc2538_reg_tRCGCRFC¶ This register defines the module clocks for RF CORE when the CPU is in active (run) mode.
-
cc2538.h::cc2538_reg_tSCGCRFC¶ This register defines the module clocks for RF CORE when the CPU is in sleep mode.
-
cc2538.h::cc2538_reg_tDCGCRFC¶ This register defines the module clocks for RF CORE when the CPU is in PM0.
-
cc2538.h::cc2538_reg_tEMUOVR¶ This register defines the emulator override controls for power mode and peripheral clock gate.
-