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
9#pragma once
10
22
23#include <stdint.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
40void rtt_rtc_settimeofday(uint32_t s, uint32_t us);
41
53void rtt_rtc_gettimeofday(uint32_t *s, uint32_t *us);
54
55#ifdef __cplusplus
56}
57#endif
58
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...