52 #ifndef ti_drivers_power_PowerCC23X0_ 53 #define ti_drivers_power_PowerCC23X0_ 59 #include <ti/devices/DeviceFamily.h> 60 #include DeviceFamily_constructPath(inc/hw_pmctl.h) 61 #include DeviceFamily_constructPath(inc/hw_clkctl.h) 62 #include DeviceFamily_constructPath(inc/hw_lrfddbell.h) 63 #include DeviceFamily_constructPath(inc/hw_memmap.h) 64 #include DeviceFamily_constructPath(inc/hw_types.h) 65 #include DeviceFamily_constructPath(driverlib/pmctl.h) 72 #define PowerCC23X0_RESUMETIMESTANDBY 400 75 #define PowerCC23X0_TOTALTIMESTANDBY 500 78 #define PowerCC23X0_WAKEDELAYSTANDBY 185 81 #define PowerCC23X0_HFXT_THRESHOLD_TEMP_DEFAULT (-40) 90 #define PowerCC23X0_PERIPH_GROUP_M 0xFF00 91 #define PowerCC23X0_PERIPH_GROUP_CLKCTL0 0x0000 92 #define PowerCC23X0_PERIPH_GROUP_LRFD 0x0100 93 #define PowerCC23X0_PERIPH_BIT_INDEX_M 0x00FF 98 typedef uint16_t PowerLPF3_Resource;
104 #define PowerLPF3_PERIPH_GPIO (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_GPIO_S) 107 #define PowerLPF3_PERIPH_UART0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_UART0_S) 110 #define PowerLPF3_PERIPH_I2C0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_I2C0_S) 113 #define PowerLPF3_PERIPH_SPI0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_SPI0_S) 116 #define PowerLPF3_PERIPH_ADC0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_ADC0_S) 119 #define PowerLPF3_PERIPH_AES (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LAES_S) 122 #define PowerLPF3_PERIPH_DMA (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_DMA_S) 125 #define PowerLPF3_PERIPH_LGPT0 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT0_S) 128 #define PowerLPF3_PERIPH_LGPT1 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT1_S) 131 #if !defined(DeviceFamily_CC23X0R2) 133 #define PowerLPF3_PERIPH_LGPT2 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT2_S) 136 #define PowerLPF3_PERIPH_LGPT3 (PowerCC23X0_PERIPH_GROUP_CLKCTL0 | CLKCTL_DESCEX0_LGPT3_S) 140 #define PowerLPF3_PERIPH_LFRD_TRC (PowerCC23X0_PERIPH_GROUP_LRFD | LRFDDBELL_CLKCTL_TRC_S) 143 #define PowerLPF3_PERIPH_LFRD_S2RRAM (PowerCC23X0_PERIPH_GROUP_LRFD | LRFDDBELL_CLKCTL_S2RRAM_S) 151 #if defined(DeviceFamily_CC23X0R2) 152 #define PowerCC23X0_NUMRESOURCES_CLKCTL0 29 153 #elif defined(DeviceFamily_CC23X0R5) 154 #define PowerCC23X0_NUMRESOURCES_CLKCTL0 31 156 #error "Unsupported DeviceFamily specified!" 158 #define PowerCC23X0_NUMRESOURCES_LRFD 12 161 #define PowerLPF3_STANDBY 0x1 164 #define PowerLPF3_ENABLE 1 165 #define PowerLPF3_DISABLE 0 175 #define PowerLPF3_DISALLOW_SHUTDOWN 0 178 #define PowerLPF3_DISALLOW_STANDBY 1 181 #define PowerLPF3_DISALLOW_IDLE 2 184 #define PowerLPF3_NEED_FLASH_IN_IDLE 3 187 #define PowerCC23X0_NUMCONSTRAINTS 4 198 #define PowerLPF3_ENTERING_STANDBY (1 << 0) 201 #define PowerLPF3_ENTERING_SHUTDOWN (1 << 1) 204 #define PowerLPF3_AWAKE_STANDBY (1 << 2) 209 #define PowerLPF3_HFXT_AVAILABLE (1 << 3) 214 #define PowerLPF3_LFCLK_SWITCHED (1 << 4) 217 #define PowerCC23X0_NUMEVENTS 5 315 return (PowerLPF3_ResetReason)PMCTLGetResetReason();
334 HWREG(PMCTL_BASE + PMCTL_O_SLPCTL) = PMCTL_SLPCTL_SLPN_DIS;
Definition: PowerCC23X0.h:289
void PowerCC23X0_schedulerRestore(void)
PowerLPF3_ResetReason
Reasons the device has booted or rebooted.
Definition: PowerCC23X0.h:264
void PowerLPF3_disableHFXTCompensation(void)
Disable HFXT temperature compensation.
void PowerCC23X0_doWFI(void)
The wait for interrupt (WFI) policy.
Definition: PowerCC23X0.h:287
Clock interface for the RTOS Porting Interface.
Definition: PowerCC23X0.h:277
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:401
Global configuration structure.
Definition: PowerCC23X0.h:221
void PowerLPF3_enableHFXTCompensation(int16_t tempThreshold, int16_t tempDelta)
Enable HFXT temperature compensation.
Definition: PowerCC23X0.h:281
Definition: PowerCC23X0.h:279
Definition: PowerCC23X0.h:283
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:229
void PowerLPF3_initHFXTCompensation(int32_t P0, int32_t P1, int32_t P2, int32_t P3, uint8_t shift, bool fcfgInsertion)
Initialise HFXT temperature compensation coefficients.
Power_PolicyFxn policyFxn
The Power Policy function.
Definition: PowerCC23X0.h:258
Definition: PowerCC23X0.h:271
void PowerCC23X0_schedulerDisable(void)
void PowerLPF3_selectLFXT(void)
Select LFXT as LFCLK source.
void PowerLPF3_selectLFOSC(void)
Select LFOSC as LFCLK source.
Definition: PowerCC23X0.h:267
Definition: PowerCC23X0.h:273
Definition: PowerCC23X0.h:285
Definition: PowerCC23X0.h:275
static PowerLPF3_ResetReason PowerLPF3_getResetReason(void)
Returns the reason for the most recent reset or wakeup.
Definition: PowerCC23X0.h:313
static void PowerLPF3_releaseLatches(void)
Unlatch all IOs.
Definition: PowerCC23X0.h:332
Hardware Interrupt module for the RTOS Porting Interface.
Definition: PowerCC23X0.h:269
Definition: PowerCC23X0.h:291