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*/
35 
36 #ifndef RTT_FREQUENCY
37 #define RTT_FREQUENCY (1024U) /* in Hz */
38 #endif
41 #ifdef __cplusplus
42 }
43 #endif
44