55 #include <ti/devices/msp432p4xx/inc/msp.h>
62 #define PCM_KEY 0x695A0000
65 #define PCM_AM_LDO_VCORE0 0x00
66 #define PCM_AM_LDO_VCORE1 0x01
67 #define PCM_AM_DCDC_VCORE0 0x04
68 #define PCM_AM_DCDC_VCORE1 0x05
69 #define PCM_AM_LF_VCORE0 0x08
70 #define PCM_AM_LF_VCORE1 0x09
71 #define PCM_LPM0_LDO_VCORE0 0x10
72 #define PCM_LPM0_LDO_VCORE1 0x11
73 #define PCM_LPM0_DCDC_VCORE0 0x14
74 #define PCM_LPM0_DCDC_VCORE1 0x15
75 #define PCM_LPM0_LF_VCORE0 0x18
76 #define PCM_LPM0_LF_VCORE1 0x19
79 #define PCM_LPM35_VCORE0 0xC0
80 #define PCM_LPM45 0xA0
82 #define PCM_VCORE0 0x00
83 #define PCM_VCORE1 0x01
84 #define PCM_VCORELPM3 0x02
86 #define PCM_LDO_MODE 0x00
87 #define PCM_DCDC_MODE 0x01
88 #define PCM_LF_MODE 0x02
90 #define PCM_SHUTDOWN_PARTIAL PCM_LPM35_VCORE0
91 #define PCM_SHUTDOWN_COMPLETE PCM_LPM45
93 #define PCM_DCDCERROR PCM_IE_DCDC_ERROR_IE
94 #define PCM_AM_INVALIDTRANSITION PCM_IE_AM_INVALID_TR_IE
95 #define PCM_SM_INVALIDCLOCK PCM_IE_LPM_INVALID_CLK_IE
96 #define PCM_SM_INVALIDTRANSITION PCM_IE_LPM_INVALID_TR_IE
bool PCM_gotoLPM0(void)
Definition: pcm.c:453
void PCM_registerInterrupt(void(*intHandler)(void))
Definition: pcm.c:580
bool PCM_setPowerModeNonBlocking(uint_fast8_t powerMode)
Definition: pcm.c:287
bool PCM_setCoreVoltageLevelWithTimeout(uint_fast8_t voltageLevel, uint32_t timeOut)
Definition: pcm.c:120
bool PCM_shutdownDevice(uint32_t shutdownMode)
Definition: pcm.c:400
void PCM_disableInterrupt(uint32_t flags)
Definition: pcm.c:560
bool PCM_gotoLPM3(void)
Definition: pcm.c:485
bool PCM_setPowerStateNonBlocking(uint_fast8_t powerState)
Definition: pcm.c:395
bool PCM_setPowerState(uint_fast8_t powerState)
Definition: pcm.c:385
uint8_t PCM_getPowerMode(void)
Definition: pcm.c:131
bool PCM_gotoLPM0InterruptSafe(void)
Definition: pcm.c:466
bool PCM_setPowerStateWithTimeout(uint_fast8_t powerState, uint32_t timeout)
Definition: pcm.c:390
uint32_t PCM_getEnabledInterruptStatus(void)
Definition: pcm.c:570
void PCM_unregisterInterrupt(void)
Definition: pcm.c:593
bool PCM_setCoreVoltageLevelNonBlocking(uint_fast8_t voltageLevel)
Definition: pcm.c:126
bool PCM_gotoLPM3InterruptSafe(void)
Definition: pcm.c:518
bool PCM_gotoLPM4(void)
Definition: pcm.c:424
uint32_t PCM_getInterruptStatus(void)
Definition: pcm.c:565
bool PCM_gotoLPM4InterruptSafe(void)
Definition: pcm.c:434
void PCM_disableRudeMode(void)
Definition: pcm.c:549
uint8_t PCM_getCoreVoltageLevel(void)
Definition: pcm.c:161
bool PCM_setPowerModeWithTimeout(uint_fast8_t powerMode, uint32_t timeOut)
Definition: pcm.c:292
void PCM_enableRudeMode(void)
Definition: pcm.c:542
bool PCM_setPowerMode(uint_fast8_t powerMode)
Definition: pcm.c:282
uint8_t PCM_getPowerState(void)
Definition: pcm.c:537
bool PCM_setCoreVoltageLevel(uint_fast8_t voltageLevel)
Definition: pcm.c:115
void PCM_clearInterruptFlag(uint32_t flags)
Definition: pcm.c:575
void PCM_enableInterrupt(uint32_t flags)
Definition: pcm.c:555