MG32F10x Standard Peripherals Firmware Library

宏定义 | 函数
mg32f10x_pwr.c 文件参考

This file provides all the PWR firmware functions. 更多...

`#include "mg32f10x_pwr.h"`

## 宏定义
#define | CR0_DBP_BB BIT_BAND_ADDR(&PWR->CR0, 0)
#define | CR2_EWUP_BB BIT_BAND_ADDR(&PWR->CR2, 0)
#define | PRE_LP() ((void(*)(void))((unsigned int)(pre_lp_code) | 0x01))()
#define | POST_LP() ((void(*)(void))((unsigned int)(post_lp_code) | 0x01))()

## 函数
void | PWR_BackupAccessCmd (FunctionalState NewState)
| Enables or disables access to the RTC and backup registers. 更多...
void | PWR_WakeUpPinCmd (FunctionalState NewState)
| Enables or disables the WakeUp Pin functionality. 更多...
void | PWR_EnterSLEEPMode (uint8_t PWR_FCLK, uint8_t PWR_EntryMode)
| Enters SLEEP mode. 更多...
void | PWR_EnterSTOPMode (uint16_t PWR_STOPMode, uint8_t PWR_EntryMode)
| Enters STOP mode. 更多...
void | PWR_EnterSTANDBYMode (void)
| Enters STANDBY mode. 更多...
FlagStatus | PWR_GetFlagStatus (uint32_t PWR_FLAG)
| Checks whether the specified PWR flag is set or not. 更多...
void | PWR_ClearFlag (uint32_t PWR_FLAG)
| Clears the PWR's pending flags. 更多...
void | PWR_UnlockANA (void)
| Disable ANCTL register write-protection function. 更多...
void | PWR_LockANA (void)
| Enable ANCTL register write-protection function. 更多...

## 详细描述

This file provides all the PWR firmware functions.

作者
  megawin Application Team

版本
  V0.1.10

日期
  05-January-2023