MentOS  0.8.0
The Mentoring Operating System
rtc.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include "time.h"
15 
18 extern void gettime(tm_t *time);
19 
22 int rtc_initialize(void);
23 
26 int rtc_finalize(void);
27 
int rtc_initialize(void)
Initializes the Real Time Clock (RTC).
Definition: rtc.c:140
int rtc_finalize(void)
De-initializes the Real Time Clock (RTC).
Definition: rtc.c:163
void gettime(tm_t *time)
Copies the global time inside the provided variable.
Definition: rtc.c:134
Used to get information about the current time.
Definition: time.h:25
Time-related functions.
time_t time(time_t *t)
Returns the current time.