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 111 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 113 #define PowerCC26X2_PERIPH_SPI1 PowerCC26X2_PERIPH_SSI1 119 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 122 #define PowerCC26X2_PERIPH_UART2 PowerCC26XX_PERIPH_UART2 125 #define PowerCC26X2_PERIPH_UART3 PowerCC26XX_PERIPH_UART3 128 #define PowerCC26X2_PERIPH_SPI2 PowerCC26XX_PERIPH_SPI2 130 #define PowerCC26X2_PERIPH_SSI2 PowerCC26X2_PERIPH_SPI2 133 #define PowerCC26X2_PERIPH_SPI3 PowerCC26XX_PERIPH_SPI3 135 #define PowerCC26X2_PERIPH_SSI3 PowerCC26X2_PERIPH_SPI3 138 #define PowerCC26X2_PERIPH_I2C1 PowerCC26XX_PERIPH_I2C1 145 #define PowerCC26X2_HPOSC_RTC_COMPENSATION_DELTA 3 150 #define PowerCC26X2_XOSC_LF_RTC_COMPENSATION_DELTA 2 153 #define PowerCC26X2_NUMRESOURCES PowerCC26XX_NUMRESOURCES 157 #define PowerCC26X2_NUMCONSTRAINTS (PowerCC26XX_NUMCONSTRAINTS + 0) 164 #define PowerCC26X2_SETUP_CALIBRATE 1 165 #define PowerCC26X2_INITIATE_CALIBRATE 2 166 #define PowerCC26X2_DO_CALIBRATE 3 237 bool (*calibrateFxn)(
unsigned int calibrationStage);
275 void (*enableTCXOFxn)(
bool arg);
311 uint8_t constraintCounts[PowerCC26X2_NUMCONSTRAINTS];
313 uint8_t resourceCounts[PowerCC26X2_NUMRESOURCES];
315 unsigned int (*resourceHandlers[3])(
unsigned int arg);
372 PowerCtrlPadSleepDisable();
uint8_t auxHwiState
Definition: PowerCC26X2.h:305
HwiP_Struct oscHwi
Definition: PowerCC26X2.h:291
List_List notifyList
Definition: PowerCC26X2.h:286
int32_t nCtrimNew
Definition: PowerCC26X2.h:296
Definition: PowerCC26X2.h:183
PowerCC26X2_ResetReason PowerCC26X2_getResetReason(void)
Returns the reason for the most recent reset.
Definition: PowerCC26X2.h:181
Definition: PowerCC26X2.h:179
static void PowerCC26X2_releaseLatches(void)
Unlatch all IOs.
Definition: PowerCC26X2.h:370
int32_t nCtrimFractCurr
Definition: PowerCC26X2.h:295
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:402
void PowerCC26X2_enableXoscLfRtcCompensation(void)
Enable RTC compensation when SCLK_LF is derived from XOSC_LF.
bool xoscPending
Definition: PowerCC26X2.h:303
Definition: PowerCC26X2.h:191
bool busyCal
Definition: PowerCC26X2.h:306
Power manager interface for CC26XX/CC13XX.
bool initialized
Definition: PowerCC26X2.h:310
Definition: PowerCC26X2.h:177
int32_t nDeltaFreqNew
Definition: PowerCC26X2.h:300
bool calibrateRCOSC_HF
Boolean specifying whether the high frequency RC oscillator (RCOSC_HF) should be calibrated.
Definition: PowerCC26X2.h:268
bool enablePolicy
Definition: PowerCC26X2.h:309
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:407
int32_t nRtrimNew
Definition: PowerCC26X2.h:298
Definition: PowerCC26X2.h:185
PowerCC26X2_ResetReason
Reasons the device has booted or rebooted.
Definition: PowerCC26X2.h:172
ClockP_Struct tcxoEnableClock
Definition: PowerCC26X2.h:290
int32_t nDeltaFreqCurr
Definition: PowerCC26X2.h:293
uint32_t calStep
Definition: PowerCC26X2.h:307
Global configuration structure.
Definition: PowerCC26X2.h:195
PowerCC26X2_ResetReason lastResetReason
Definition: PowerCC26X2.h:318
Power_PolicyInitFxn policyInitFxn
The Power Policy's initialization function.
Definition: PowerCC26X2.h:203
bool calibrateRCOSC_LF
Boolean specifying whether the low frequency RC oscillator (RCOSC_LF) should be calibrated.
Definition: PowerCC26X2.h:259
ClockP_Struct calibrationClock
Definition: PowerCC26X2.h:289
PowerCC26X2_ModuleState.
Definition: PowerCC26X2.h:284
uint32_t state
Definition: PowerCC26X2.h:302
int32_t nRtrimCurr
Definition: PowerCC26X2.h:299
Definition: PowerCC26X2.h:189
Power_PolicyFxn policyFxn
Definition: PowerCC26X2.h:317
int32_t nCtrimCurr
Definition: PowerCC26X2.h:294
void PowerCC26X2_enableHposcRtcCompensation(void)
Enable RTC compensation when SCLK_LF is derived from HPOSC.
uint32_t constraintMask
Definition: PowerCC26X2.h:287
bool enablePolicy
Boolean specifying if the Power Policy function is enabled.
Definition: PowerCC26X2.h:250
Power_PolicyFxn policyFxn
The Power Policy function.
Definition: PowerCC26X2.h:225
Definition: PowerCC26X2.h:187
ClockP_Struct clockObj
Definition: PowerCC26X2.h:288
int32_t nCtrimFractNew
Definition: PowerCC26X2.h:297
HwiP_Struct tdcHwi
Definition: PowerCC26X2.h:292
bool bRefine
Definition: PowerCC26X2.h:301
bool firstLF
Definition: PowerCC26X2.h:308
Definition: PowerCC26X2.h:175
bool calLF
Definition: PowerCC26X2.h:304