CC26xx Driver Library
sys_ctrl.c File Reference
#include <inc/hw_types.h>
#include <inc/hw_ccfg.h>
#include <driverlib/aon_batmon.h>
#include <driverlib/sys_ctrl.h>

Go to the source code of this file.

Data Structures

struct  PowerQualGlobals_t
 

Macros

#define PD_STATE_CACHE_RET   1
 
#define PD_STATE_RFMEM_RET   2
 
#define PD_STATE_XOSC_LPM   4
 
#define PD_STATE_EXT_REG_MODE   8
 
#define CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA_WIDTH   4
 

Functions

int32_t SignExtendVddrTrimValue (uint32_t ui32VddrTrimVal)
 Sign extend the VDDR_TRIM setting (special format ranging from -10 to +21) More...
 
void SysCtrlPowerEverything (void)
 Power up everything. More...
 
void SysCtrlStandby (void)
 Force the system in to standby mode. More...
 
void SysCtrlPowerdown (void)
 Force the system in to power down. More...
 
void SysCtrlShutdown (void)
 Force the system in to shutdown. More...
 
void SysCtrlSetRechargeBeforePowerDown (uint32_t xoscPowerMode)
 Set Recharge values before entering Power Down. More...
 
void SysCtrlAdjustRechargeAfterPowerDown (void)
 Adjust Recharge calculations to be used next. More...
 
void SysCtrl_DCDC_VoltageConditionalControl (void)
 Turns DCDC on or off depending of what is considered to be optimal usage. More...
 
uint32_t SysCtrlResetSourceGet (void)
 Returns last reset source (including "wakeup from shutdown"). More...
 

Variables

static PowerQualGlobals_t powerQualGlobals
 
static const uint32_t g_pui32ModuleCG []
 

Macro Definition Documentation

#define CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA_WIDTH   4

Definition at line 329 of file sys_ctrl.c.

Referenced by SysCtrlSetRechargeBeforePowerDown().

#define PD_STATE_CACHE_RET   1

Definition at line 74 of file sys_ctrl.c.

Referenced by SysCtrlSetRechargeBeforePowerDown().

#define PD_STATE_EXT_REG_MODE   8

Definition at line 77 of file sys_ctrl.c.

Referenced by SysCtrlSetRechargeBeforePowerDown().

#define PD_STATE_RFMEM_RET   2

Definition at line 75 of file sys_ctrl.c.

Referenced by SysCtrlSetRechargeBeforePowerDown().

#define PD_STATE_XOSC_LPM   4

Definition at line 76 of file sys_ctrl.c.

Referenced by SysCtrlSetRechargeBeforePowerDown().

Function Documentation

int32_t SignExtendVddrTrimValue ( uint32_t  ui32VddrTrimVal)

Sign extend the VDDR_TRIM setting (special format ranging from -10 to +21)

Returns

Definition at line 709 of file setup.c.

Referenced by HapiTrimDeviceShutDown(), and SysCtrlSetRechargeBeforePowerDown().

Variable Documentation

const uint32_t g_pui32ModuleCG[]
static
Initial value:
=
{
}
#define PRCM_PERIPH_TIMER1
Definition: prcm.h:181
#define PRCM_PERIPH_TRNG
Definition: prcm.h:191
#define PRCM_PERIPH_I2S
Definition: prcm.h:194
#define PRCM_PERIPH_TIMER0
Definition: prcm.h:180
#define PRCM_PERIPH_TIMER2
Definition: prcm.h:182
#define PRCM_PERIPH_SSI0
Definition: prcm.h:184
#define PRCM_PERIPH_TIMER3
Definition: prcm.h:183
#define PRCM_PERIPH_SSI1
Definition: prcm.h:185
#define PRCM_PERIPH_CRYPTO
Definition: prcm.h:190
#define PRCM_PERIPH_GPIO
Definition: prcm.h:193
#define PRCM_PERIPH_UART0
Definition: prcm.h:186
#define PRCM_PERIPH_UDMA
Definition: prcm.h:192
#define PRCM_PERIPH_I2C0
Definition: prcm.h:188

Definition at line 98 of file sys_ctrl.c.

Referenced by SysCtrlPowerEverything().

PowerQualGlobals_t powerQualGlobals
static

Definition at line 86 of file sys_ctrl.c.