STM32F1 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F1 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Groups
stm32f10x_rtc.c File Reference

This file provides all the RTC firmware functions. More...

#include "stm32f10x_rtc.h"

Macros

#define CRL_CNF_Set   ((uint16_t)0x0010)
 
#define CRL_CNF_Reset   ((uint16_t)0xFFEF)
 
#define RTC_LSB_Mask   ((uint32_t)0x0000FFFF)
 
#define PRLH_MSB_Mask   ((uint32_t)0x000F0000)
 

Functions

void RTC_ITConfig (uint16_t RTC_IT, FunctionalState NewState)
 Enables or disables the specified RTC interrupts. More...
 
void RTC_EnterConfigMode (void)
 Enters the RTC configuration mode. More...
 
void RTC_ExitConfigMode (void)
 Exits from the RTC configuration mode. More...
 
uint32_t RTC_GetCounter (void)
 Gets the RTC counter value. More...
 
void RTC_SetCounter (uint32_t CounterValue)
 Sets the RTC counter value. More...
 
void RTC_SetPrescaler (uint32_t PrescalerValue)
 Sets the RTC prescaler value. More...
 
void RTC_SetAlarm (uint32_t AlarmValue)
 Sets the RTC alarm value. More...
 
uint32_t RTC_GetDivider (void)
 Gets the RTC divider value. More...
 
void RTC_WaitForLastTask (void)
 Waits until last write operation on RTC registers has finished. More...
 
void RTC_WaitForSynchro (void)
 Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL) are synchronized with RTC APB clock. More...
 
FlagStatus RTC_GetFlagStatus (uint16_t RTC_FLAG)
 Checks whether the specified RTC flag is set or not. More...
 
void RTC_ClearFlag (uint16_t RTC_FLAG)
 Clears the RTC’s pending flags. More...
 
ITStatus RTC_GetITStatus (uint16_t RTC_IT)
 Checks whether the specified RTC interrupt has occured or not. More...
 
void RTC_ClearITPendingBit (uint16_t RTC_IT)
 Clears the RTC’s interrupt pending bits. More...
 

Detailed Description

This file provides all the RTC firmware functions.

Author
MCD Application Team
Version
V3.3.0
Date
04/16/2010

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.

© COPYRIGHT 2010 STMicroelectronics