#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_ddi.h>
#include <inc/hw_ddi_0_osc.h>
#include <driverlib/aon_wuc.h>
#include <driverlib/aux_wuc.h>
#include <driverlib/rom.h>
#include <driverlib/ddi.h>
#include <driverlib/debug.h>
Go to the source code of this file.
Macros | |
#define | LOW_POWER_XOSC 1 |
#define | HIGH_POWER_XOSC 0 |
#define | OSC_SRC_CLK_HF 0x00000001 |
#define | OSC_SRC_CLK_MF 0x00000002 |
#define | OSC_SRC_CLK_LF 0x00000004 |
#define | OSC_RCOSC_HF 0x00000000 |
#define | OSC_XOSC_HF 0x00000001 |
#define | OSC_RCOSC_LF 0x00000002 |
#define | OSC_XOSC_LF 0x00000003 |
#define | SCLK_HF_RCOSC_HF 0 |
#define | SCLK_HF_XOSC_HF 1 |
#define | SCLK_MF_RCOSC_HF 0 |
#define | SCLK_MF_XOSC_HF 1 |
#define | SCLK_LF_FROM_RCOSC_HF 0 |
#define | SCLK_LF_FROM_XOSC_HF 1 |
#define | SCLK_LF_FROM_RCOSC_LF 2 |
#define | SCLK_LF_FROM_XOSC_LF 3 |
Functions | |
static void | OSCXHfPowerModeSet (uint32_t ui32Mode) |
Set Power Mode for High Frequency XTAL Oscillator. More... | |
static void | OSCClockLossEventEnable (void) |
Enables OSC clock loss event detection. More... | |
static void | OSCClockLossEventDisable (void) |
Disables OSC clock loss event detection. More... | |
void | OSCClockSourceSet (uint32_t ui32SrcClk, uint32_t ui32Osc) |
Configure the oscillator input to the a source clock. More... | |
uint32_t | OSCClockSourceGet (uint32_t ui32SrcClk) |
Get the source clock settings. More... | |
static bool | OSCHfSourceReady (void) |
Check if the HF clock source is ready to be switched. More... | |
static void | OSCHfSourceSwitch (void) |
Switch the high frequency clock. More... | |
void | OSCInterfaceEnable (void) |
Enable System CPU access to the OSC_DIG module. More... | |
static void | OSCInterfaceDisable (void) |
Disable System CPU access to the OSC_DIG module. More... | |
uint32_t | OSCHF_GetStartupTime (uint32_t timeUntilWakeupInMs) |
Returns maximum startup time (in microseconds) of XOSC_HF. More... | |
void | OSCHF_TurnOnXosc (void) |
Turns on XOSC_HF (but without switching to XOSC_HF). More... | |
bool | OSCHF_AttemptToSwitchToXosc (void) |
Switch to XOSC_HF if XOSC_HF is ready. More... | |
void | OSCHF_SwitchToRcOscTurnOffXosc (void) |
Switch to RCOSC_HF and turn off XOSC_HF. More... | |