The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
rtc.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file rtc.h
5
* @brief the CMOS real-time clock: the wall-clock time at boot.
6
*/
7
8
#include "
common/stdint.h
"
9
10
/**
11
* read the date and time from the CMOS clock (taken as UTC).
12
* @param seconds_out receives the seconds since 1970-01-01 00:00 UTC.
13
* @return false if the clock gives no valid date.
14
*/
15
bool
rtc_read_unix_time
(
uint32_t
*seconds_out);
stdint.h
uint32_t
unsigned int uint32_t
Definition
fb.h:17
rtc_read_unix_time
bool rtc_read_unix_time(uint32_t *seconds_out)
read the date and time from the CMOS clock (taken as UTC).
Definition
rtc.c:115
src
drivers
rtc
rtc.h
Generated by
1.18.0