94 #ifndef ti_drivers_power_PowerCC23X0_ 95 #define ti_drivers_power_PowerCC23X0_ 101 #include <ti/devices/DeviceFamily.h> 102 #include DeviceFamily_constructPath(inc/hw_pmctl.h) 103 #include DeviceFamily_constructPath(inc/hw_clkctl.h) 104 #include DeviceFamily_constructPath(inc/hw_lrfddbell.h) 105 #include DeviceFamily_constructPath(inc/hw_memmap.h) 106 #include DeviceFamily_constructPath(inc/hw_types.h) 107 #include DeviceFamily_constructPath(driverlib/pmctl.h) 114 #define PowerCC23X0_RESUMETIMESTANDBY (400U) 117 #define PowerCC23X0_TOTALTIMESTANDBY (500U) 120 #define PowerCC23X0_WAKEDELAYSTANDBY (185U) 123 #define PowerCC23X0_HFXT_THRESHOLD_TEMP_DEFAULT (-40) 132 #define PowerCC23X0_PERIPH_GROUP_M (0xFF00U) 133 #define PowerCC23X0_PERIPH_GROUP_CLKCTL0 (0x0000U) 134 #define PowerCC23X0_PERIPH_GROUP_LRFD (0x0100U) 135 #define PowerCC23X0_PERIPH_BIT_INDEX_M (0x00FFU) 140 typedef uint16_t PowerLPF3_Resource;
146 #define PowerLPF3_PERIPH_GPIO (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_GPIO_S) 149 #define PowerLPF3_PERIPH_UART0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_UART0_S) 152 #define PowerLPF3_PERIPH_I2C0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_I2C0_S) 155 #define PowerLPF3_PERIPH_SPI0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_SPI0_S) 158 #define PowerLPF3_PERIPH_ADC0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_ADC0_S) 161 #define PowerLPF3_PERIPH_AES (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LAES_S) 164 #define PowerLPF3_PERIPH_DMA (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_DMA_S) 167 #define PowerLPF3_PERIPH_LGPT0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT0_S) 170 #define PowerLPF3_PERIPH_LGPT1 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT1_S) 173 #if !defined(DeviceFamily_CC23X0R2) 175 #define PowerLPF3_PERIPH_LGPT2 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT2_S) 178 #define PowerLPF3_PERIPH_LGPT3 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT3_S) 182 #define PowerLPF3_PERIPH_LFRD_TRC (PowerCC23X0_PERIPH_GROUP_LRFD | LRFDDBELL_CLKCTL_TRC_S) 185 #define PowerLPF3_PERIPH_LFRD_S2RRAM (PowerCC23X0_PERIPH_GROUP_LRFD | LRFDDBELL_CLKCTL_S2RRAM_S) 193 #if defined(DeviceFamily_CC23X0R2) 194 #define PowerCC23X0_NUMRESOURCES_CLKCTL0 (29U) 195 #elif (defined(DeviceFamily_CC23X0R5) || defined(DeviceFamily_CC23X0R22)) 196 #define PowerCC23X0_NUMRESOURCES_CLKCTL0 (31U) 198 #error "Unsupported DeviceFamily specified!" 200 #define PowerCC23X0_NUMRESOURCES_LRFD (12U) 203 #define PowerLPF3_STANDBY (0x1U) 212 #define PowerLPF3_DISALLOW_SHUTDOWN (0U) 215 #define PowerLPF3_DISALLOW_STANDBY (1U) 218 #define PowerLPF3_DISALLOW_IDLE (2U) 221 #define PowerLPF3_NEED_FLASH_IN_IDLE (3U) 224 #define PowerLPF3_DISALLOW_SWTCXO (4U) 227 #define PowerCC23X0_NUMCONSTRAINTS (5U) 238 #define PowerLPF3_ENTERING_STANDBY ((uint_fast16_t)((uint_fast16_t)1U << 0)) 241 #define PowerLPF3_ENTERING_SHUTDOWN ((uint_fast16_t)((uint_fast16_t)1U << 1)) 244 #define PowerLPF3_AWAKE_STANDBY ((uint_fast16_t)((uint_fast16_t)1U << 2)) 249 #define PowerLPF3_HFXT_AVAILABLE ((uint_fast16_t)((uint_fast16_t)1U << 3)) 254 #define PowerLPF3_LFCLK_SWITCHED ((uint_fast16_t)((uint_fast16_t)1U << 4)) 257 #define PowerCC23X0_NUMEVENTS ((uint_fast16_t)((uint_fast16_t)5U)) 397 HWREG(PMCTL_BASE + PMCTL_O_SLPCTL) = PMCTL_SLPCTL_SLPN_DIS;
Definition: PowerCC23X0.h:353
void PowerCC23X0_schedulerRestore(void)
PowerLPF3_ResetReason
Reasons the device has booted or rebooted.
Definition: PowerCC23X0.h:328
void PowerLPF3_disableHFXTCompensation(void)
Disable HFXT temperature compensation.
void PowerCC23X0_doWFI(void)
The wait for interrupt (WFI) policy.
Definition: PowerCC23X0.h:351
Clock interface for the RTOS Porting Interface.
Definition: PowerCC23X0.h:341
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:401
Global configuration structure.
Definition: PowerCC23X0.h:269
void PowerLPF3_enableHFXTCompensation(int16_t tempThreshold, int16_t tempDelta)
Enable HFXT temperature compensation.
Definition: PowerCC23X0.h:345
PowerLPF3_ResetReason PowerLPF3_getResetReason(void)
Returns the reason for the most recent reset or wakeup.
Definition: PowerCC23X0.h:343
Definition: PowerCC23X0.h:347
void PowerLPF3_adjustHfxtAmp(int_fast8_t adjustment)
Adjust the HFXT amplitude.
int_fast8_t PowerLPF3_getHfxtAmpAdjustment(void)
Check if HFXT amplitude needs to be adjusted.
void PowerCC23X0_standbyPolicy(void)
The STANDBY Power Policy.
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:406
Power_PolicyInitFxn policyInitFxn
The Power Policy's initialization function.
Definition: PowerCC23X0.h:277
void PowerLPF3_initHFXTCompensation(int32_t P0, int32_t P1, int32_t P2, int32_t P3, uint8_t shift, bool fcfgInsertion)
Initialize HFXT temperature compensation coefficients.
Definition: PowerCC23X0.h:357
bool PowerLPF3_isLfincFilterAllowingStandby(void)
Checks if the LFINC filter is ready to go to standby or not.
Power_PolicyFxn policyFxn
The Power Policy function.
Definition: PowerCC23X0.h:306
Definition: PowerCC23X0.h:335
void PowerLPF3_forceHFXTCompensationUpdate(void)
Force HFXT temperature compensation update.
void PowerCC23X0_schedulerDisable(void)
void PowerLPF3_selectLFXT(void)
Select LFXT as LFCLK source.
void PowerLPF3_selectLFOSC(void)
Select LFOSC as LFCLK source.
int_fast16_t PowerLPF3_sleep(uint32_t nextEventTimeUs)
Transition the device into standby and configure RTC to wakeup the device ahead of a specified time...
Definition: PowerCC23X0.h:331
Definition: PowerCC23X0.h:337
void PowerLPF3_startInitialHfxtAmpComp(void)
Start initial compensation of the HFXT amplitude.
void(* PowerLPF3_StartInitialHfxtAmpCompFxn)(void)
Function pointer to PowerLPF3_startInitialHfxtAmpComp() or NULL.
Definition: PowerCC23X0.h:266
Definition: PowerCC23X0.h:349
Definition: PowerCC23X0.h:339
uint32_t PowerLPF3_getHFXTCompensationRatio(void)
Get the current HFXT compensation ratio.
PowerLPF3_StartInitialHfxtAmpCompFxn startInitialHfxtAmpCompFxn
Pointer to the function to start the initial HFXT amplitude compensation.
Definition: PowerCC23X0.h:322
static void PowerLPF3_releaseLatches(void)
Unlatch all IOs.
Definition: PowerCC23X0.h:395
Hardware Interrupt module for the RTOS Porting Interface.
void PowerLPF3_selectEXTLF(void)
Select EXTLF as LFCLK source.
Definition: PowerCC23X0.h:333
Definition: PowerCC23X0.h:355