Power driver provides APIs to control peripherals power and control the system power mode.
static void POWER_EnablePD |
( |
pd_bit_t |
en | ) |
|
|
inlinestatic |
Note that enabling the bit powers down the peripheral
- Parameters
-
en | peripheral for which to enable the PDRUNCFG bit |
- Returns
- none
static void POWER_DisablePD |
( |
pd_bit_t |
en | ) |
|
|
inlinestatic |
Note that disabling the bit powers up the peripheral
- Parameters
-
en | peripheral for which to disable the PDRUNCFG bit |
- Returns
- none
static void POWER_EnableDeepSleep |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_DisableDeepSleep |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_PowerDownFlash |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_PowerUpFlash |
( |
void |
| ) |
|
|
inlinestatic |
void POWER_SetPLL |
( |
void |
| ) |
|
void POWER_SetUsbPhy |
( |
void |
| ) |
|
void POWER_EnterPowerMode |
( |
power_mode_cfg_t |
mode, |
|
|
uint64_t |
exclude_from_pd |
|
) |
| |
- Parameters
-
mode | Power mode configuration |
exclude_from_pd | Bit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) that needs to be powered on during power mode selected. |
- Returns
- none
void POWER_EnterSleep |
( |
void |
| ) |
|
void POWER_EnterDeepSleep |
( |
uint64_t |
exclude_from_pd | ) |
|
- Parameters
-
exclude_from_pd | Bit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) bits that needs to be powered on during deep sleep |
- Returns
- none
void POWER_EnterDeepPowerDown |
( |
uint64_t |
exclude_from_pd | ) |
|
- Parameters
-
exclude_from_pd | Bit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) that needs to be powered on during deep power down mode, but this is has no effect as the voltages are cut off. |
- Returns
- none
void POWER_SetVoltageForFreq |
( |
uint32_t |
freq | ) |
|
- Parameters
-
freq | - The desired frequency at which the part would like to operate, note that the voltage and flash wait states should be set before changing frequency |
- Returns
- none
uint32_t POWER_GetLibVersion |
( |
void |
| ) |
|
- Returns
- version number of the power library