git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refactor: one more step towards arch-agnostic design
[lunaix-os.git]
/
lunaix-os
/
hal
/
rtc
/
hwrtc.c
1
#include <hal/hwrtc.h>
2
3
const struct hwrtc* current_rtc;
4
5
void
6
hwrtc_init()
7
{
8
current_rtc = hwrtc_choose();
9
10
current_rtc->init(current_rtc);
11
}
12
13
void
14
hwrtc_walltime(datetime_t* dt)
15
{
16
current_rtc->get_walltime(current_rtc, dt);
17
}