1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/ztimer/periph_rtt.h
Kaspar Schleiser 6dd79366bb sys: add ztimer subsystem
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2020-03-04 12:44:02 +01:00

54 lines
1.2 KiB
C

/*
* Copyright (C) 2018 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @defgroup sys_ztimer_periph_rtt ztimer periph/rtt backend
* @ingroup sys_ztimer
* @brief ztimer periph/rtt backend
*
* This ztimer module implements a ztimer virtual clock on top of periph/rtt.
*
* @{
*
* @file
* @brief ztimer periph/rtt backend API
*
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef ZTIMER_PERIPH_RTT_H
#define ZTIMER_PERIPH_RTT_H
#include "ztimer.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief ztimer_periph_rtt structure definition
*
* The periph/rtt backend has no private fields, thus this is just a typedef
* to ztimer_clock_t.
*/
typedef ztimer_clock_t ztimer_periph_rtt_t;
/**
* @brief ztimer periph/rtt backend initialization function
*
* @param[in, out] clock ztimer_periph_rtt object to initialize
*/
void ztimer_periph_rtt_init(ztimer_periph_rtt_t *clock);
#ifdef __cplusplus
}
#endif
#endif /* ZTIMER_PERIPH_RTT_H */
/** @} */