Loading...
Searching...
No Matches
cfg_rtt_default.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef CFG_RTT_DEFAULT_H
20#define CFG_RTT_DEFAULT_H
21
22#include "periph_cpu.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
35
36#define RTT_MAX_VALUE (0x0000ffff) /* 16-bit timer */
37#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* 32768Hz at @32768Hz */
38#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 128) /* 256Hz at @32768Hz */
39
40#ifndef RTT_FREQUENCY
41#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
42#endif
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* CFG_RTT_DEFAULT_H */