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

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

?? pdf

?? STM32神舟III號開發(fā)板從零開始建立一個模板工程
??
字號:
/**
  ******************************************************************************
  * @file    stm32f10x_pwr.c
  * @author  MCD Application Team
  * @version V3.5.0
  * @date    11-March-2011
  * @brief   This file provides all the PWR firmware functions.
  ******************************************************************************
  * @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 2011 STMicroelectronics</center></h2>
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_pwr.h"
#include "stm32f10x_rcc.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{
  */

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

/** @defgroup PWR_Private_TypesDefinitions
  * @{
  */

/**
  * @}
  */

/** @defgroup PWR_Private_Defines
  * @{
  */

/* --------- 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))

/* --- 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)


/**
  * @}
  */

/** @defgroup PWR_Private_Macros
  * @{
  */

/**
  * @}
  */

/** @defgroup PWR_Private_Variables
  * @{
  */

/**
  * @}
  */

/** @defgroup PWR_Private_FunctionPrototypes
  * @{
  */

/**
  * @}
  */

/** @defgroup PWR_Private_Functions
  * @{
  */

/**
  * @brief  Deinitializes the PWR peripheral registers to their default reset values.
  * @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.
  * @param  NewState: new state of the access to the RTC and backup registers.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_BackupAccessCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  *(__IO uint32_t *) CR_DBP_BB = (uint32_t)NewState;
}

/**
  * @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;
}

/**
  * @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_2V2: PVD detection level set to 2.2V
  *     @arg PWR_PVDLevel_2V3: PVD detection level set to 2.3V
  *     @arg PWR_PVDLevel_2V4: PVD detection level set to 2.4V
  *     @arg PWR_PVDLevel_2V5: PVD detection level set to 2.5V
  *     @arg PWR_PVDLevel_2V6: PVD detection level set to 2.6V
  *     @arg PWR_PVDLevel_2V7: PVD detection level set to 2.7V
  *     @arg PWR_PVDLevel_2V8: PVD detection level set to 2.8V
  *     @arg PWR_PVDLevel_2V9: PVD detection level set to 2.9V
  * @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 WakeUp Pin functionality.
  * @param  NewState: new state of the WakeUp Pin functionality.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_WakeUpPinCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  *(__IO uint32_t *) CSR_EWUP_BB = (uint32_t)NewState;
}

/**
  * @brief  Enters STOP mode.
  * @param  PWR_Regulator: specifies the regulator state in STOP mode.
  *   This parameter can be one of the following values:
  *     @arg PWR_Regulator_ON: STOP mode with regulator ON
  *     @arg PWR_Regulator_LowPower: STOP mode with regulator in low power mode
  * @param  PWR_STOPEntry: specifies if STOP mode in entered with WFI or WFE instruction.
  *   This parameter can be one of the following values:
  *     @arg PWR_STOPEntry_WFI: enter STOP mode with WFI instruction
  *     @arg PWR_STOPEntry_WFE: enter STOP mode with WFE instruction
  * @retval None
  */
void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry)
{
  uint32_t tmpreg = 0;
  /* Check the parameters */
  assert_param(IS_PWR_REGULATOR(PWR_Regulator));
  assert_param(IS_PWR_STOP_ENTRY(PWR_STOPEntry));
  
  /* Select the regulator state in STOP mode ---------------------------------*/
  tmpreg = PWR->CR;
  /* Clear PDDS and LPDS bits */
  tmpreg &= CR_DS_MASK;
  /* Set LPDS bit according to PWR_Regulator value */
  tmpreg |= PWR_Regulator;
  /* Store the new value */
  PWR->CR = tmpreg;
  /* Set SLEEPDEEP bit of Cortex System Control Register */
  SCB->SCR |= SCB_SCR_SLEEPDEEP;
  
  /* Select STOP mode entry --------------------------------------------------*/
  if(PWR_STOPEntry == PWR_STOPEntry_WFI)
  {   
    /* Request Wait For Interrupt */
    __WFI();
  }
  else
  {
    /* Request Wait For Event */
    __WFE();
  }
  
  /* Reset SLEEPDEEP bit of Cortex System Control Register */
  SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP);  
}

/**
  * @brief  Enters STANDBY mode.
  * @param  None
  * @retval None
  */
