cfg_rtt_default.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
27 #ifndef RTT_DEV
28 #define RTT_DEV (1) /* NRF_RTC1 */
29 #endif
30 
31 #define RTT_MAX_VALUE (0x00ffffff) /* 24bit */
32 #define RTT_MAX_FREQUENCY (32768U) /* in Hz */
33 #define RTT_MIN_FREQUENCY (8U) /* in Hz */
34 #define RTT_CLOCK_FREQUENCY (32768U) /* in Hz, LFCLK*/
39 #define RTT_MIN_OFFSET (3U)
40 
41 #ifndef RTT_FREQUENCY
42 #define RTT_FREQUENCY (1024U) /* in Hz */
43 #endif
46 #ifdef __cplusplus
47 }
48 #endif
49