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 
9 #pragma once
10 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #ifndef RTT_DEV
31 #define RTT_DEV (1) /* NRF_RTC1 */
32 #endif
33 
34 #define RTT_MAX_VALUE (0x00ffffff) /* 24bit */
35 #define RTT_MAX_FREQUENCY (32768U) /* in Hz */
36 #define RTT_MIN_FREQUENCY (8U) /* in Hz */
37 #define RTT_CLOCK_FREQUENCY (32768U) /* in Hz, LFCLK*/
38 
39 #ifndef RTT_FREQUENCY
40 #define RTT_FREQUENCY (1024U) /* in Hz */
41 #endif
44 #ifdef __cplusplus
45 }
46 #endif
47