#include "inc/hw_types.h"
#include "driverlib/5xx_6xx/debug.h"
#include "driverlib/5xx_6xx/frpmm.h"
#include "deprecated/CCS/msp430xgeneric.h"
Functions | |
void | FRPMM_enableLowPowerReset (unsigned int baseAddress) |
void | FRPMM_disableLowPowerReset (unsigned int baseAddress) |
void | FRPMM_enableSVSL (unsigned int baseAddress) |
void | FRPMM_disableSVSL (unsigned int baseAddress) |
void | FRPMM_enableSVSH (unsigned int baseAddress) |
void | FRPMM_disableSVSH (unsigned int baseAddress) |
void | FRPMM_regOn (unsigned int baseAddress) |
void | FRPMM_regOff (unsigned int baseAddress) |
void | FRPMM_trigPOR (unsigned int baseAddress) |
void | FRPMM_trigBOR (unsigned int baseAddress) |
void | FRPMM_clearInterrupt (unsigned int baseAddress, unsigned int mask) |
unsigned int | FRPMM_getInterruptStatus (unsigned int baseAddress, unsigned int mask) |
void | FRPMM_lockLPM5 (unsigned int baseAddress) |
void | FRPMM_unlockLPM5 (unsigned int baseAddress) |
void FRPMM_enableLowPowerReset | ( | unsigned int | baseAddress | ) |
Enables the low power reset. SVSH does not reset device, but triggers a system NMI Note: only available for FR58xx and FR59xx devices
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_LPRST, FRPMM_PW_H, and HWREGB.
void FRPMM_disableLowPowerReset | ( | unsigned int | baseAddress | ) |
Disables the low power reset. SVSH resets device. Note: only available for FR58xx and FR59xx devices
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_LPRST, FRPMM_PW_H, and HWREGB.
void FRPMM_enableSVSL | ( | unsigned int | baseAddress | ) |
Enables the low-side SVS circuitry Note: only available for FR57xx devices
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PW_H, FRPMM_SVSLE, and HWREGB.
void FRPMM_disableSVSL | ( | unsigned int | baseAddress | ) |
Disables the low-side SVS circuitry Note: only available for FR57xx devices
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PW_H, FRPMM_SVSLE, and HWREGB.
void FRPMM_enableSVSH | ( | unsigned int | baseAddress | ) |
Enables the high-side SVS circuitry
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PW_H, FRPMM_SVSHE, and HWREGB.
void FRPMM_disableSVSH | ( | unsigned int | baseAddress | ) |
Disables the high-side SVS circuitry
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PW_H, FRPMM_SVSHE, and HWREGB.
void FRPMM_regOn | ( | unsigned int | baseAddress | ) |
Makes the low-dropout voltage regulator (LDO) remain ON when going into LPM 3/4. [Default]
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PMMREGOFF, FRPMM_PW_H, and HWREGB.
void FRPMM_regOff | ( | unsigned int | baseAddress | ) |
Turns OFF the low-dropout voltage regulator (LDO) when going into LPM3/4, thus the system will enter LPM3.5 or LPM4.5 respectively
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PMMREGOFF, FRPMM_PW_H, and HWREGB.
void FRPMM_trigPOR | ( | unsigned int | baseAddress | ) |
Calling this function will trigger a software Power On Reset (POR).
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PMMSWPOR, FRPMM_PW_H, and HWREGB.
void FRPMM_trigBOR | ( | unsigned int | baseAddress | ) |
Calling this function will trigger a software Brown Out Rest (BOR).
baseAddress | is the base address of the PMM module. |
Modified registers are PMMCTL0.
References FRPMM_PMMSWBOR, FRPMM_PW_H, and HWREGB.
void FRPMM_clearInterrupt | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Clear all interrupt flags for the PMM
baseAddress | is the base address of the PMM module. |
mask | is the mask for specifying the required flag Valid values are FRPMM_PMMBORIFG FRPMM_PMMRSTIFG, FRPMM_PMMPORIFG, FRPMM_SVSLIFG, FRPMM_SVSHIFG, FRPMM_PMMLPM5IFG, FRPMM_ALL |
Modified registers are PMMCTL0, PMMIFG.
References FRPMM_PW_H, HWREG, and HWREGB.
unsigned int FRPMM_getInterruptStatus | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Returns interrupt status
baseAddress | is the base address of the PMM module. |
mask | is the mask for specifying the required flag Valid values are FRPMM_PMMBORIFG FRPMM_PMMRSTIFG, FRPMM_PMMPORIFG, FRPMM_SVSLIFG, FRPMM_SVSHIFG, FRPMM_PMMLPM5IFG, |
References HWREG.
void FRPMM_lockLPM5 | ( | unsigned int | baseAddress | ) |
Lock I/O pin and other LPMx.5 relevant (e.g. RTC) configurations upon entry/exit to/from LPMx.5. Once power is applied to the device, this bit, once set, can only be cleared by the user or via another power cycle. LPMx.5 configuration remains locked. Pin state is held during LPMx.5 entry and exit.
baseAddress | is the base address of the PMM module. |
References FRPMM_LOCKLPM5, FRPMM_PW_H, and HWREGB.
void FRPMM_unlockLPM5 | ( | unsigned int | baseAddress | ) |
LPMx.5 configuration is not locked and defaults to its reset condition.
baseAddress | is the base address of the PMM module. |
References FRPMM_LOCKLPM5, FRPMM_PW_H, and HWREGB.