Loading...
Searching...
No Matches
rtt_rtc.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 ML!PA Consulting GmbH
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
21#ifndef RTT_RTC_H
22#define RTT_RTC_H
23
24#include <stdint.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
41void rtt_rtc_settimeofday(uint32_t s, uint32_t us);
42
54void rtt_rtc_gettimeofday(uint32_t *s, uint32_t *us);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* RTT_RTC_H */
void rtt_rtc_gettimeofday(uint32_t *s, uint32_t *us)
Get the current epoch (elapsed seconds since RIOT_EPOCH) with sub-second precision This feature is an...
void rtt_rtc_settimeofday(uint32_t s, uint32_t us)
Set the time as epoch (elapsed seconds since RIOT_EPOCH) with sub-second precision This feature is an...