Loading...
Searching...
No Matches
rtt_rtc.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
37void rtt_rtc_settimeofday(uint32_t s, uint32_t us);
38
50void rtt_rtc_gettimeofday(uint32_t *s, uint32_t *us);
51
52#ifdef __cplusplus
53}
54#endif
55
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...