亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stm32l1xx_pwr.c

?? STM32+Grlib
?? C
?? 第 1 頁 / 共 3 頁
字號:
/**
  ******************************************************************************
  * @file    stm32l1xx_pwr.c
  * @author  MCD Application Team
  * @version V1.0.0
  * @date    31-December-2010
  * @brief   This file provides firmware functions to manage the following 
  *          functionalities of the Power Controller (PWR) peripheral:           
  *           - RTC Domain Access
  *           - PVD configuration
  *           - WakeUp pins configuration
  *           - Ultra Low Power mode configuration
  *           - Voltage Scaling configuration
  *           - Low Power modes configuration
  *           - Flags management
  *               
  ******************************************************************************
  * @attention
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
  ******************************************************************************  
  */ 

/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx_pwr.h"
#include "stm32l1xx_rcc.h"

/** @addtogroup STM32L1xx_StdPeriph_Driver
  * @{
  */

/** @defgroup PWR 
  * @brief PWR driver modules
  * @{
  */ 

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* --------- PWR registers bit address in the alias region ---------- */
#define PWR_OFFSET               (PWR_BASE - PERIPH_BASE)

/* --- CR Register ---*/

/* Alias word address of DBP bit */
#define CR_OFFSET                (PWR_OFFSET + 0x00)
#define DBP_BitNumber            0x08
#define CR_DBP_BB                (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4))

/* Alias word address of PVDE bit */
#define PVDE_BitNumber           0x04
#define CR_PVDE_BB               (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4))

/* Alias word address of ULP bit */
#define ULP_BitNumber           0x09
#define CR_ULP_BB               (PERIPH_BB_BASE + (CR_OFFSET * 32) + (ULP_BitNumber * 4))

/* Alias word address of FWU bit */
#define FWU_BitNumber           0x0A
#define CR_FWU_BB               (PERIPH_BB_BASE + (CR_OFFSET * 32) + (FWU_BitNumber * 4))

/* --- CSR Register ---*/

/* Alias word address of EWUP bit */
#define CSR_OFFSET               (PWR_OFFSET + 0x04)
#define EWUP_BitNumber           0x08
#define CSR_EWUP_BB              (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (EWUP_BitNumber * 4))

/* ------------------ PWR registers bit mask ------------------------ */

/* CR register bit mask */
#define CR_DS_MASK               ((uint32_t)0xFFFFFFFC)
#define CR_PLS_MASK              ((uint32_t)0xFFFFFF1F)
#define CR_VOS_MASK              ((uint32_t)0xFFFFE7FF)

/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/** @defgroup PWR_Private_Functions
  * @{
  */

/** @defgroup PWR_Group1 RTC Domain Access function 
 *  @brief   RTC Domain Access function  
 *
@verbatim   
 ===============================================================================
                            RTC Domain Access function 
 ===============================================================================  

 After reset, the RTC Registers (RCC CSR Register, RTC registers and RTC backup 
 registers) are protected against possible stray write accesses.
 To enable access to RTC domain use the PWR_RTCAccessCmd(ENABLE) function.

@endverbatim
  * @{
  */

/**
  * @brief  Deinitializes the PWR peripheral registers to their default reset values.
  * @note   Before calling this function, the VOS[1:0] bits should be configured 
  *         to "10" and the system frequency has to be configured accordingly. 
  *         To configure the VOS[1:0] bits, use the PWR_VoltageScalingConfig()
  *         function.      
  * @note   ULP and FWU bits are not reset by this function.    
  * @param  None
  * @retval None
  */
void PWR_DeInit(void)
{
  RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE);
  RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, DISABLE);
}

/**
  * @brief  Enables or disables access to the RTC and backup registers.
  * @note   If the HSE divided by 2, 4, 8 or 16 is used as the RTC clock, the 
  *         RTC Domain Access should be kept enabled.
  * @param  NewState: new state of the access to the RTC and backup registers.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_RTCAccessCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  
  *(__IO uint32_t *) CR_DBP_BB = (uint32_t)NewState;
}

/**
  * @}
  */

