WB32L003 Standard Peripherals Firmware Library

模块 | 函数
PWR
WB32L003_StdPeriph_Driver

PWR driver modules 更多...

## 模块
| PWR_Exported_Constants
| PWR_Private_Macros
| PWR_Private_Functions

## 函数
void | PWR_EnterSLEEPMode (uint8_t SLEEPEntry)
| Enters Sleep mode. 更多...
void | PWR_EnterDEEPSLEEPMode (void)
| Enters Deep Sleep mode. 更多...
void | PWR_EnableSleepOnExit (void)
| Indicates Sleep-On-Exit when returning from Handler mode to Thread mode. 更多...
void | PWR_DisableSleepOnExit (void)
| Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode. 更多...
void | PWR_EnableSEVOnPend (void)
| Enables CORTEX M0+ SEVONPEND bit. 更多...
void | PWR_DisableSEVOnPend (void)
| Disables CORTEX M0+ SEVONPEND bit. 更多...

## 详细描述

PWR driver modules

## 函数说明

## ◆ PWR_DisableSEVOnPend()

void PWR_DisableSEVOnPend | ( | void |  | ) |

Disables CORTEX M0+ SEVONPEND bit.

注解
  Clears SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended.

返回值

  None |

## ◆ PWR_DisableSleepOnExit()

void PWR_DisableSleepOnExit | ( | void |  | ) |

Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.

注解
  Clears SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over.

返回值

  None |

## ◆ PWR_EnableSEVOnPend()

void PWR_EnableSEVOnPend | ( | void |  | ) |

Enables CORTEX M0+ SEVONPEND bit.

注解
  Sets SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended.

返回值

  None |

## ◆ PWR_EnableSleepOnExit()

void PWR_EnableSleepOnExit | ( | void |  | ) |

Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.

注解
  Set SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over. Setting this bit is useful when the processor is expected to run only on interruptions handling.

返回值

  None |

## ◆ PWR_EnterDEEPSLEEPMode()

void PWR_EnterDEEPSLEEPMode | ( | void |  | ) |

Enters Deep Sleep mode.

注解
  In Deep Sleep mode, all I/O pins keep the same state as in Run mode.

返回值

  None |

## ◆ PWR_EnterSLEEPMode()

void PWR_EnterSLEEPMode | ( | uint8_t | SLEEPEntry | ) |

Enters Sleep mode.

注解
  In Sleep mode, all I/O pins keep the same state as in Run mode.

参数

  SLEEPEntry | Specifies if SLEEP mode is entered with WFI or WFE instruction. When WFI entry is used, tick interrupt have to be disabled if not desired as the interrupt wake up source. This parameter can be one of the following values: PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction

返回值

  None |