48 #ifndef ti_drivers_power_PowerMSP432__include
49 #define ti_drivers_power_PowerMSP432__include
64 #define PowerMSP432_RESUMETIMESLEEP 32
65 #define PowerMSP432_TOTALTIMESLEEP 40
66 #define PowerMSP432_RESUMETIMEDEEPSLEEP_0 16
67 #define PowerMSP432_TOTALTIMEDEEPSLEEP_0 40
68 #define PowerMSP432_RESUMETIMEDEEPSLEEP_1 16
69 #define PowerMSP432_TOTALTIMEDEEPSLEEP_1 40
72 #define PowerMSP432_PERIPH_ADC14 0
73 #define PowerMSP432_PERIPH_DMA 1
74 #define PowerMSP432_PERIPH_EUSCI_A0 2
75 #define PowerMSP432_PERIPH_EUSCI_A1 3
76 #define PowerMSP432_PERIPH_EUSCI_A2 4
77 #define PowerMSP432_PERIPH_EUSCI_A3 5
78 #define PowerMSP432_PERIPH_EUSCI_B0 6
79 #define PowerMSP432_PERIPH_EUSCI_B1 7
80 #define PowerMSP432_PERIPH_EUSCI_B2 8
81 #define PowerMSP432_PERIPH_EUSCI_B3 9
82 #define PowerMSP432_PERIPH_TIMER_A0 10
83 #define PowerMSP432_PERIPH_TIMER_A1 11
84 #define PowerMSP432_PERIPH_TIMER_A2 12
85 #define PowerMSP432_PERIPH_TIMER_A3 13
86 #define PowerMSP432_PERIPH_TIMER_T32 14
89 #define PowerMSP432_DISALLOW_SLEEP 0
90 #define PowerMSP432_DISALLOW_DEEPSLEEP_0 1
91 #define PowerMSP432_DISALLOW_DEEPSLEEP_1 2
92 #define PowerMSP432_DISALLOW_SHUTDOWN_0 3
93 #define PowerMSP432_DISALLOW_SHUTDOWN_1 4
94 #define PowerMSP432_DISALLOW_PERFLEVEL_0 5
95 #define PowerMSP432_DISALLOW_PERFLEVEL_1 6
96 #define PowerMSP432_DISALLOW_PERFLEVEL_2 7
97 #define PowerMSP432_DISALLOW_PERFLEVEL_3 8
98 #define PowerMSP432_DISALLOW_PERFLEVEL_4 9
99 #define PowerMSP432_DISALLOW_PERF_CHANGES 10
100 #define PowerMSP432_NUMCONSTRAINTS 11
103 #define PowerMSP432_ENTERING_SLEEP 0x1
104 #define PowerMSP432_ENTERING_DEEPSLEEP 0x2
105 #define PowerMSP432_ENTERING_SHUTDOWN 0x4
106 #define PowerMSP432_AWAKE_SLEEP 0x8
107 #define PowerMSP432_AWAKE_DEEPSLEEP 0x10
108 #define PowerMSP432_START_CHANGE_PERF_LEVEL 0x20
109 #define PowerMSP432_DONE_CHANGE_PERF_LEVEL 0x40
110 #define PowerMSP432_NUMEVENTS 7
113 #define PowerMSP432_SLEEP 0x1
114 #define PowerMSP432_DEEPSLEEP_0 0x2
115 #define PowerMSP432_DEEPSLEEP_1 0x4
118 #define PowerMSP432_SHUTDOWN_0 0x0
119 #define PowerMSP432_SHUTDOWN_1 0x1
125 typedef struct PowerMSP432_PerfLevel {
126 unsigned int activeState;
128 unsigned int clockSource;
129 unsigned int DCORESEL;
133 unsigned int flashWaitStates;
134 bool enableFlashBuffer;
139 } PowerMSP432_PerfLevel;
164 typedef struct PowerMSP432_ModuleState {
166 uint32_t constraintMask;
168 unsigned int currentPerfLevel;
170 bool perfInitialized;
174 } PowerMSP432_ModuleState;
206 #define Power_getDependencyCount(resourceId) 0
207 #define Power_releaseDependency(resourceId)
208 #define Power_setDependency(resourceId)
bool enablePerf
Definition: PowerMSP432.h:156
void PowerMSP432_getFreqs(unsigned int level, PowerMSP432_Freqs *freqs)
void PowerMSP432_updateFreqs(PowerMSP432_Freqs *freqs)
Structure holding device frequencies (in Hz)
Definition: PowerMSP432.h:143
void PowerMSP432_sleepPolicy(void)
unsigned int PowerMSP432_getNumPerfLevels(void)
void PowerMSP432_schedulerDisable(void)
unsigned int MCLK
Definition: PowerMSP432.h:144
struct PowerMSP432_ConfigV1 PowerMSP432_ConfigV1
Power global configuration (MSP432-specific)
unsigned int HSMCLK
Definition: PowerMSP432.h:145
void(* Power_PolicyInitFxn)(void)
Power policy initialization function pointer.
Definition: Power.h:91
struct PowerMSP432_Freqs PowerMSP432_Freqs
Structure holding device frequencies (in Hz)
void PowerMSP432_initPolicy(void)
void PowerMSP432_schedulerRestore(void)
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:96
Power global configuration (MSP432-specific)
Definition: PowerMSP432.h:151
bool enableParking
Definition: PowerMSP432.h:157
bool enablePolicy
Definition: PowerMSP432.h:155
void PowerMSP432_deepSleepPolicy(void)
#define PowerMSP432_NUMCONSTRAINTS
Definition: PowerMSP432.h:100
Power_PolicyFxn policyFxn
Definition: PowerMSP432.h:153
unsigned int ACLK
Definition: PowerMSP432.h:147
Power_PolicyInitFxn policyInitFxn
Definition: PowerMSP432.h:152
unsigned int SMCLK
Definition: PowerMSP432.h:146
unsigned int initialPerfLevel
Definition: PowerMSP432.h:154
Linked List interface for use in drivers.