40 #ifndef ti_drivers_power_PowerMSP432__include
41 #define ti_drivers_power_PowerMSP432__include
44 #include <ti/drivers/utils/List.h>
55 #define PowerMSP432_RESUMETIMESLEEP 32
56 #define PowerMSP432_TOTALTIMESLEEP 40
57 #define PowerMSP432_RESUMETIMEDEEPSLEEP_0 16
58 #define PowerMSP432_TOTALTIMEDEEPSLEEP_0 40
59 #define PowerMSP432_RESUMETIMEDEEPSLEEP_1 16
60 #define PowerMSP432_TOTALTIMEDEEPSLEEP_1 40
63 #define PowerMSP432_PERIPH_ADC14 0
64 #define PowerMSP432_PERIPH_DMA 1
65 #define PowerMSP432_PERIPH_EUSCI_A0 2
66 #define PowerMSP432_PERIPH_EUSCI_A1 3
67 #define PowerMSP432_PERIPH_EUSCI_A2 4
68 #define PowerMSP432_PERIPH_EUSCI_A3 5
69 #define PowerMSP432_PERIPH_EUSCI_B0 6
70 #define PowerMSP432_PERIPH_EUSCI_B1 7
71 #define PowerMSP432_PERIPH_EUSCI_B2 8
72 #define PowerMSP432_PERIPH_EUSCI_B3 9
73 #define PowerMSP432_PERIPH_TIMER_A0 10
74 #define PowerMSP432_PERIPH_TIMER_A1 11
75 #define PowerMSP432_PERIPH_TIMER_A2 12
76 #define PowerMSP432_PERIPH_TIMER_A3 13
77 #define PowerMSP432_PERIPH_TIMER_T32 14
80 #define PowerMSP432_DISALLOW_SLEEP 0
81 #define PowerMSP432_DISALLOW_DEEPSLEEP_0 1
82 #define PowerMSP432_DISALLOW_DEEPSLEEP_1 2
83 #define PowerMSP432_DISALLOW_SHUTDOWN_0 3
84 #define PowerMSP432_DISALLOW_SHUTDOWN_1 4
85 #define PowerMSP432_DISALLOW_PERFLEVEL_0 5
86 #define PowerMSP432_DISALLOW_PERFLEVEL_1 6
87 #define PowerMSP432_DISALLOW_PERFLEVEL_2 7
88 #define PowerMSP432_DISALLOW_PERFLEVEL_3 8
89 #define PowerMSP432_DISALLOW_PERFLEVEL_4 9
90 #define PowerMSP432_DISALLOW_PERF_CHANGES 10
91 #define PowerMSP432_NUMCONSTRAINTS 11
94 #define PowerMSP432_ENTERING_SLEEP 0x1
95 #define PowerMSP432_ENTERING_DEEPSLEEP 0x2
96 #define PowerMSP432_ENTERING_SHUTDOWN 0x4
97 #define PowerMSP432_AWAKE_SLEEP 0x8
98 #define PowerMSP432_AWAKE_DEEPSLEEP 0x10
99 #define PowerMSP432_START_CHANGE_PERF_LEVEL 0x20
100 #define PowerMSP432_DONE_CHANGE_PERF_LEVEL 0x40
101 #define PowerMSP432_NUMEVENTS 7
104 #define PowerMSP432_SLEEP 0x1
105 #define PowerMSP432_DEEPSLEEP_0 0x2
106 #define PowerMSP432_DEEPSLEEP_1 0x4
109 #define PowerMSP432_SHUTDOWN_0 0x0
110 #define PowerMSP432_SHUTDOWN_1 0x1
116 typedef struct PowerMSP432_PerfLevel {
117 unsigned int activeState;
119 unsigned int clockSource;
120 unsigned int DCORESEL;
124 unsigned int flashWaitStates;
125 bool enableFlashBuffer;
130 } PowerMSP432_PerfLevel;
154 typedef struct PowerMSP432_ModuleState {
155 List_List notifyList;
156 uint32_t constraintMask;
158 unsigned int currentPerfLevel;
160 bool perfInitialized;
162 } PowerMSP432_ModuleState;
191 #define Power_getDependencyCount(resourceId) 0
192 #define Power_releaseDependency(resourceId)
193 #define Power_setDependency(resourceId)
void PowerMSP432_getFreqs(unsigned int level, PowerMSP432_Freqs *freqs)
void PowerMSP432_updateFreqs(PowerMSP432_Freqs *freqs)
Structure holding device frequencies (in Hz)
Definition: PowerMSP432.h:134
Power_PolicyInitFxn policyInitFxn
Definition: PowerMSP432.h:143
unsigned int PowerMSP432_getNumPerfLevels(void)
void PowerMSP432_schedulerDisable(void)
unsigned int MCLK
Definition: PowerMSP432.h:135
unsigned int HSMCLK
Definition: PowerMSP432.h:136
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:91
struct PowerMSP432_Freqs PowerMSP432_Freqs
Structure holding device frequencies (in Hz)
unsigned int initialPerfLevel
Definition: PowerMSP432.h:145
void PowerMSP432_schedulerRestore(void)
struct PowerMSP432_Config PowerMSP432_Config
Power global configuration (MSP432-specific)
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:96
Power_PolicyFxn policyFxn
Definition: PowerMSP432.h:144
#define PowerMSP432_NUMCONSTRAINTS
Definition: PowerMSP432.h:91
Power global configuration (MSP432-specific)
Definition: PowerMSP432.h:142
void PowerMSP432_policyInitFxn(void)
bool enablePolicy
Definition: PowerMSP432.h:146
unsigned int ACLK
Definition: PowerMSP432.h:138
void PowerMSP432_policyFxn(void)
bool enablePerf
Definition: PowerMSP432.h:147
unsigned int SMCLK
Definition: PowerMSP432.h:137