cfg_rtt_default.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 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 
20 #ifndef CFG_RTT_DEFAULT_H
21 #define CFG_RTT_DEFAULT_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #ifndef RTT_DEV
32 #define RTT_DEV (1) /* NRF_RTC1 */
33 #endif
34 
35 #define RTT_MAX_VALUE (0x00ffffff) /* 24bit */
36 #define RTT_MAX_FREQUENCY (32768U) /* in Hz */
37 #define RTT_MIN_FREQUENCY (8U) /* in Hz */
38 #define RTT_CLOCK_FREQUENCY (32768U) /* in Hz, LFCLK*/
39 
40 #ifndef RTT_FREQUENCY
41 #define RTT_FREQUENCY (1024U) /* in Hz */
42 #endif
43 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* CFG_RTT_DEFAULT_H */