Loading...
Searching...
No Matches
cfg_rtt_default.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "periph_cpu.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
31
32#define RTT_MAX_VALUE (0x0000ffff) /* 16-bit timer */
33#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* 32768Hz at @32768Hz */
34#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 128) /* 256Hz at @32768Hz */
35
36#ifndef RTT_FREQUENCY
37#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
38#endif
40
41#ifdef __cplusplus
42}
43#endif
44