CC13xx Driver Library
prcm.c File Reference
#include "prcm.h"

Macros

#define PRCM_PERIPH_INDEX(a)   (((a) >> 8) & 0xf)
 
#define PRCM_PERIPH_MASKBIT(a)   (0x00000001 << ((a) & 0x1f))
 

Functions

void PRCMInfClockConfigureSet (uint32_t ui32ClkDiv, uint32_t ui32PowerMode)
 Configure the infrastructure clock. More...
 
uint32_t PRCMInfClockConfigureGet (uint32_t ui32PowerMode)
 Use this function to get the infrastructure clock configuration. More...
 
void PRCMAudioClockConfigSet (uint32_t ui32ClkConfig, uint32_t ui32SampleRate)
 Configure the audio clock generation. More...
 
void PRCMAudioClockConfigSetOverride (uint32_t ui32ClkConfig, uint32_t ui32MstDiv, uint32_t ui32BitDiv, uint32_t ui32WordDiv)
 Configure the audio clock generation with manual setting of clock divider. More...
 
void PRCMPowerDomainOn (uint32_t ui32Domains)
 Turn power on in power domains in the MCU domain. More...
 
void PRCMPowerDomainOff (uint32_t ui32Domains)
 Turn off a specific power domain. More...
 
void PRCMPeripheralRunEnable (uint32_t ui32Peripheral)
 Enables a peripheral in Run mode. More...
 
void PRCMPeripheralRunDisable (uint32_t ui32Peripheral)
 Disables a peripheral in Run mode. More...
 
void PRCMPeripheralSleepEnable (uint32_t ui32Peripheral)
 Enables a peripheral in sleep mode. More...
 
void PRCMPeripheralSleepDisable (uint32_t ui32Peripheral)
 Disables a peripheral in sleep mode. More...
 
void PRCMPeripheralDeepSleepEnable (uint32_t ui32Peripheral)
 Enables a peripheral in deep-sleep mode. More...
 
void PRCMPeripheralDeepSleepDisable (uint32_t ui32Peripheral)
 Disables a peripheral in deep-sleep mode. More...
 
uint32_t PRCMPowerDomainStatus (uint32_t ui32Domains)
 Get the status for a specific power domain. More...
 
void PRCMDeepSleep (void)
 Put the processor into deep-sleep mode. More...
 

Variables

static const uint32_t g_pui32RCGCRegs []
 
static const uint32_t g_pui32SCGCRegs []
 
static const uint32_t g_pui32DCGCRegs []
 

Macro Definition Documentation

Variable Documentation

const uint32_t g_pui32DCGCRegs[]
static
Initial value:
=
{
PRCM_O_GPTCLKGDS ,
PRCM_O_SSICLKGDS ,
PRCM_O_UARTCLKGDS ,
PRCM_O_I2CCLKGDS ,
PRCM_O_SECDMACLKGDS ,
PRCM_O_GPIOCLKGDS ,
PRCM_O_I2SCLKGDS
}

Referenced by PRCMPeripheralDeepSleepDisable(), and PRCMPeripheralDeepSleepEnable().

const uint32_t g_pui32RCGCRegs[]
static
Initial value:
=
{
PRCM_O_GPTCLKGR ,
PRCM_O_SSICLKGR ,
PRCM_O_UARTCLKGR ,
PRCM_O_I2CCLKGR ,
PRCM_O_SECDMACLKGR ,
PRCM_O_GPIOCLKGR ,
PRCM_O_I2SCLKGR
}

Referenced by PRCMPeripheralRunDisable(), and PRCMPeripheralRunEnable().

const uint32_t g_pui32SCGCRegs[]
static
Initial value:
=
{
PRCM_O_GPTCLKGS ,
PRCM_O_SSICLKGS ,
PRCM_O_UARTCLKGS ,
PRCM_O_I2CCLKGS ,
PRCM_O_SECDMACLKGS ,
PRCM_O_GPIOCLKGS ,
PRCM_O_I2SCLKGS
}

Referenced by PRCMPeripheralSleepDisable(), and PRCMPeripheralSleepEnable().