CC2538 System Control

Detailed Description

Files

file  cc2538_sys_ctrl.h
 CC2538 System Control interface.
 

Data Structures

struct  cc2538_sys_ctrl_t
 System Control component registers. More...
 

Macros

#define SYS_CTRL   ( (cc2538_sys_ctrl_t*)0x400d2000 )
 One and only instance of the System Control module.
 
#define sys_clock_freq()
 Compute the current system clock frequency based on the SYS_CTRL register states. More...
 

Macro Definition Documentation

◆ sys_clock_freq

#define sys_clock_freq ( )
Value:
((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 )
#define XOSC32M_FREQ
32 MHz external oscillator/clock frequency
Definition: cc2538.h:809
#define SYS_CTRL
One and only instance of the System Control module.

Compute the current system clock frequency based on the SYS_CTRL register states.

Definition at line 154 of file cc2538_sys_ctrl.h.