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

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

?? stm32l1xx_pwr.c

?? STM32+Grlib
?? C
?? 第 1 頁 / 共 3 頁
字號:
         RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions.

   - Comparator auto-wakeup (AWU) from the Stop mode
     -----------------------------------------------
     - To wake up from the Stop mode with an comparator 1 or comparator 2 wakeup
       event, it is necessary to:
       - Configure the EXTI Line 21 for comparator 1 or EXTI Line 22 for comparator 2 
         to be sensitive to to the selected edges (falling, rising or falling 
         and rising) (Interrupt or Event modes) using the EXTI_Init() function.
       - Configure the comparator to generate the event.

@endverbatim
  * @{
  */

/**
  * @brief  Enters/Exits the Low Power Run mode.
  * @note   Low power run mode can only be entered when VCORE is in range 2.
  *         In addition, the dynamic voltage scaling must not be used when Low 
  *         power run mode is selected. Only Stop and Sleep modes with regulator 
  *         configured in Low power mode is allowed when Low power run mode is 
  *         selected.  
  * @note   In Low power run mode, all I/O pins keep the same state as in Run mode.        
  * @param  NewState: new state of the Low Power Run mode.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void PWR_EnterLowPowerRunMode(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    PWR->CR |= PWR_CR_LPSDSR;
    PWR->CR |= PWR_CR_LPRUN;     
  }
  else
  {
    PWR->CR &= (uint32_t)~((uint32_t)PWR_CR_LPRUN); 
    PWR->CR &= (uint32_t)~((uint32_t)PWR_CR_LPSDSR);  
  }  
}

/**
  * @brief  Enters Sleep mode.
  * @note   In Sleep mode, all I/O pins keep the same state as in Run mode.  
  * @param  PWR_Regulator: specifies the regulator state in Sleep mode.
  *   This parameter can be one of the following values:
  *     @arg PWR_Regulator_ON: Sleep mode with regulator ON
  *     @arg PWR_Regulator_LowPower: Sleep mode with regulator in low power mode
  * @note   Low power sleep mode can only be entered when VCORE is in range 2.
  * @note   When the voltage regulator operates in low power mode, an additional 
  *         startup delay is incurred when waking up from Low power sleep mode.
  *                   
  * @param  PWR_SLEEPEntry: specifies if SLEEP mode in entered with WFI or WFE instruction.
  *   This parameter can be one of the following values:
  *     @arg PWR_SLEEPEntry_WFI: enter SLEEP mode with WFI instruction
  *     @arg PWR_SLEEPEntry_WFE: enter SLEEP mode with WFE instruction
  * @retval None
  */
void PWR_EnterSleepMode(uint32_t PWR_Regulator, uint8_t PWR_SLEEPEntry)
{
  uint32_t tmpreg = 0;

  /* Check the parameters */
  assert_param(IS_PWR_REGULATOR(PWR_Regulator));

  assert_param(IS_PWR_SLEEP_ENTRY(PWR_SLEEPEntry));
  
  /* Select the regulator state in Sleep mode ---------------------------------*/
  tmpreg = PWR->CR;
  
  /* Clear PDDS and LPDSR bits */
  tmpreg &= CR_DS_MASK;
  
  /* Set LPDSR bit according to PWR_Regulator value */
  tmpreg |= PWR_Regulator;
  
  /* Store the new value */
  PWR->CR = tmpreg;

  /* Clear SLEEPDEEP bit of Cortex System Control Register */
  SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP);
  
  /* Select SLEEP mode entry -------------------------------------------------*/
  if(PWR_SLEEPEntry == PWR_SLEEPEntry_WFI)
  {   
    /* Request Wait For Interrupt */
    __WFI();
  }
  else
  {
    /* Request Wait For Event */
    __WFE();
  }
}

/**
  * @brief  Enters STOP mode.
  * @note   In Stop mode, all I/O pins keep the same state as in Run mode.
  * @note   When exiting Stop mode by issuing an interrupt or a wakeup event, 
  *         the MSI RC oscillator is selected as system clock.
  * @note   When the voltage regulator operates in low power mode, an additional 
  *         startup delay is incurred when waking up from Stop mode. 
  *         By keeping the internal regulator ON during Stop mode, the consumption 
  *         is higher although the startup time is reduced.              
  * @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 LPDSR bits */
  tmpreg &= CR_DS_MASK;
  
  /* Set LPDSR 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.
  * @note   In Standby mode, all I/O pins are high impedance except for:
  *          - Reset pad (still available) 
  *          - RTC_AF1 pin (PC13) if configured for Wakeup pin 2 (WKUP2), tamper, 
  *            time-stamp, RTC Alarm out, or RTC clock calibration out.
  *          - WKUP pin 1 (PA0) and WKUP pin 3 (PE6), if enabled.       
  * @param  None
  * @retval None
  */
