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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pdf

?? STM32神舟III號(hào)開發(fā)板從零開始建立一個(gè)模板工程
??
字號(hào):
/**
  ******************************************************************************
  * @file    stm32f10x_rtc.c
  * @author  MCD Application Team
  * @version V3.5.0
  * @date    11-March-2011
  * @brief   This file provides all the RTC 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_rtc.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{
  */

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

/** @defgroup RTC_Private_TypesDefinitions
  * @{
  */ 
/**
  * @}
  */

/** @defgroup RTC_Private_Defines
  * @{
  */
#define RTC_LSB_MASK     ((uint32_t)0x0000FFFF)  /*!< RTC LSB Mask */
#define PRLH_MSB_MASK    ((uint32_t)0x000F0000)  /*!< RTC Prescaler MSB Mask */

/**
  * @}
  */

/** @defgroup RTC_Private_Macros
  * @{
  */

/**
  * @}
  */

/** @defgroup RTC_Private_Variables
  * @{
  */

/**
  * @}
  */

/** @defgroup RTC_Private_FunctionPrototypes
  * @{
  */

/**
  * @}
  */

/** @defgroup RTC_Private_Functions
  * @{
  */

/**
  * @brief  Enables or disables the specified RTC interrupts.
  * @param  RTC_IT: specifies the RTC interrupts sources to be enabled or disabled.
  *   This parameter can be any combination of the following values:
  *     @arg RTC_IT_OW: Overflow interrupt
  *     @arg RTC_IT_ALR: Alarm interrupt
  *     @arg RTC_IT_SEC: Second interrupt
  * @param  NewState: new state of the specified RTC interrupts.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void RTC_ITConfig(uint16_t RTC_IT, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_RTC_IT(RTC_IT));  
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  
  if (NewState != DISABLE)
  {
    RTC->CRH |= RTC_IT;
  }
  else
  {
    RTC->CRH &= (uint16_t)~RTC_IT;
  }
}

/**
  * @brief  Enters the RTC configuration mode.
  * @param  None
  * @retval None
  */
void RTC_EnterConfigMode(void)
{
  /* Set the CNF flag to enter in the Configuration Mode */
  RTC->CRL |= RTC_CRL_CNF;
}

/**
  * @brief  Exits from the RTC configuration mode.
  * @param  None
  * @retval None
  */
void RTC_ExitConfigMode(void)
{
  /* Reset the CNF flag to exit from the Configuration Mode */
  RTC->CRL &= (uint16_t)~((uint16_t)RTC_CRL_CNF); 
}

/**
  * @brief  Gets the RTC counter value.
  * @param  None
  * @retval RTC counter value.
  */
uint32_t RTC_GetCounter(void)
{
  uint16_t tmp = 0;
  tmp = RTC->CNTL;
  return (((uint32_t)RTC->CNTH << 16 ) | tmp) ;
}

/**
  * @brief  Sets the RTC counter value.
  * @param  CounterValue: RTC counter new value.
  * @retval None
  */
void RTC_SetCounter(uint32_t CounterValue)
{ 
  RTC_EnterConfigMode();
  /* Set RTC COUNTER MSB word */
  RTC->CNTH = CounterValue >> 16;
  /* Set RTC COUNTER LSB word */
  RTC->CNTL = (CounterValue & RTC_LSB_MASK);
  RTC_ExitConfigMode();
}

/**
  * @brief  Sets the RTC prescaler value.
  * @param  PrescalerValue: RTC prescaler new value.
  * @retval None
  */
void RTC_SetPrescaler(uint32_t PrescalerValue)
{
  /* Check the parameters */
  assert_param(IS_RTC_PRESCALER(PrescalerValue));
  
  RTC_EnterConfigMode();
  /* Set RTC PRESCALER MSB word */
  RTC->PRLH = (PrescalerValue & PRLH_MSB_MASK) >> 16;
  /* Set RTC PRESCALER LSB word */
  RTC->PRLL = (PrescalerValue & RTC_LSB_MASK);
  RTC_ExitConfigMode();
}

