comparison gsm-fw/bsp/rtc/rtc_api.h @ 160:dbfc9ff4e8d2

gsm-fw: starting to compile RTC code
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 17 Nov 2013 22:52:52 +0000
parents 3c42e6e5fc04
children
comparison
equal deleted inserted replaced
159:3c42e6e5fc04 160:dbfc9ff4e8d2
1 /********************************************************************************/ 1 /******************************************************************************/
2 /* */ 2 /* */
3 /* File Name: rtc_functions.h */ 3 /* File Name: rtc_functions.h */
4 /* */ 4 /* */
5 /* Purpose: This file contains prototypes of RTC's internal functions. */ 5 /* Purpose: This file contains prototypes of RTC's internal functions. */
6 /* */ 6 /* */
7 /* Note: None. */ 7 /* Note: None. */
8 /* */ 8 /* */
9 /* Revision History: */ 9 /* Revision History: */
10 /* 03/20/01 Laurent Sollier Create. */ 10 /* 03/20/01 Laurent Sollier Create. */
11 /* */ 11 /* */
12 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */ 12 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */
13 /* */ 13 /* */
14 /********************************************************************************/ 14 /******************************************************************************/
15 15
16 #ifndef _RTC_FUNCTIONS_H_ 16 #ifndef _RTC_FUNCTIONS_H_
17 #define _RTC_FUNCTIONS_H_ 17 #define _RTC_FUNCTIONS_H_
18 18
19 #include "rvf/rvf_api.h" 19 #include "../../riviera/rvf/rvf_api.h"
20 20
21 21
22 /********************************************************************************/ 22 /******************************************************************************/
23 /* */ 23 /* */
24 /* Generic functions declarations. */ 24 /* Generic functions declarations. */
25 /* */ 25 /* */
26 /********************************************************************************/ 26 /******************************************************************************/
27 27
28 28
29 29
30 /* Structure containing date and time */ 30 /* Structure containing date and time */
31 typedef struct { UINT8 second; /* seconds after the minute - [0,59] */ 31 typedef struct {
32 UINT8 minute; /* minutes after the hour - [0,59] */ 32 UINT8 second; /* seconds after the minute - [0,59] */
33 UINT8 hour; /* hours after the midnight - [0,23] */ 33 UINT8 minute; /* minutes after the hour - [0,59] */
34 UINT8 day; /* day of the month - [1,31] */ 34 UINT8 hour; /* hours after the midnight - [0,23] */
35 UINT8 month; /* months - [01,12] */ 35 UINT8 day; /* day of the month - [1,31] */
36 UINT8 year; /* years - [00,99] */ 36 UINT8 month; /* months - [01,12] */
37 UINT8 wday; /* days in a week - [0,6] */ 37 UINT8 year; /* years - [00,99] */
38 BOOL mode_12_hour; /* TRUE->12 hour mode ; FALSE-> 24 hour mode */ 38 UINT8 wday; /* days in a week - [0,6] */
39 BOOL PM_flag; /* if 12 hour flag = TRUE 39 BOOL mode_12_hour; /* TRUE->12 hour mode ; FALSE-> 24 hour mode */
40 TRUE->PM ; FALSE->AM */ 40 BOOL PM_flag; /* if 12 hour flag = TRUE: TRUE->PM ; FALSE->AM */
41 } T_RTC_DATE_TIME; 41 } T_RTC_DATE_TIME;
42 42
43 43
44 /******************************************************************************* 44 /*******************************************************************************
45 * 45 *
46 * RTC_RtcReset 46 * RTC_RtcReset