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:
((uint32_t)\
(SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.OSC ? \
SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.SYS_DIV)

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

Definition at line 154 of file cc2538_sys_ctrl.h.

XOSC32M_FREQ
#define XOSC32M_FREQ
32 MHz external oscillator/clock frequency
Definition: cc2538.h:801
RCOSC16M_FREQ
#define RCOSC16M_FREQ
16 MHz internal RC oscillator frequency
Definition: cc2538.h:802
SYS_CTRL
#define SYS_CTRL
One and only instance of the System Control module.
Definition: cc2538_sys_ctrl.h:149