/**
  * @brief  Sets the RTC alarm value.
  * @param  AlarmValue: RTC alarm new value.
  * @retval None
  */
void RTC_SetAlarm(uint32_t AlarmValue)
{  
  RTC_EnterConfigMode();
  /* Set the ALARM MSB word */
  RTC->ALRH = AlarmValue >> 16;
  /* Set the ALARM LSB word */
  RTC->ALRL = (AlarmValue & RTC_LSB_MASK);
  RTC_ExitConfigMode();
}

/**
  * @brief  Gets the RTC divider value.
  * @param  None
  * @retval RTC Divider value.
  */
uint32_t RTC_GetDivider(void)
{
  uint32_t tmp = 0x00;
  tmp = ((uint32_t)RTC->DIVH & (uint32_t)0x000F) << 16;
  tmp |= RTC->DIVL;
  return tmp;
}

/**
  * @brief  Waits until last write operation on RTC registers has finished.
  * @note   This function must be called before any write to RTC registers.
  * @param  None
  * @retval None
  */
void RTC_WaitForLastTask(void)
{
  /* Loop until RTOFF flag is set */
  while ((RTC->CRL & RTC_FLAG_RTOFF) == (uint16_t)RESET)
  {
  }
}

/**
  * @brief  Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL)
  *   are synchronized with RTC APB clock.
  * @note   This function must be called before any read operation after an APB reset
  *   or an APB clock stop.
  * @param  None
  * @retval None
  */
void RTC_WaitForSynchro(void)
{
  /* Clear RSF flag */
  RTC->CRL &= (uint16_t)~RTC_FLAG_RSF;
  /* Loop until RSF flag is set */
  while ((RTC->CRL & RTC_FLAG_RSF) == (uint16_t)RESET)
  {
  }
}

/**
  * @brief  Checks whether the specified RTC flag is set or not.
  * @param  RTC_FLAG: specifies the flag to check.
  *   This parameter can be one the following values:
  *     @arg RTC_FLAG_RTOFF: RTC Operation OFF flag
  *     @arg RTC_FLAG_RSF: Registers Synchronized flag
  *     @arg RTC_FLAG_OW: Overflow flag
  *     @arg RTC_FLAG_ALR: Alarm flag
  *     @arg RTC_FLAG_SEC: Second flag
  * @retval The new state of RTC_FLAG (SET or RESET).
  */
FlagStatus RTC_GetFlagStatus(uint16_t RTC_FLAG)
{
  FlagStatus bitstatus = RESET;
  
  /* Check the parameters */
  assert_param(IS_RTC_GET_FLAG(RTC_FLAG)); 
  
  if ((RTC->CRL & RTC_FLAG) != (uint16_t)RESET)
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return bitstatus;
}

/**
  * @brief  Clears the RTC's pending flags.
  * @param  RTC_FLAG: specifies the flag to clear.
  *   This parameter can be any combination of the following values:
  *     @arg RTC_FLAG_RSF: Registers Synchronized flag. This flag is cleared only after
  *                        an APB reset or an APB Clock stop.
  *     @arg RTC_FLAG_OW: Overflow flag
  *     @arg RTC_FLAG_ALR: Alarm flag
  *     @arg RTC_FLAG_SEC: Second flag
  * @retval None
  */
void RTC_ClearFlag(uint16_t RTC_FLAG)
{
  /* Check the parameters */
  assert_param(IS_RTC_CLEAR_FLAG(RTC_FLAG)); 
    
  /* Clear the corresponding RTC flag */
  RTC->CRL &= (uint16_t)~RTC_FLAG;
}

/**
  * @brief  Checks whether the specified RTC interrupt has occurred or not.
  * @param  RTC_IT: specifies the RTC interrupts sources to check.
  *   This parameter can be one of the following values:
  *     @arg RTC_IT_OW: Overflow interrupt
  *     @arg RTC_IT_ALR: Alarm interrupt
  *     @arg RTC_IT_SEC: Second interrupt
  * @retval The new state of the RTC_IT (SET or RESET).
  */
