Loading...
Searching...
No Matches
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.
 

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)
#define RCOSC16M_FREQ
16 MHz internal RC oscillator frequency
Definition cc2538.h:801
#define XOSC32M_FREQ
32 MHz external oscillator/clock frequency
Definition cc2538.h:800
#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.

◆ SYS_CTRL

#define SYS_CTRL   ( (cc2538_sys_ctrl_t*)0x400d2000 )

One and only instance of the System Control module.

Definition at line 149 of file cc2538_sys_ctrl.h.