/** @defgroup PWR_Group2 PVD configuration functions
 *  @brief   PVD configuration functions 
 *
@verbatim   
 ===============================================================================
                           PVD configuration functions
 ===============================================================================  

 - The PVD is used to monitor the VDD power supply by comparing it to a threshold
   selected by the PVD Level (PLS[2:0] bits in the PWR_CR).
 - The PVD can use an external input analog voltage (PVD_IN) which is compared 
   internally to VREFINT. The PVD_IN (PB7) has to be configured in Analog mode 
   when PWR_PVDLevel_7 is selected (PLS[2:0] = 111).
 - A PVDO flag is available to indicate if VDD/VDDA is higher or lower than the 
   PVD threshold. This event is internally connected to the EXTI line16
   and can generate an interrupt if enabled through the EXTI registers.
 - The PVD is stopped in Standby mode.

@endverbatim
  * @{
  */

/**
  * @brief  Configures the voltage threshold detected by the Power Voltage Detector(PVD).
  * @param  PWR_PVDLevel: specifies the PVD detection level
  *   This parameter can be one of the following values:
  *     @arg PWR_PVDLevel_0: PVD detection level set to 1.9V
  *     @arg PWR_PVDLevel_1: PVD detection level set to 2.1V
  *     @arg PWR_PVDLevel_2: PVD detection level set to 2.3V
  *     @arg PWR_PVDLevel_3: PVD detection level set to 2.5V
  *     @arg PWR_PVDLevel_4: PVD detection level set to 2.7V
  *     @arg PWR_PVDLevel_5: PVD detection level set to 2.9V
  *     @arg PWR_PVDLevel_6: PVD detection level set to 3.1V
  *     @arg PWR_PVDLevel_7: External input analog voltage (Compare internally to VREFINT)
  * @retval None
  */
void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel)
{
  uint32_t tmpreg = 0;
  
  /* Check the parameters */
  assert_param(IS_PWR_PVD_LEVEL(PWR_PVDLevel));
  
  tmpreg = PWR->CR;
  
  /* Clear PLS[7:5] bits */
  tmpreg &= CR_PLS_MASK;
  
  /* Set PLS[7:5] bits according to PWR_PVDLevel value */
  tmpreg |= PWR_PVDLevel;
  
  /* Store the new value */
  PWR->CR = tmpreg;
}

/**
  * @brief  Enables or disables the Power Voltage Detector(PVD).
  * @param  NewState: new state of the PVD.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_PVDCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  
  *(__IO uint32_t *) CR_PVDE_BB = (uint32_t)NewState;
}

/**
  * @}
  */

/** @defgroup PWR_Group3 WakeUp pins configuration functions
 *  @brief   WakeUp pins configuration functions 
 *
@verbatim   
 ===============================================================================
                    WakeUp pins configuration functions
 ===============================================================================  

 - WakeUp pins are used to wakeup the system from Standby mode. These pins are 
   forced in input pull down configuration and are active on rising edges.
 - There are three WakeUp pins: WakeUp Pin 1 on PA.00, WakeUp Pin 2 on PC.13 and
   WakeUp Pin 3 on PE.06.

@endverbatim
  * @{
  */

/**
  * @brief  Enables or disables the WakeUp Pin functionality.
  * @param  PWR_WakeUpPin: specifies the WakeUpPin.
  *   This parameter can be: PWR_WakeUpPin_1, PWR_WakeUpPin_2 or PWR_WakeUpPin_3.
  * @param  NewState: new state of the WakeUp Pin functionality.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_WakeUpPinCmd(uint32_t PWR_WakeUpPin, FunctionalState NewState)
{
  __IO uint32_t tmp = 0;
  
  /* Check the parameters */
  assert_param(IS_PWR_WAKEUP_PIN(PWR_WakeUpPin));
  
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  tmp = CSR_EWUP_BB + PWR_WakeUpPin;
  
  *(__IO uint32_t *) (tmp) = (uint32_t)NewState;
}