void PWR_EnterSTANDBYMode(void)
{
  /* Clear Wake-up flag */
  PWR->CR |= PWR_CR_CWUF;
  /* Select STANDBY mode */
  PWR->CR |= PWR_CR_PDDS;
  /* Set SLEEPDEEP bit of Cortex System Control Register */
  SCB->SCR |= SCB_SCR_SLEEPDEEP;
/* This option is used to ensure that store operations are completed */
#if defined ( __CC_ARM   )
  __force_stores();
#endif
  /* Request Wait For Interrupt */
  __WFI();
}

/**
  * @brief  Checks whether the specified PWR flag is set or not.
  * @param  PWR_FLAG: specifies the flag to check.
  *   This parameter can be one of the following values:
  *     @arg PWR_FLAG_WU: Wake Up flag
  *     @arg PWR_FLAG_SB: StandBy flag
  *     @arg PWR_FLAG_PVDO: PVD Output
  * @retval The new state of PWR_FLAG (SET or RESET).
  */
FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG)
{
  FlagStatus bitstatus = RESET;
  /* Check the parameters */
  assert_param(IS_PWR_GET_FLAG(PWR_FLAG));
  
  if ((PWR->CSR & PWR_FLAG) != (uint32_t)RESET)
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  /* Return the flag status */
  return bitstatus;
}

/**
  * @brief  Clears the PWR's pending flags.
  * @param  PWR_FLAG: specifies the flag to clear.
  *   This parameter can be one of the following values:
  *     @arg PWR_FLAG_WU: Wake Up flag
  *     @arg PWR_FLAG_SB: StandBy flag
  * @retval None
  */
void PWR_ClearFlag(uint32_t PWR_FLAG)
{
  /* Check the parameters */
  assert_param(IS_PWR_CLEAR_FLAG(PWR_FLAG));
         
  PWR->CR |=  PWR_FLAG << 2;
}

