RTEMS
7.0-rc1
Loading...
Searching...
No Matches
cpukit
include
rtems
tod.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-with-RTEMS-exception */
2
11
/*
12
*
13
* Based on MVME162 TOD by:
14
* COPYRIGHT (C) 1997
15
* by Katsutoshi Shibuya - BU Denken Co.,Ltd. - Sapporo - JAPAN
16
* ALL RIGHTS RESERVED
17
*
18
* The license and distribution terms for this file may be
19
* found in the file LICENSE in this distribution or at
20
* http://www.rtems.org/license/LICENSE.
21
*/
22
23
#ifndef TOD_H
24
#define TOD_H
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
37
int
setRealTime(
38
const
rtems_time_of_day
*tod
39
);
40
41
/*
42
* Get the time from the RTC.
43
*/
44
45
void
getRealTime(
46
rtems_time_of_day
*tod
47
);
48
49
/*
50
* Read real time from RTC and set it to RTEMS' clock manager
51
*/
52
53
void
setRealTimeToRTEMS(
void
);
54
55
/*
56
* Read time from RTEMS' clock manager and set it to RTC
57
*/
58
59
void
setRealTimeFromRTEMS(
void
);
60
61
/*
62
* Return the difference between RTC and RTEMS' clock manager time in minutes.
63
* If the difference is greater than 1 day, this returns 9999.
64
*/
65
66
int
checkRealTime(
void
);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
rtems_time_of_day
This type represents Classic API calendar times.
Definition:
types.h:266
Generated by
1.9.6