/**
  * @}
  */

/** @defgroup PWR_Group4 Ultra Low Power mode configuration functions
 *  @brief   Ultra Low Power mode configuration functions 
 *
@verbatim   
 ===============================================================================
                    Ultra Low Power mode configuration functions
 ===============================================================================  

 - The internal voltage reference consumption is not negligible, in particular 
   in Stop and Standby mode. To reduce power consumption, use the PWR_UltraLowPowerCmd()
   function (ULP bit (Ultra low power) in the PWR_CR register) to disable the 
   internal voltage reference. However, in this case, when exiting from the 
   Stop/Standby mode, the functions managed through the internal voltage reference 
   are not reliable during the internal voltage reference startup time (up to 3 ms).
   To reduce the wakeup time, the device can exit from Stop/Standby mode without 
   waiting for the internal voltage reference startup time. This is performed 
   by using the PWR_FastWakeUpCmd() function (setting the FWU bit (Fast
   wakeup) in the PWR_CR register) before entering Stop/Standby mode.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99r国产精品| 奇米一区二区三区| 欧美视频一区二区在线观看| 亚洲精选在线视频| 欧美日韩成人一区| 精品一区二区影视| 久久久久久久久伊人| 99国内精品久久| 天天色图综合网| 精品电影一区二区| eeuss鲁片一区二区三区在线看| 亚洲欧美在线高清| 欧美夫妻性生活| 国产一区在线看| 一区二区三区日韩精品| 欧美一区二区三区电影| 丁香一区二区三区| 成人蜜臀av电影| 椎名由奈av一区二区三区| 亚洲国产成人午夜在线一区| 日本韩国欧美一区| 国产成人av影院| 日韩精品欧美精品| 麻豆精品视频在线| 日韩一区有码在线| 久久久久久麻豆| 91精品久久久久久久99蜜桃| 成人av电影在线| 国产精品一区不卡| 久久机这里只有精品| 亚洲国产精品人人做人人爽| 国产欧美一区视频| www一区二区| 久久综合av免费| 精品国产乱码久久久久久老虎 | 色香蕉成人二区免费| 国产福利一区二区| 国产精品91一区二区| 国产一区二区三区免费在线观看 | 久久久久免费观看| 欧美电影免费观看高清完整版在| 一本久道久久综合中文字幕| 色综合夜色一区| 日本韩国欧美国产| 欧美剧情电影在线观看完整版免费励志电影 | 国产一区二区三区综合 | 欧美va天堂va视频va在线| 日韩欧美另类在线| 国产福利视频一区二区三区| 色综合久久久久久久久久久| 91精品国产色综合久久| 综合欧美亚洲日本| 久久精品国产精品亚洲综合| 国产精品亚洲视频| 精品一区二区影视| 国产精品亚洲专一区二区三区| 另类综合日韩欧美亚洲| 精品一区二区三区香蕉蜜桃| 久久精品噜噜噜成人88aⅴ| 免费成人在线观看视频| 激情都市一区二区| 成人午夜激情在线| 欧美少妇bbb| 337p粉嫩大胆噜噜噜噜噜91av | 欧美日韩午夜在线| 欧美一区二区三区不卡| 精品999久久久| 最新热久久免费视频| 一区二区三区四区精品在线视频| 亚洲成人免费影院| 国产一区美女在线| 欧美日韩成人高清| 国产精品不卡一区| 国产成人精品一区二| 日韩一级片在线观看| 亚洲va韩国va欧美va| av不卡免费在线观看| 国产午夜精品一区二区三区嫩草| 午夜不卡av在线| 欧美日韩一区不卡| 一级中文字幕一区二区| 91一区二区在线| 国产精品久久久99| av综合在线播放| 国产欧美精品一区aⅴ影院| 精品亚洲成a人| 国产午夜亚洲精品午夜鲁丝片| 美国精品在线观看| 日韩欧美一卡二卡| 精品亚洲国产成人av制服丝袜| 国产无遮挡一区二区三区毛片日本| 三级久久三级久久久| 日韩美女天天操| 成人av手机在线观看| 综合婷婷亚洲小说| 欧美伦理电影网| 日本欧洲一区二区| 国产精品一区二区男女羞羞无遮挡| 欧美日韩免费观看一区二区三区| 国产在线精品国自产拍免费| 国产欧美日韩视频一区二区| 亚洲地区一二三色| 国产成a人无v码亚洲福利| 一本一道久久a久久精品| 中文乱码免费一区二区| 欧美日韩国产bt| 99久久久久免费精品国产| 美女视频黄 久久| 亚洲精品欧美专区| 中文字幕va一区二区三区| 日韩午夜中文字幕| 欧美美女视频在线观看| 成人开心网精品视频| 国产一区二区精品久久91| 精品国产青草久久久久福利| 久久中文字幕电影| 免费在线看成人av| 精品国产乱码久久| 91性感美女视频| 亚洲国产精品av| 国产一区二区三区在线观看免费视频 | 8x8x8国产精品| 成人少妇影院yyyy| 亚洲永久免费视频| 欧美日韩你懂的| 麻豆国产精品视频| 日韩一区二区三区免费看| 久久99蜜桃精品| 欧美变态口味重另类| 国产精品自拍网站| 久久久欧美精品sm网站| 美国毛片一区二区三区| 91精品国产aⅴ一区二区| 奇米在线7777在线精品 | 亚洲18影院在线观看| 欧美调教femdomvk| 天堂va蜜桃一区二区三区漫画版| 欧美午夜精品免费| 国产成人精品影院| 成人免费毛片app| 91国偷自产一区二区开放时间| 欧美在线观看视频一区二区| 欧美亚洲国产一区在线观看网站| 欧美日本国产视频| 国产精品私人影院| 午夜久久福利影院| 丁香亚洲综合激情啪啪综合| 欧美在线啊v一区| 精品国产一二三区| 亚洲一区二区高清| 国产精品99久久久久久有的能看| 欧美精品一区男女天堂| 4438亚洲最大| 欧美成人video| 久久综合色天天久久综合图片| 日韩欧美色综合| 国产精品久久久久久久久搜平片| 国产精品久久久久久久久免费桃花| 中文一区二区在线观看| 日韩毛片高清在线播放| 日韩一区精品视频| 国产麻豆精品在线观看| 成人av电影免费在线播放| 日本精品裸体写真集在线观看| 欧美色图激情小说| www欧美成人18+| 日日摸夜夜添夜夜添国产精品 | 亚洲一区二区三区美女| 秋霞成人午夜伦在线观看| gogogo免费视频观看亚洲一| 欧美丝袜第三区| 久久精品亚洲国产奇米99| 精品一区二区在线视频| 99综合影院在线| 91视视频在线直接观看在线看网页在线看| 波多野结衣一区二区三区| 激情都市一区二区| 99精品视频在线观看免费| 成人一道本在线| 成人av动漫在线| 欧美美女激情18p| 精品电影一区二区| 午夜精品免费在线| 欧美四级电影网| 亚洲激情欧美激情| 成人毛片老司机大片| 国产欧美一区在线| 国产99久久久久| 久久久青草青青国产亚洲免观| 日本va欧美va精品| 欧美一区二区三区啪啪| 日韩av电影免费观看高清完整版在线观看| 不卡电影一区二区三区| 亚洲国产精品99久久久久久久久| 蓝色福利精品导航| 国产午夜亚洲精品不卡| 成人网在线播放| 亚洲综合久久久| 91麻豆精品国产91久久久久| 日韩中文字幕区一区有砖一区 |