ITStatus RTC_GetITStatus(uint16_t RTC_IT)
{
  ITStatus bitstatus = RESET;
  /* Check the parameters */
  assert_param(IS_RTC_GET_IT(RTC_IT)); 
  
  bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
  if (((RTC->CRH & RTC_IT) != (uint16_t)RESET) && (bitstatus != (uint16_t)RESET))
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return bitstatus;
}

/**
  * @brief  Clears the RTC's interrupt pending bits.
  * @param  RTC_IT: specifies the interrupt pending bit to clear.
  *   This parameter can be any combination of the following values:
  *     @arg RTC_IT_OW: Overflow interrupt
  *     @arg RTC_IT_ALR: Alarm interrupt
  *     @arg RTC_IT_SEC: Second interrupt
  * @retval None
  */
void RTC_ClearITPendingBit(uint16_t RTC_IT)
{
  /* Check the parameters */
  assert_param(IS_RTC_IT(RTC_IT));  
  
  /* Clear the corresponding RTC pending bit */
  RTC->CRL &= (uint16_t)~RTC_IT;
}

/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费看的电影| 中文欧美字幕免费| 成人小视频在线| 亚洲国产美女搞黄色| 久久精品在线免费观看| 欧美日韩国产综合久久 | 国产精品伦一区二区三级视频| 99视频精品免费视频| 美女一区二区视频| 亚洲精品久久久蜜桃| 国产偷v国产偷v亚洲高清| 欧美日高清视频| 91香蕉视频在线| 国产精品亚洲一区二区三区在线| 午夜影视日本亚洲欧洲精品| 国产精品久久久久天堂| 久久综合久久鬼色中文字| 欧美色图12p| 色综合亚洲欧洲| 国产成人在线网站| 蜜臀av性久久久久蜜臀av麻豆| 一区二区三区.www| 中文字幕制服丝袜成人av| 久久嫩草精品久久久久| 91精品国产入口| 欧美日韩一区三区四区| 91欧美一区二区| 成人性生交大片免费看视频在线 | 亚洲永久精品大片| 成人欧美一区二区三区小说| 国产精品水嫩水嫩| 国产亚洲短视频| 久久久久久久久免费| 日韩视频一区二区在线观看| 欧美精品粉嫩高潮一区二区| 欧美系列在线观看| 在线视频亚洲一区| 在线观看日韩电影| 色噜噜狠狠色综合欧洲selulu| aa级大片欧美| 不卡的av网站| 91视频观看视频| 91免费视频观看| 99久久精品国产毛片| 99精品久久99久久久久| 成人福利视频在线| 北条麻妃一区二区三区| jlzzjlzz亚洲女人18| av网站免费线看精品| 91在线看国产| 色乱码一区二区三区88| 欧美三级日本三级少妇99| 欧美老肥妇做.爰bbww视频| 欧美乱熟臀69xxxxxx| 在线综合亚洲欧美在线视频| 日韩美女天天操| www国产成人免费观看视频 深夜成人网| 精品久久久久久久久久久久包黑料| 日韩欧美成人一区二区| 亚洲国产成人在线| 亚洲欧美色综合| 午夜亚洲福利老司机| 久久精工是国产品牌吗| 国产成人免费网站| 91福利国产精品| 欧美一区二区三区在线视频| 久久亚洲免费视频| 国产视频一区不卡| 亚洲精品v日韩精品| 日本一区中文字幕 | 99视频有精品| 欧美日韩免费电影| 日韩一区二区三区四区五区六区| 久久久国产精品麻豆 | 精品写真视频在线观看| 国产成人一区在线| 欧美性色aⅴ视频一区日韩精品| 日韩亚洲欧美在线| 亚洲国产电影在线观看| 亚洲高清免费视频| 国产毛片精品视频| 91一区二区在线| 日韩三级在线观看| 亚洲免费在线看| 看电视剧不卡顿的网站| 9l国产精品久久久久麻豆| 在线不卡中文字幕| 1024精品合集| 狠狠色丁香久久婷婷综合丁香| 91视频免费播放| 精品国产乱码久久久久久久| 尤物在线观看一区| 国产乱国产乱300精品| 欧美色涩在线第一页| 国产欧美中文在线| 日韩精品福利网| 成人免费视频免费观看| 欧美一级淫片007| 亚洲欧美日韩国产综合在线| 精彩视频一区二区| 欧美精品成人一区二区三区四区| 国产精品色婷婷久久58| 乱中年女人伦av一区二区| 色综合久久久久综合99| 国产亲近乱来精品视频| 久久国产人妖系列| 制服丝袜亚洲色图| 一区二区三区日韩欧美精品| 国产盗摄一区二区| 日韩精品一区二区三区视频| 亚洲一区二区视频在线| 99国产欧美另类久久久精品| 国产亚洲人成网站| 久久精品国产秦先生| 欧美美女黄视频| 亚洲国产一区二区三区| 91影院在线免费观看| 国产精品美女久久久久久久久 | 久久se精品一区精品二区| 在线亚洲免费视频| 亚洲欧美日韩久久| 99久久精品国产毛片| 中文字幕一区二区三区四区| 成人午夜短视频| 国产日韩欧美a| 国产一区999| 久久久国产午夜精品| 国产99久久久国产精品潘金网站| 亚洲亚洲人成综合网络| 成人国产精品免费网站| 国产欧美日韩一区二区三区在线观看| 久久99久久久久久久久久久| 欧美一区二区三区小说| 蜜桃av一区二区在线观看| 91精品国产综合久久久久久| 视频一区中文字幕| 欧美精品黑人性xxxx| 免费黄网站欧美| 日韩一区二区在线免费观看| 美女爽到高潮91| 精品少妇一区二区三区日产乱码| 精品影视av免费| 精品99一区二区三区| 国产一区二区美女诱惑| 国产日韩欧美亚洲| 国产成人精品免费一区二区| 国产精品欧美久久久久一区二区| 国产91精品精华液一区二区三区| 中文字幕乱码亚洲精品一区| 91网上在线视频| 亚洲国产精品一区二区久久| 欧美久久一区二区| 另类成人小视频在线| 久久亚洲影视婷婷| 成人在线视频一区| 亚洲视频免费观看| 欧美精品在欧美一区二区少妇| 日本欧美肥老太交大片| 久久久久亚洲综合| 一本大道av伊人久久综合| 夜色激情一区二区| 欧美精品久久99| 国产精品一区二区久激情瑜伽| 中文字幕在线观看不卡| 欧美中文字幕一二三区视频| 免费成人在线影院| 国产精品久久久久影院亚瑟 | 成人av电影在线播放| 亚洲女与黑人做爰| 日韩亚洲欧美综合| www.66久久| 日本伊人色综合网| 国产精品久久久久久户外露出| 欧洲日韩一区二区三区| 久久国产婷婷国产香蕉| 亚洲人成伊人成综合网小说| 欧美一区二区三区免费大片| 丁香一区二区三区| 性做久久久久久免费观看| 久久精品亚洲一区二区三区浴池| 91欧美一区二区| 久久精品国产网站| 一区二区在线免费观看| www国产成人| 欧美吻胸吃奶大尺度电影| 国产精品一区专区| 天天操天天色综合| 亚洲视频在线一区二区| 日韩欧美另类在线| 在线一区二区三区四区| 韩国女主播成人在线观看| 亚洲一区二区高清| 中文字幕av在线一区二区三区| 91精品国产色综合久久不卡蜜臀| 成人av动漫网站| 国产精品影视在线观看| 蜜桃视频一区二区三区在线观看| 亚洲精品成人a在线观看| 日本一区二区视频在线| 精品国产网站在线观看|