/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三| 五月天久久比比资源色| 亚洲一区二区三区自拍| 国精产品一区一区三区mba视频| 播五月开心婷婷综合| 制服丝袜亚洲色图| 亚洲精品菠萝久久久久久久| 国产一区二区网址| 欧美日韩国产欧美日美国产精品| 18欧美乱大交hd1984| 狠狠色综合色综合网络| 欧美日韩二区三区| 亚洲另类春色校园小说| 国产成人在线视频网站| 亚洲精品一区二区三区福利| 天堂av在线一区| 色噜噜狠狠色综合中国| 亚洲色图都市小说| 国产精品18久久久久| 日韩欧美123| 琪琪久久久久日韩精品| 欧美日韩精品一区视频| 亚洲在线中文字幕| 91九色最新地址| 日韩伦理免费电影| gogo大胆日本视频一区| 国产亚洲短视频| 国产精品一级黄| 久久久亚洲午夜电影| 国产一区二区女| 26uuu久久综合| 激情图区综合网| 久久久久久久精| 国产成人免费xxxxxxxx| 国产亚洲欧美激情| 不卡的电影网站| 亚洲日穴在线视频| 日本大香伊一区二区三区| 亚洲天堂中文字幕| 在线看一区二区| 亚洲国产中文字幕在线视频综合| 欧美日韩中文一区| 日日夜夜免费精品| 欧美mv日韩mv国产网站| 国产一区二区中文字幕| 欧美国产综合色视频| 99久久婷婷国产综合精品| 亚洲欧洲色图综合| 91成人网在线| 麻豆国产一区二区| 久久色中文字幕| 91亚洲国产成人精品一区二三| 伊人婷婷欧美激情| 日韩午夜在线影院| 国产精品一二三| 亚洲影院理伦片| 这里只有精品电影| 国产99一区视频免费| 一区二区三区四区在线免费观看| 欧美精品在线观看播放| 国产在线视频一区二区| 亚洲精品福利视频网站| 日韩欧美色综合网站| 不卡欧美aaaaa| 天堂va蜜桃一区二区三区| 国产欧美一区二区精品性色 | 亚洲品质自拍视频| 欧美日韩中文国产| 国产成人日日夜夜| 视频一区在线播放| 国产欧美日韩麻豆91| 欧美日韩精品一区二区三区| 国产乱一区二区| 五月婷婷激情综合网| 国产香蕉久久精品综合网| 欧美性猛交xxxx乱大交退制版| 久99久精品视频免费观看| 亚洲精选一二三| 亚洲精品一区二区三区影院| 欧美少妇xxx| 丁香六月综合激情| 蜜臀91精品一区二区三区| 亚洲视频在线一区| 久久亚洲精品小早川怜子| 欧美亚洲国产一区在线观看网站| 国产美女精品一区二区三区| 天天操天天色综合| 亚洲色图一区二区| 国产精品水嫩水嫩| 精品国产欧美一区二区| 精品视频一区二区不卡| av中文字幕一区| 国产高清在线精品| 韩国午夜理伦三级不卡影院| 亚洲国产欧美另类丝袜| 亚洲免费在线观看视频| 久久久久久夜精品精品免费| 日韩情涩欧美日韩视频| 91麻豆精品国产91久久久久| 欧美色视频一区| 色噜噜狠狠色综合中国| 色综合久久天天综合网| av亚洲精华国产精华精| 粗大黑人巨茎大战欧美成人| 国产一区二区导航在线播放| 精品在线视频一区| 久久精品国产99国产精品| 日韩av中文字幕一区二区| 视频一区欧美精品| 五月天视频一区| 青椒成人免费视频| 蜜桃免费网站一区二区三区| 美女网站色91| 紧缚奴在线一区二区三区| 毛片av一区二区| 激情六月婷婷久久| 国产一区二区三区精品视频| 国内精品伊人久久久久av一坑| 久久99久久精品| 激情欧美一区二区| 风流少妇一区二区| 99久久综合99久久综合网站| 成人午夜激情影院| 色综合欧美在线| 欧美日韩一本到| 91精品国产色综合久久ai换脸| 欧美性做爰猛烈叫床潮| 91精品国产综合久久国产大片| 91精品国产综合久久蜜臀| 26uuu精品一区二区| 久久美女高清视频| 中文字幕亚洲精品在线观看| 亚洲精品视频在线看| 亚洲成人资源在线| 国产一区在线不卡| 成人精品视频.| 91在线高清观看| 777午夜精品免费视频| 欧美videossexotv100| 国产精品乱人伦| 亚洲一区在线看| 狠狠色综合日日| 色婷婷久久久综合中文字幕| 欧美一级日韩一级| 国产精品美女久久久久高潮| 亚洲国产毛片aaaaa无费看| 美女脱光内衣内裤视频久久影院| 国产成人在线观看免费网站| 色综合天天天天做夜夜夜夜做| 欧美欧美欧美欧美首页| 亚洲国产精品成人综合色在线婷婷 | 91麻豆精品在线观看| 91啪亚洲精品| 日韩欧美一区二区视频| 国产精品理论在线观看| 日本成人中文字幕在线视频| 不卡电影免费在线播放一区| 欧美另类久久久品| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美激情一区二区三区在线| 亚洲一区在线播放| 国产精品一级黄| 欧美日韩国产精品成人| 中文字幕免费不卡在线| 亚洲影视在线播放| 国产福利精品一区二区| 欧美人动与zoxxxx乱| 精品国内片67194| 久久99精品国产麻豆婷婷洗澡| 日韩免费在线观看| 国产精品自拍一区| 国产精品麻豆网站| 亚洲国产精品尤物yw在线观看| 亚洲黄色小说网站| 亚洲另类春色国产| 色吧成人激情小说| 一本一道久久a久久精品| 在线不卡中文字幕| 精品亚洲porn| 亚洲国产精品国自产拍av| 91精品国产手机| 亚洲影院免费观看| 91黄色小视频| 亚洲三级在线播放| 国产91丝袜在线播放0| 337p粉嫩大胆噜噜噜噜噜91av| 午夜免费欧美电影| 91官网在线免费观看| 亚洲另类春色校园小说| 91香蕉视频在线| 中文字幕一区二区在线播放| 黄网站免费久久| 亚洲精品在线观看网站| 麻豆91在线播放免费| 欧美一区二区视频网站| 视频在线观看一区| 欧美三级中文字| 亚洲成人午夜影院| 欧美日韩激情一区二区| 亚洲成人手机在线|