void PWR_EnterSTANDBYMode(void)
{
  /* Clear Wakeup 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();
}

/**
  * @}
  */

/** @defgroup PWR_Group7 Flags management functions
 *  @brief   Flags management functions 
 *
@verbatim   
 ===============================================================================
                           Flags management functions
 ===============================================================================  

@endverbatim
  * @{
  */

/**
  * @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. This flag indicates that a wakeup event 
  *       was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), 
  *       RTC Tamper event, RTC TimeStamp event or RTC Wakeup.
  *     @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was
  *                       resumed from StandBy mode.    
  *     @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled 
  *       by the PWR_PVDCmd() function.
  *     @arg PWR_FLAG_VREFINTRDY: Internal Voltage Reference Ready flag. This 
  *       flag indicates the state of the internal voltage reference, VREFINT.
  *     @arg PWR_FLAG_VOS: Voltage Scaling select flag. A delay is required for 
  *       the internal regulator to be ready after the voltage range is changed.
  *       The VOSF flag indicates that the regulator has reached the voltage level 
  *       defined with bits VOS[1:0] of PWR_CR register.
  *     @arg PWR_FLAG_REGLP: Regulator LP flag. This flag is set by hardware 
  *       when the MCU is in Low power run mode.
  *       When the MCU exits from Low power run mode, this flag stays SET until 
  *       the regulator is ready in main mode. A polling on this flag is 
  *       recommended to wait for the regulator main mode. 
  *       This flag is RESET by hardware when the regulator is ready.       
  * @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 2010 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲乱码国产乱码精品精的特点| 国产精品亚洲视频| 国产精品自拍毛片| 91传媒视频在线播放| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产亲近乱来精品视频| 亚洲成人777| 97精品电影院| 国产午夜亚洲精品午夜鲁丝片| 亚洲成人久久影院| eeuss鲁片一区二区三区在线看| 日韩欧美亚洲另类制服综合在线| 亚洲美女在线国产| 成年人网站91| 久久精品人人做人人综合 | 精品一区二区在线免费观看| 色婷婷国产精品| 椎名由奈av一区二区三区| 国产精品一区二区久久精品爱涩| 69精品人人人人| 一区二区三区日韩在线观看| 夫妻av一区二区| 久久免费精品国产久精品久久久久| 日韩高清电影一区| 欧美放荡的少妇| 午夜成人免费电影| 欧美午夜精品久久久| 亚洲黄色小说网站| 色爱区综合激月婷婷| 亚洲精品中文字幕在线观看| 北条麻妃一区二区三区| 中文字幕在线一区二区三区| 国产成人av在线影院| 久久色.com| 国产伦理精品不卡| 国产欧美日本一区二区三区| 黄网站免费久久| 国产欧美一区在线| 不卡av在线免费观看| 亚洲丝袜美腿综合| 欧美亚洲国产一区二区三区| 亚洲国产美国国产综合一区二区| 精品视频1区2区| 日本亚洲欧美天堂免费| 精品对白一区国产伦| 国产精品888| 最新成人av在线| 在线观看91视频| 蜜臀av一区二区三区| 精品国产凹凸成av人导航| 国产 欧美在线| 亚洲夂夂婷婷色拍ww47| 91精品国产综合久久精品麻豆 | 国产91在线看| 一区二区三区中文在线| 91精品国产综合久久久蜜臀图片| 精品一区二区三区蜜桃| 国产精品乱码人人做人人爱| 色婷婷久久99综合精品jk白丝| 午夜免费欧美电影| 久久久久久久久久久99999| 色一情一乱一乱一91av| 午夜精品影院在线观看| 久久综合九色综合欧美98| 99精品视频在线观看| 亚洲成av人综合在线观看| 欧美一区二区三级| 成人黄色在线视频| 婷婷六月综合网| 欧美激情中文字幕| 欧美视频日韩视频| 国产精品亚洲人在线观看| 亚洲日本青草视频在线怡红院| 欧美人狂配大交3d怪物一区| 国产成人丝袜美腿| 日本亚洲视频在线| 亚洲精品成人悠悠色影视| 精品国产乱码久久久久久老虎 | 制服丝袜av成人在线看| 成人av第一页| 麻豆久久一区二区| 国产精品乱人伦中文| 欧美电视剧在线看免费| 91国偷自产一区二区开放时间| 美女mm1313爽爽久久久蜜臀| 亚洲最大的成人av| 精品国产免费一区二区三区四区| 一本大道久久a久久精品综合| 黄色日韩三级电影| 亚洲欧洲综合另类| 精品国产免费久久| 欧美老年两性高潮| 色94色欧美sute亚洲线路一久| 国产一区二区三区香蕉| 欧美aaa在线| 亚洲高清久久久| 最近中文字幕一区二区三区| 久久久99精品久久| 久久久五月婷婷| 精品国产乱码91久久久久久网站| 在线看日本不卡| 91原创在线视频| 成人h精品动漫一区二区三区| 国产综合久久久久影院| 日本v片在线高清不卡在线观看| 亚洲黄色录像片| 亚洲日本丝袜连裤袜办公室| 欧美激情在线看| 久久精品免视看| 久久精品一二三| 久久精品夜色噜噜亚洲a∨| 久久尤物电影视频在线观看| 欧美一区二区免费观在线| 欧美日韩亚洲另类| 欧美猛男男办公室激情| 欧美日韩二区三区| 91精品国产综合久久精品图片| 欧美一区二区三区日韩视频| 91精品久久久久久久99蜜桃| 欧美一级在线视频| 精品国产第一区二区三区观看体验| 欧美成人女星排行榜| 久久综合九色综合97婷婷女人| 久久综合五月天婷婷伊人| 久久亚区不卡日本| 中文幕一区二区三区久久蜜桃| 国产欧美一区二区精品久导航| 欧美激情一区在线观看| 中文字幕亚洲欧美在线不卡| 亚洲免费观看视频| 性久久久久久久| 精品在线免费视频| 成人性生交大合| 一本一道波多野结衣一区二区| 欧美日韩视频在线第一区 | 国产精品美女久久久久久久| 国产精品久久久久影院| 亚洲欧洲综合另类| 日本sm残虐另类| 国产成人在线看| 欧美亚州韩日在线看免费版国语版| 欧美日韩中文字幕一区二区| 欧美成人三级电影在线| 国产精品理论片在线观看| 综合久久综合久久| 午夜av一区二区三区| 韩国毛片一区二区三区| 成人福利视频网站| 777色狠狠一区二区三区| 久久久青草青青国产亚洲免观| 国产精品国产三级国产专播品爱网| 亚洲综合精品自拍| 国产一区在线看| 在线观看91精品国产入口| 精品国产乱码久久久久久1区2区| 18成人在线视频| 黄色小说综合网站| 欧美天堂一区二区三区| 久久精品一区八戒影视| 亚洲在线视频网站| 国产一区二区三区免费在线观看| 91免费看`日韩一区二区| 日韩美女天天操| 夜夜嗨av一区二区三区网页| 国产一区二区三区久久悠悠色av| 欧美性淫爽ww久久久久无| 久久尤物电影视频在线观看| 丝袜a∨在线一区二区三区不卡| 国产91清纯白嫩初高中在线观看 | 欧美理论片在线| 亚洲欧洲三级电影| 国模大尺度一区二区三区| 欧美色精品天天在线观看视频| 国产欧美一区二区精品忘忧草| 蜜桃久久久久久| 欧美日韩不卡视频| 亚洲免费av高清| 丁香天五香天堂综合| 日韩美女视频在线| 亚洲国产成人av好男人在线观看| 成人国产精品免费网站| 久久美女艺术照精彩视频福利播放| 午夜一区二区三区视频| 91免费国产视频网站| 国产精品初高中害羞小美女文| 国产一区二区h| 精品国产一区二区在线观看| 日韩国产欧美一区二区三区| 欧美在线色视频| 一区二区免费在线| 色综合天天综合在线视频| 国产精品久久久久一区二区三区 | 久久国产福利国产秒拍| 欧美一区二区三区婷婷月色| 亚洲成av人片| 51久久夜色精品国产麻豆| 亚洲成a人片在线观看中文| 欧美综合一区二区三区| 一个色综合网站| 欧美美女直播网站|