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

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

?? stm32l1xx_pwr.c

?? VS1003_MP3_SPI_SDHC_FAT32
?? C
?? 第 1 頁 / 共 3 頁
字號:
/**
  ******************************************************************************
  * @file    stm32l1xx_pwr.c
  * @author  MCD Application Team
  * @version V1.1.0
  * @date    24-January-2012
  * @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.
  *
  * FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
  * LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
  *
  * <h2><center>&copy; COPYRIGHT 2012 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 pin 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 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区在线不卡 | 亚洲va国产天堂va久久en| 久久久久久免费毛片精品| 3751色影院一区二区三区| 91精品在线观看入口| 欧美丰满一区二区免费视频| 欧美伊人久久大香线蕉综合69 | 韩国v欧美v日本v亚洲v| 美女性感视频久久| 国产一区在线看| 国产一区二区三区蝌蚪| 成人av网址在线观看| 91视频在线观看| 欧美视频一区在线观看| 日韩一区二区在线观看视频| 欧美xxxx在线观看| 日本一区二区成人| 亚洲永久免费视频| 精品亚洲成a人| thepron国产精品| 91福利视频网站| 欧美大片一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 日韩毛片一二三区| 五月激情综合网| 国产麻豆精品在线观看| 在线精品观看国产| 精品欧美乱码久久久久久| 国产精品毛片久久久久久久 | 欧美精品在线一区二区| 精品国产欧美一区二区| 综合亚洲深深色噜噜狠狠网站| 亚洲成人免费在线| 国产黑丝在线一区二区三区| 一本大道久久精品懂色aⅴ| 欧美一区二区播放| 国产精品久线观看视频| 青椒成人免费视频| 色婷婷精品久久二区二区蜜臀av| 日韩三级在线观看| 一区二区免费在线| 国产福利精品导航| 欧美日韩一区二区欧美激情| 国产色婷婷亚洲99精品小说| 亚洲电影在线播放| 91一区在线观看| 国产日韩精品一区二区浪潮av | 国产精品一级黄| 欧美日本视频在线| 亚洲狼人国产精品| 国产成人日日夜夜| 在线综合视频播放| 亚洲一区av在线| 91社区在线播放| 国产嫩草影院久久久久| 国产在线精品国自产拍免费| 91精品在线一区二区| 亚洲国产成人av好男人在线观看| av高清久久久| 国产精品女人毛片| 国产一区二区久久| 久久影音资源网| 韩国一区二区视频| 精品成人一区二区| 国模无码大尺度一区二区三区| 5566中文字幕一区二区电影| 亚洲gay无套男同| 色偷偷久久人人79超碰人人澡 | 91福利精品视频| 一区在线播放视频| 99精品视频中文字幕| 国产精品理论片在线观看| 国产成人自拍高清视频在线免费播放| 日韩欧美中文字幕一区| 久久精品噜噜噜成人av农村| 欧美久久一区二区| 奇米精品一区二区三区四区| 在线成人高清不卡| 久久成人18免费观看| 精品国产一区久久| 国产成人精品免费网站| 国产精品初高中害羞小美女文| 成人毛片在线观看| 一区二区在线观看免费 | 91精品国产福利在线观看| 日韩1区2区日韩1区2区| 欧美电视剧在线看免费| 国产成人亚洲综合a∨婷婷| 亚洲国产高清aⅴ视频| 91在线国产福利| 亚洲韩国精品一区| 在线不卡欧美精品一区二区三区| 日本中文字幕不卡| 国产色91在线| 欧美综合亚洲图片综合区| 五月激情丁香一区二区三区| 精品国产sm最大网站免费看 | 亚洲欧美视频在线观看视频| 在线免费观看不卡av| 五月激情综合网| 国产欧美一区二区三区网站| 欧洲一区二区三区在线| 久久99精品视频| 亚洲猫色日本管| 欧美成人一区二区三区| av高清不卡在线| 免费av网站大全久久| 国产精品高潮呻吟久久| 欧美老肥妇做.爰bbww视频| 国产成人在线视频网站| 亚洲国产一区二区在线播放| 2020国产成人综合网| 欧美视频在线播放| 国产不卡高清在线观看视频| 亚洲高清不卡在线观看| 亚洲国产岛国毛片在线| 69堂成人精品免费视频| www.日韩精品| 黄色日韩网站视频| 午夜私人影院久久久久| 国产精品久久夜| 337p日本欧洲亚洲大胆精品| 欧美性欧美巨大黑白大战| 国产v综合v亚洲欧| 蜜臀av一级做a爰片久久| 亚洲人成精品久久久久久| 国产无人区一区二区三区| 欧美妇女性影城| 欧美性一二三区| 91尤物视频在线观看| 国产黄色精品网站| 看电视剧不卡顿的网站| 视频一区二区欧美| 亚洲另类色综合网站| 国产精品麻豆99久久久久久| 久久先锋资源网| 精品伦理精品一区| 日韩免费观看高清完整版 | 日本福利一区二区| 成人免费av网站| 国产伦精品一区二区三区在线观看| 亚洲成av人影院| 亚洲妇熟xx妇色黄| 亚洲午夜私人影院| 午夜私人影院久久久久| 亚洲国产cao| 日一区二区三区| 日韩av在线播放中文字幕| 日韩激情中文字幕| 欧美a级一区二区| 久久精品国产亚洲高清剧情介绍 | 亚洲精品视频在线看| 国产目拍亚洲精品99久久精品| 欧美精品一区二区三区高清aⅴ | 成人av在线资源网站| 国产乱子伦视频一区二区三区| 久草中文综合在线| 国产精品亚洲а∨天堂免在线| 国产一区二区福利视频| 国产成都精品91一区二区三 | 亚洲永久免费视频| 香蕉加勒比综合久久| 日本特黄久久久高潮| 老司机精品视频在线| 国产剧情一区二区三区| 成人免费高清在线| 色综合久久久久综合体| 欧美日韩高清一区二区| 日韩免费高清av| 中文字幕精品一区二区精品绿巨人| 国产精品成人免费| 亚洲永久免费视频| 美女精品一区二区| 国产麻豆精品在线| 一本久久综合亚洲鲁鲁五月天| 欧美日韩日日骚| 久久综合久久综合九色| 亚洲色图欧美激情| 日韩国产欧美在线播放| 国产精品亚洲综合一区在线观看| a美女胸又www黄视频久久| 欧美日韩国产精品成人| 久久九九国产精品| 亚洲一区二区成人在线观看| 麻豆91小视频| 91亚洲精品乱码久久久久久蜜桃| 欧美三级中文字| 中文字幕不卡在线观看| 天堂av在线一区| 成人午夜在线播放| 欧美一区二区三区四区五区| 中文字幕一区二区三区在线播放 | 欧美激情一区不卡| 午夜视黄欧洲亚洲| av毛片久久久久**hd| 欧美一区二区三区系列电影| 亚洲美女屁股眼交| 国产成人精品一区二区三区四区| 欧美日韩小视频| 亚洲精选免费视频|