52 #ifndef ti_drivers_power_PowerCC26X2_ 53 #define ti_drivers_power_PowerCC26X2_ 55 #include <ti/drivers/dpl/HwiP.h> 56 #include <ti/drivers/dpl/ClockP.h> 61 #include <ti/devices/DeviceFamily.h> 62 #include DeviceFamily_constructPath(driverlib/sys_ctrl.h) 69 #define PowerCC26X2_RESUMETIMESTANDBY 750 72 #define PowerCC26X2_TOTALTIMESTANDBY 1000 75 #define PowerCC26X2_WAKEDELAYSTANDBY 240 78 #define PowerCC26X2_INITIALWAITRCOSC_LF 1000 81 #define PowerCC26X2_RETRYWAITRCOSC_LF 1000 84 #define PowerCC26X2_INITIALWAITXOSC_HF 50 87 #define PowerCC26X2_RETRYWAITXOSC_HF 50 90 #define PowerCC26X2_INITIALWAITXOSC_LF 10000 93 #define PowerCC26X2_RETRYWAITXOSC_LF 5000 100 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X2_CC26X2 || \ 101 DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 104 #define PowerCC26X2_PERIPH_PKA PowerCC26XX_PERIPH_PKA 107 #define PowerCC26X2_PERIPH_UART1 PowerCC26XX_PERIPH_UART1 110 #define PowerCC26X2_PERIPH_SSI1 PowerCC26XX_PERIPH_SSI1 115 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 118 #define PowerCC26X2_PERIPH_UART2 PowerCC26XX_PERIPH_UART2 121 #define PowerCC26X2_PERIPH_UART3 PowerCC26XX_PERIPH_UART3 124 #define PowerCC26X2_PERIPH_SSI2 PowerCC26XX_PERIPH_SSI2 127 #define PowerCC26X2_PERIPH_SSI3 PowerCC26XX_PERIPH_SSI3 130 #define PowerCC26X2_PERIPH_I2C1 PowerCC26XX_PERIPH_I2C1 137 #define PowerCC26X2_HPOSC_RTC_COMPENSATION_DELTA 3 140 #define PowerCC26X2_NUMRESOURCES PowerCC26XX_NUMRESOURCES 144 #define PowerCC26X2_NUMCONSTRAINTS (PowerCC26XX_NUMCONSTRAINTS + 0) 151 #define PowerCC26X2_SETUP_CALIBRATE 1 152 #define PowerCC26X2_INITIATE_CALIBRATE 2 153 #define PowerCC26X2_DO_CALIBRATE 3 199 bool (*calibrateFxn)(
unsigned int calibrationStage);
237 void (*enableTCXOFxn)(
bool arg);
273 uint8_t constraintCounts[PowerCC26X2_NUMCONSTRAINTS];
275 uint8_t resourceCounts[PowerCC26X2_NUMRESOURCES];
277 unsigned int (*resourceHandlers[3])(
unsigned int arg);
uint8_t auxHwiState
Definition: PowerCC26X2.h:267
HwiP_Struct oscHwi
Definition: PowerCC26X2.h:253
List_List notifyList
Definition: PowerCC26X2.h:248
int32_t nCtrimNew
Definition: PowerCC26X2.h:258
int32_t nCtrimFractCurr
Definition: PowerCC26X2.h:257
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:402
bool xoscPending
Definition: PowerCC26X2.h:265
bool busyCal
Definition: PowerCC26X2.h:268
Power manager interface for CC26XX/CC13XX.
uint32_t PowerCC26X2_getResetReason(void)
Returns the reason for the most recent reset.
bool initialized
Definition: PowerCC26X2.h:272
int32_t nDeltaFreqNew
Definition: PowerCC26X2.h:262
bool calibrateRCOSC_HF
Boolean specifying whether the high frequency RC oscillator (RCOSC_HF) should be calibrated.
Definition: PowerCC26X2.h:230
bool enablePolicy
Definition: PowerCC26X2.h:271
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:407
int32_t nRtrimNew
Definition: PowerCC26X2.h:260
ClockP_Struct tcxoEnableClock
Definition: PowerCC26X2.h:252
int32_t nDeltaFreqCurr
Definition: PowerCC26X2.h:255
uint32_t calStep
Definition: PowerCC26X2.h:269
Global configuration structure.
Definition: PowerCC26X2.h:157
Power_PolicyInitFxn policyInitFxn
The Power Policy's initialization function.
Definition: PowerCC26X2.h:165
bool calibrateRCOSC_LF
Boolean specifying whether the low frequency RC oscillator (RCOSC_LF) should be calibrated.
Definition: PowerCC26X2.h:221
ClockP_Struct calibrationClock
Definition: PowerCC26X2.h:251
PowerCC26X2_ModuleState.
Definition: PowerCC26X2.h:246
uint32_t state
Definition: PowerCC26X2.h:264
int32_t nRtrimCurr
Definition: PowerCC26X2.h:261
Power_PolicyFxn policyFxn
Definition: PowerCC26X2.h:279
int32_t nCtrimCurr
Definition: PowerCC26X2.h:256
void PowerCC26X2_enableHposcRtcCompensation(void)
Enable RTC compensation when SCLK_LF is derived from HPOSC.
uint32_t constraintMask
Definition: PowerCC26X2.h:249
bool enablePolicy
Boolean specifying if the Power Policy function is enabled.
Definition: PowerCC26X2.h:212
Power_PolicyFxn policyFxn
The Power Policy function.
Definition: PowerCC26X2.h:187
ClockP_Struct clockObj
Definition: PowerCC26X2.h:250
int32_t nCtrimFractNew
Definition: PowerCC26X2.h:259
HwiP_Struct tdcHwi
Definition: PowerCC26X2.h:254
bool bRefine
Definition: PowerCC26X2.h:263
bool firstLF
Definition: PowerCC26X2.h:270
uint32_t lastResetReason
Definition: PowerCC26X2.h:280
bool calLF
Definition: PowerCC26X2.h:266