亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲一卡二卡三卡四卡| 欧美视频在线一区| 日韩一卡二卡三卡| 日本视频中文字幕一区二区三区| 欧美日韩一区二区三区不卡| 国产乱码一区二区三区| 中文字幕永久在线不卡| 在线免费观看成人短视频| 美国十次综合导航| 国产精品萝li| 欧美日韩电影在线播放| 成人免费视频网站在线观看| 一区二区三区在线视频免费观看| 欧美一区二区三区啪啪| 粉嫩av亚洲一区二区图片| 免费xxxx性欧美18vr| 亚洲综合成人在线视频| 午夜精品久久久久久久蜜桃app| 久久久久久久久久久久久夜| 色综合色综合色综合 | 国产精品亚洲第一区在线暖暖韩国 | 日韩国产精品久久久| 亚洲一二三区不卡| 国产精品久久久久婷婷二区次| 欧美美女黄视频| av电影在线观看一区| 日韩成人精品视频| 国产伦精品一区二区三区免费迷| 亚洲国产精品人人做人人爽| 蜜臀精品久久久久久蜜臀| 国产一区视频导航| 一本大道久久a久久精二百| 91精品一区二区三区久久久久久| 欧亚洲嫩模精品一区三区| 精品入口麻豆88视频| 欧美三级欧美一级| 精品剧情v国产在线观看在线| 国产精品午夜免费| 青青草91视频| 色拍拍在线精品视频8848| 91精品国产入口| 一区精品在线播放| 久久国产精品区| 毛片av一区二区| 色婷婷综合在线| 精品福利一区二区三区| 国产拍揄自揄精品视频麻豆| 国产午夜亚洲精品午夜鲁丝片| 日韩精品在线网站| 精品日韩在线一区| 亚洲国产日韩在线一区模特| 成人免费高清视频在线观看| 51精品久久久久久久蜜臀| 国产精品国产三级国产aⅴ原创| 日本免费新一区视频| 在线免费观看不卡av| 国产精品久久久久aaaa| 韩国成人福利片在线播放| 成人黄色在线看| 欧美午夜不卡在线观看免费| 国产精品久久久久久久裸模| 国产91富婆露脸刺激对白| 日韩一级在线观看| 日韩精品1区2区3区| 久88久久88久久久| youjizz国产精品| 久久精品免视看| 国产专区欧美精品| 久久日韩粉嫩一区二区三区| 奇米精品一区二区三区四区| 欧美高清视频不卡网| 亚洲va欧美va国产va天堂影院| 麻豆精品一二三| 日韩免费性生活视频播放| 毛片av一区二区| 久久免费偷拍视频| 国产麻豆精品theporn| 国产日产欧美精品一区二区三区| 国产自产高清不卡| 久久久亚洲国产美女国产盗摄| 久久精品久久综合| 久久亚洲精华国产精华液| 最新久久zyz资源站| 亚洲伊人伊色伊影伊综合网| 色欧美乱欧美15图片| 一区二区三区四区蜜桃 | 一二三四区精品视频| 在线欧美小视频| 免费欧美高清视频| 日韩精品中文字幕在线一区| 国产精品系列在线播放| 日本一区二区三级电影在线观看 | 精品久久久久香蕉网| 国产一区二区女| 中文字幕一区av| 欧美日韩国产a| 99精品视频在线观看| 欧美日韩亚洲国产综合| 日本不卡一二三| 国产亚洲视频系列| 在线亚洲免费视频| 麻豆91免费观看| 亚洲色图制服丝袜| 日韩一卡二卡三卡四卡| 99视频在线观看一区三区| 曰韩精品一区二区| 99久久国产综合色|国产精品| 一区2区3区在线看| 337p日本欧洲亚洲大胆精品 | 一区二区三区精品视频| 日韩欧美国产综合一区| 91美女在线看| 亚洲少妇中出一区| 日韩精品一区二区三区在线播放| 成人av午夜影院| 免费观看在线综合| 一区二区三区欧美在线观看| 日韩欧美中文字幕一区| 91同城在线观看| 国产一区二区三区免费观看| 亚洲二区在线视频| 中文av一区二区| 久久综合久色欧美综合狠狠| 欧美视频在线观看一区| 国产成人精品免费一区二区| 中文字幕欧美激情一区| 成年人午夜久久久| 蜜乳av一区二区| 亚洲风情在线资源站| 亚洲女女做受ⅹxx高潮| 91成人在线免费观看| 五月天精品一区二区三区| 中文字幕一区二区在线播放| 精品福利av导航| 制服丝袜中文字幕亚洲| 欧美午夜在线一二页| 91在线国产观看| 成人av在线一区二区三区| 国产99精品国产| 国产麻豆精品95视频| 久久国产精品第一页| 日韩电影在线免费| 日日夜夜精品视频免费| 日韩黄色免费电影| 天堂va蜜桃一区二区三区 | 国产欧美精品一区二区色综合 | 国产精品久久久久天堂| 久久久99免费| 久久久久久**毛片大全| 久久精品一级爱片| 久久久另类综合| 国产日韩v精品一区二区| 国产亚洲精品aa| 国产色婷婷亚洲99精品小说| 国产欧美中文在线| 欧美国产精品久久| 亚洲色图19p| 亚洲成在人线免费| 免费久久精品视频| 激情久久五月天| 高清成人免费视频| 91片黄在线观看| 欧美三区在线观看| 日韩精品一区二区三区swag| 欧美岛国在线观看| 久久精品视频一区二区三区| 日韩一区日韩二区| 亚洲一区二区三区视频在线播放 | 一区二区三区在线观看欧美| 亚洲国产成人精品视频| 日本不卡不码高清免费观看| 久久福利视频一区二区| 国产91精品欧美| 色综合视频在线观看| 91精品国产一区二区三区香蕉| 久久嫩草精品久久久精品| 国产精品久久久久精k8| 婷婷开心激情综合| 麻豆中文一区二区| 成人午夜碰碰视频| 欧美日韩国产电影| 欧美激情综合五月色丁香小说| 亚洲欧美日本在线| 麻豆精品视频在线| 91亚洲国产成人精品一区二三| 欧美日韩精品一区二区三区蜜桃| 欧美白人最猛性xxxxx69交| 亚洲图片欧美激情| 激情综合色播五月| 91电影在线观看| 国产欧美日韩亚州综合| 午夜婷婷国产麻豆精品| 国产91对白在线观看九色| 在线电影院国产精品| 亚洲人成7777| 豆国产96在线|亚洲| 日韩精品中午字幕| 偷偷要91色婷婷| 91在线国产观看| 国产午夜精品福利|