cfg_rtt_default.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Inria
3  * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
28 #ifndef RTT_DEV
29 #define RTT_DEV (1) /* NRF_RTC1 */
30 #endif
31 
32 #define RTT_MAX_VALUE (0x00ffffff) /* 24bit */
33 #define RTT_MAX_FREQUENCY (32768U) /* in Hz */
34 #define RTT_MIN_FREQUENCY (8U) /* in Hz */
35 #define RTT_CLOCK_FREQUENCY (32768U) /* in Hz, LFCLK*/
36 
37 #ifndef RTT_FREQUENCY
38 #define RTT_FREQUENCY (1024U) /* in Hz */
39 #endif
42 #ifdef __cplusplus
43 } /* end extern "C" */
44 #endif
45