48 #undef PRCMInfClockConfigureSet
49 #define PRCMInfClockConfigureSet NOROM_PRCMInfClockConfigureSet
50 #undef PRCMInfClockConfigureGet
51 #define PRCMInfClockConfigureGet NOROM_PRCMInfClockConfigureGet
52 #undef PRCMAudioClockConfigSet
53 #define PRCMAudioClockConfigSet NOROM_PRCMAudioClockConfigSet
54 #undef PRCMAudioClockConfigSetOverride
55 #define PRCMAudioClockConfigSetOverride NOROM_PRCMAudioClockConfigSetOverride
56 #undef PRCMPowerDomainOn
57 #define PRCMPowerDomainOn NOROM_PRCMPowerDomainOn
58 #undef PRCMPowerDomainOff
59 #define PRCMPowerDomainOff NOROM_PRCMPowerDomainOff
60 #undef PRCMPeripheralRunEnable
61 #define PRCMPeripheralRunEnable NOROM_PRCMPeripheralRunEnable
62 #undef PRCMPeripheralRunDisable
63 #define PRCMPeripheralRunDisable NOROM_PRCMPeripheralRunDisable
64 #undef PRCMPeripheralSleepEnable
65 #define PRCMPeripheralSleepEnable NOROM_PRCMPeripheralSleepEnable
66 #undef PRCMPeripheralSleepDisable
67 #define PRCMPeripheralSleepDisable NOROM_PRCMPeripheralSleepDisable
68 #undef PRCMPeripheralDeepSleepEnable
69 #define PRCMPeripheralDeepSleepEnable NOROM_PRCMPeripheralDeepSleepEnable
70 #undef PRCMPeripheralDeepSleepDisable
71 #define PRCMPeripheralDeepSleepDisable NOROM_PRCMPeripheralDeepSleepDisable
72 #undef PRCMPowerDomainStatus
73 #define PRCMPowerDomainStatus NOROM_PRCMPowerDomainStatus
75 #define PRCMDeepSleep NOROM_PRCMDeepSleep
128 #define PRCM_PERIPH_INDEX(a) (((a) >> 8) & 0xf)
135 #define PRCM_PERIPH_MASKBIT(a) (0x00000001 << ((a) & 0xf))
146 uint32_t ui32Divisor;
207 uint32_t ui32Divisor;
238 if(ui32ClkDiv == 0x0)
242 else if(ui32ClkDiv == 0x1)
246 else if(ui32ClkDiv == 0x2)
250 else if(ui32ClkDiv == 0x3)
273 uint32_t ui32WordDiv;
296 switch(ui32SampleRate)
351 uint32_t ui32BitDiv, uint32_t ui32WordDiv)
409 if(ui32Domains & PRCM_DOMAIN_RFCORE)
415 if(ui32Domains & PRCM_DOMAIN_SERIAL)
420 if(ui32Domains & PRCM_DOMAIN_PERIPH)
425 if(ui32Domains & PRCM_DOMAIN_VIMS)
430 if(ui32Domains & PRCM_DOMAIN_CPU)
456 if(ui32Domains & PRCM_DOMAIN_RFCORE)
462 if(ui32Domains & PRCM_DOMAIN_SERIAL)
467 if(ui32Domains & PRCM_DOMAIN_PERIPH)
472 if(ui32Domains & PRCM_DOMAIN_VIMS)
477 if(ui32Domains & PRCM_DOMAIN_CPU)
494 ASSERT(PRCMPeripheralValid(ui32Peripheral));
514 ASSERT(PRCMPeripheralValid(ui32Peripheral));
534 ASSERT(PRCMPeripheralValid(ui32Peripheral));
554 ASSERT(PRCMPeripheralValid(ui32Peripheral));
574 ASSERT(PRCMPeripheralValid(ui32Peripheral));
594 ASSERT(PRCMPeripheralValid(ui32Peripheral));
612 uint32_t ui32StatusRegister0;
613 uint32_t ui32StatusRegister1;
661 HWREG(NVIC_SYS_CTRL) |= NVIC_SYS_CTRL_SLEEPDEEP;
671 HWREG(NVIC_SYS_CTRL) &= ~(NVIC_SYS_CTRL_SLEEPDEEP);
#define I2S_SAMPLE_RATE_48K
#define I2S_SAMPLE_RATE_16K
static const uint32_t g_pui32RCGCRegs[]
uint32_t PRCMInfClockConfigureGet(uint32_t ui32PowerMode)
Use this function to get the infrastructure clock configuration.
#define I2S_SAMPLE_RATE_24K
#define PRCM_DEEP_SLEEP_MODE
uint32_t PRCMPowerDomainStatus(uint32_t ui32Domains)
Get the status for a specific power domain.
static const uint32_t g_pui32DCGCRegs[]
#define PRCM_WCLK_SINGLE_PHASE
void PRCMPeripheralSleepEnable(uint32_t ui32Peripheral)
Enables a peripheral in sleep mode.
void PRCMPeripheralSleepDisable(uint32_t ui32Peripheral)
Disables a peripheral in sleep mode.
#define PRCM_DOMAIN_PERIPH
#define PRCM_PERIPH_MASKBIT(a)
#define I2S_SAMPLE_RATE_32K
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.
#define PRCM_CLOCK_DIV_32
static void CPUwfi(void)
Wait for interrupt.
static const uint32_t g_pui32SCGCRegs[]
#define PRCM_PERIPH_INDEX(a)
void PRCMDeepSleep(void)
Put the processor into deep-sleep mode.
void PRCMInfClockConfigureSet(uint32_t ui32ClkDiv, uint32_t ui32PowerMode)
Configure the infrastructure clock.
#define PRCM_DOMAIN_POWER_ON
void PRCMPowerDomainOn(uint32_t ui32Domains)
Turn power on in power domains in the MCU domain.
#define PRCM_DOMAIN_SERIAL
#define PRCM_DOMAIN_RFCORE
void PRCMPeripheralRunDisable(uint32_t ui32Peripheral)
Disables a peripheral in Run mode.
static void PRCMAudioClockDisable(void)
Disable the audio clock generation.
void PRCMPeripheralRunEnable(uint32_t ui32Peripheral)
Enables a peripheral in Run mode.
void PRCMPeripheralDeepSleepEnable(uint32_t ui32Peripheral)
Enables a peripheral in deep-sleep mode.
void PRCMPowerDomainOff(uint32_t ui32Domains)
Turn off a specific power domain.
void PRCMPeripheralDeepSleepDisable(uint32_t ui32Peripheral)
Disables a peripheral in deep-sleep mode.
void PRCMAudioClockConfigSet(uint32_t ui32ClkConfig, uint32_t ui32SampleRate)
Configure the audio clock generation.
#define PRCM_DOMAIN_POWER_OFF