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

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

?? vb6+

?? stm32+TFT+VB上位機
??
字號:
/**
  ******************************************************************************
  * @file    stm32f10x_rtc.c
  * @author  MCD Application Team
  * @version V3.4.0
  * @date    10/15/2010
  * @brief   This file provides all the RTC firmware functions.
  ******************************************************************************
  * @copy
  *
  * 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 "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抯 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 coressponding RTC flag */
  RTC->CRL &= (uint16_t)~RTC_FLAG;
}

/**
  * @brief  Checks whether the specified RTC interrupt has occured 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抯 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 coressponding RTC pending bit */
  RTC->CRL &= (uint16_t)~RTC_IT;
}

/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
3d成人动漫网站| 色婷婷久久99综合精品jk白丝| 欧美日韩国产免费一区二区 | 亚洲激情中文1区| av电影在线观看完整版一区二区| 亚洲天天做日日做天天谢日日欢 | 欧美午夜精品理论片a级按摩| 亚洲午夜久久久久中文字幕久| 在线观看一区二区视频| 日韩精品五月天| 日韩久久久精品| 国产精品一二三四区| 国产精品久久久久久久蜜臀| 色一情一伦一子一伦一区| 亚洲国产精品久久艾草纯爱| 91精品国产色综合久久不卡电影 | 成人综合婷婷国产精品久久 | 国产成人午夜视频| 成人免费小视频| 欧美性三三影院| 九九久久精品视频| 成人欧美一区二区三区白人| 欧美精品色综合| 国产精品综合二区| 一个色在线综合| 日韩三级高清在线| 99久久精品费精品国产一区二区| 亚洲成人av电影在线| 国产视频不卡一区| 欧美日韩在线一区二区| 国产精品1024| 亚洲chinese男男1069| 久久久久久黄色| 欧美二区在线观看| 成人伦理片在线| 男人的j进女人的j一区| 成人欧美一区二区三区白人 | 成人免费av在线| 日韩av成人高清| 国产精品成人在线观看| 日韩午夜在线观看视频| 色偷偷成人一区二区三区91| 激情综合色综合久久| 五月激情综合色| 亚洲色图欧洲色图| 国产亚洲一本大道中文在线| 7777精品伊人久久久大香线蕉完整版| 国产激情视频一区二区三区欧美| 亚洲不卡一区二区三区| 亚洲色图.com| 日本一区二区三区在线不卡 | 国产美女精品人人做人人爽| 亚洲大片免费看| 欧美激情一区二区三区全黄| 91精品国产91久久综合桃花| 91国产精品成人| 国产99精品在线观看| 久久99国产精品久久| 亚洲一区二区成人在线观看| 中文字幕电影一区| 久久婷婷国产综合国色天香| 欧美一区午夜视频在线观看| 日本高清视频一区二区| www.亚洲色图.com| 成人一区在线观看| 国内精品在线播放| 另类的小说在线视频另类成人小视频在线 | 国产成人免费在线观看| 蜜臀精品一区二区三区在线观看| 亚洲va在线va天堂| 亚洲午夜av在线| 一区二区三区中文字幕| 亚洲天堂网中文字| 亚洲人成7777| 亚洲欧洲中文日韩久久av乱码| 国产精品久久久久9999吃药| 中文字幕 久热精品 视频在线| 国产亚洲成aⅴ人片在线观看| 国产日韩成人精品| 国产精品国产三级国产普通话99| 国产精品久久久久久久久免费桃花| 欧美韩国日本综合| 欧美国产视频在线| 国产欧美1区2区3区| 国产精品日韩精品欧美在线| 中文字幕第一页久久| 亚洲情趣在线观看| 亚洲成av人影院在线观看网| 首页国产欧美久久| 日韩电影在线一区二区| 精品一二三四区| 国产精品99久久久久久久女警| 国产精品亚洲视频| 成人高清在线视频| 色综合久久中文字幕综合网| 在线免费观看视频一区| 在线电影欧美成精品| 日韩欧美成人一区二区| 久久久久久夜精品精品免费| 国产精品久久久久aaaa樱花| 亚洲在线成人精品| 免费成人在线播放| 国产精品亚洲午夜一区二区三区 | 精品国产乱码久久久久久久| 中文字幕欧美日韩一区| 亚洲精品国产a久久久久久 | 日本福利一区二区| 欧美肥妇free| 国产欧美精品一区二区三区四区 | 日韩电影免费在线看| 久久97超碰色| 色综合一区二区| 日韩欧美中文一区| 中文字幕亚洲欧美在线不卡| 午夜激情久久久| 国产精品亚洲视频| 欧美亚一区二区| 欧美精品一区二区三区四区 | 久久九九99视频| 亚洲乱码中文字幕| 老司机一区二区| 91在线视频免费91| 欧美v国产在线一区二区三区| 国产精品久久久久久久久搜平片| 香蕉加勒比综合久久| 懂色av一区二区夜夜嗨| 欧美三级三级三级| 欧美极品aⅴ影院| 天堂一区二区在线| 成人av网站免费观看| 日韩欧美一级二级三级久久久| 中文字幕在线观看不卡| 男人的j进女人的j一区| 91成人免费网站| 欧美激情综合五月色丁香小说| 日韩av中文在线观看| 色综合久久精品| 国产精品日日摸夜夜摸av| 老司机精品视频在线| 色狠狠一区二区三区香蕉| 久久精品一区二区三区不卡牛牛 | 久久精品国产在热久久| 成人福利视频网站| 日韩视频一区二区在线观看| 亚洲激情第一区| 成年人国产精品| 久久久久国产成人精品亚洲午夜 | 亚洲一区二区综合| 成人高清视频在线| 国产亚洲精久久久久久| 激情六月婷婷久久| 337p亚洲精品色噜噜噜| 亚洲成人av福利| 欧美影院一区二区| 亚洲猫色日本管| av在线不卡网| 国产精品美女www爽爽爽| 国产一区二区三区在线观看精品 | 亚洲欧洲精品一区二区精品久久久 | 懂色av中文字幕一区二区三区| 精品黑人一区二区三区久久 | 欧美日韩一级片网站| 综合自拍亚洲综合图不卡区| 国产精品中文欧美| 久久久久久久久久久久电影 | 91老师片黄在线观看| 1000精品久久久久久久久| 成人动漫一区二区三区| 国产精品色婷婷| 91在线视频免费观看| 亚洲欧美日韩中文播放 | 国产精品456露脸| 久久久.com| 成人av在线网站| 亚洲色图制服丝袜| 在线亚洲高清视频| 天堂午夜影视日韩欧美一区二区| 欧美精品18+| 卡一卡二国产精品| 久久麻豆一区二区| 国产不卡视频一区二区三区| 欧美激情在线一区二区三区| 成人高清av在线| 一片黄亚洲嫩模| 91.com在线观看| 国产一区二区免费在线| 国产日韩欧美高清| 91蜜桃免费观看视频| 亚洲国产视频a| 欧美成人女星排行榜| 国产精品白丝av| 亚洲欧美在线aaa| 欧美老年两性高潮| 国内精品不卡在线| 亚洲欧美色一区| 欧美一级一区二区| 粉嫩aⅴ一区二区三区四区五区| 亚洲人成在线观看一区二区| 精品视频免费在线| 国产高清久久久|