RTEMS 7.0-rc1
Loading...
Searching...
No Matches
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
27extern "C" {
28#endif
29
37int setRealTime(
38 const rtems_time_of_day *tod
39);
40
41/*
42 * Get the time from the RTC.
43 */
44
45void getRealTime(
47);
48
49/*
50 * Read real time from RTC and set it to RTEMS' clock manager
51 */
52
53void setRealTimeToRTEMS(void);
54
55/*
56 * Read time from RTEMS' clock manager and set it to RTC
57 */
58
59void 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
66int checkRealTime(void);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif
This type represents Classic API calendar times.
Definition: types.h:266