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
9#pragma once
10
20
21#include "periph_cpu.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
33#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
34
35#define RTT_MAX_VALUE (0x0000ffff) /* 16-bit timer */
36#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* 32768Hz at @32768Hz */
37#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 128) /* 256Hz at @32768Hz */
38
39#ifndef RTT_FREQUENCY
40#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
41#endif
43
44#ifdef __cplusplus
45}
46#endif
47