Nut/OS  5.0.5
API Reference
stm32f10x_rtc.h File Reference

This file contains all the functions prototypes for the RTC firmware library. More...

#include "stm32f10x.h"
#include <dev/rtc.h>
Include dependency graph for stm32f10x_rtc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RTC_IT_OW   ((uint16_t)0x0004)
#define RTC_IT_ALR   ((uint16_t)0x0002)
#define RTC_IT_SEC   ((uint16_t)0x0001)
#define IS_RTC_IT(IT)   ((((IT) & (uint16_t)0xFFF8) == 0x00) && ((IT) != 0x00))
#define IS_RTC_GET_IT(IT)
#define RTC_FLAG_RTOFF   ((uint16_t)0x0020)
#define RTC_FLAG_RSF   ((uint16_t)0x0008)
#define RTC_FLAG_OW   ((uint16_t)0x0004)
#define RTC_FLAG_ALR   ((uint16_t)0x0002)
#define RTC_FLAG_SEC   ((uint16_t)0x0001)
#define RTC_FLAG_CNF   ((uint16_t)0x0010)
#define IS_RTC_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xFFF0) == 0x00) && ((FLAG) != 0x00))
#define IS_RTC_GET_FLAG(FLAG)
#define IS_RTC_PRESCALER(PRESCALER)   ((PRESCALER) <= 0xFFFFF)

Variables

NUTRTC rtcStm32

Detailed Description

This file contains all the functions prototypes for the RTC firmware library.

Author:
MCD Application Team
Version:
V3.1.2
Date:
09/28/2009

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 2009 STMicroelectronics


Define Documentation

#define RTC_IT_OW   ((uint16_t)0x0004)

Overflow interrupt

#define RTC_IT_ALR   ((uint16_t)0x0002)

Alarm interrupt

#define RTC_IT_SEC   ((uint16_t)0x0001)

Second interrupt

#define IS_RTC_IT (   IT)    ((((IT) & (uint16_t)0xFFF8) == 0x00) && ((IT) != 0x00))
#define IS_RTC_GET_IT (   IT)
Value:
(((IT) == RTC_IT_OW) || ((IT) == RTC_IT_ALR) || \
                           ((IT) == RTC_IT_SEC))
#define RTC_FLAG_RTOFF   ((uint16_t)0x0020)

RTC Operation OFF flag

#define RTC_FLAG_RSF   ((uint16_t)0x0008)

Registers Synchronized flag

Referenced by Stm32RtcGetClock(), and Stm32RtcInit().

#define RTC_FLAG_OW   ((uint16_t)0x0004)

Overflow flag

#define RTC_FLAG_ALR   ((uint16_t)0x0002)

Alarm flag

#define RTC_FLAG_SEC   ((uint16_t)0x0001)

Second flag

#define RTC_FLAG_CNF   ((uint16_t)0x0010)

Configuration mode flag

Referenced by Stm32RtcInit(), and Stm32RtcSetClock().

#define IS_RTC_CLEAR_FLAG (   FLAG)    ((((FLAG) & (uint16_t)0xFFF0) == 0x00) && ((FLAG) != 0x00))
#define IS_RTC_GET_FLAG (   FLAG)
Value:
(((FLAG) == RTC_FLAG_RTOFF) || ((FLAG) == RTC_FLAG_RSF) || \
                               ((FLAG) == RTC_FLAG_OW) || ((FLAG) == RTC_FLAG_ALR) || \
                               ((FLAG) == RTC_FLAG_SEC))
#define IS_RTC_PRESCALER (   PRESCALER)    ((PRESCALER) <= 0xFFFFF)

Variable Documentation