1 /*
2  *  Copyright (c) 2016, The OpenThread Authors.
3  *  All rights reserved.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions are met:
7  *  1. Redistributions of source code must retain the above copyright
8  *     notice, this list of conditions and the following disclaimer.
9  *  2. Redistributions in binary form must reproduce the above copyright
10  *     notice, this list of conditions and the following disclaimer in the
11  *     documentation and/or other materials provided with the distribution.
12  *  3. Neither the name of the copyright holder nor the
13  *     names of its contributors may be used to endorse or promote products
14  *     derived from this software without specific prior written permission.
15  *
16  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  *  POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 /**
30  * @file
31  *   This file includes compile-time configuration constants for OpenThread.
32  */
33 
34 #ifndef OPENTHREAD_CORE_CONFIG_H_
35 #define OPENTHREAD_CORE_CONFIG_H_
36 
37 #include <openthread/config.h>
38 
39 #define OT_THREAD_VERSION_INVALID 0
40 
41 #define OT_THREAD_VERSION_1_1 2
42 #define OT_THREAD_VERSION_1_2 3
43 #define OT_THREAD_VERSION_1_3 4
44 #define OT_THREAD_VERSION_1_3_1 5
45 
46 #define OPENTHREAD_CORE_CONFIG_H_IN
47 
48 #ifdef OPENTHREAD_PROJECT_CORE_CONFIG_FILE
49 #include OPENTHREAD_PROJECT_CORE_CONFIG_FILE
50 #elif defined(OPENTHREAD_CONFIG_CORE_USER_CONFIG_HEADER_ENABLE)
51 // This configuration header file should be provided by the user when
52 // OPENTHREAD_CONFIG_CORE_USER_CONFIG_HEADER_ENABLE is defined to 1.
53 #include "openthread-core-user-config.h"
54 #endif
55 
56 #ifndef OPENTHREAD_CONFIG_THREAD_VERSION
57 #define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_3
58 #endif
59 
60 #include "config/announce_sender.h"
61 #include "config/backbone_router.h"
62 #include "config/border_agent.h"
63 #include "config/border_router.h"
64 #include "config/border_routing.h"
65 #include "config/channel_manager.h"
66 #include "config/channel_monitor.h"
67 #include "config/child_supervision.h"
68 #include "config/coap.h"
69 #include "config/commissioner.h"
70 #include "config/crypto.h"
71 #include "config/dataset_updater.h"
72 #include "config/dhcp6_client.h"
73 #include "config/dhcp6_server.h"
74 #include "config/diag.h"
75 #include "config/dns_client.h"
76 #include "config/dns_dso.h"
77 #include "config/dnssd_server.h"
78 #include "config/dtls.h"
79 #include "config/history_tracker.h"
80 #include "config/ip6.h"
81 #include "config/joiner.h"
82 #include "config/link_quality.h"
83 #include "config/link_raw.h"
84 #include "config/logging.h"
85 #include "config/mac.h"
86 #include "config/mesh_diag.h"
87 #include "config/misc.h"
88 #include "config/mle.h"
89 #include "config/nat64.h"
90 #include "config/netdata_publisher.h"
91 #include "config/network_diagnostic.h"
92 #include "config/parent_search.h"
93 #include "config/ping_sender.h"
94 #include "config/platform.h"
95 #include "config/power_calibration.h"
96 #include "config/radio_link.h"
97 #include "config/sntp_client.h"
98 #include "config/srp_client.h"
99 #include "config/srp_server.h"
100 #include "config/time_sync.h"
101 #include "config/tmf.h"
102 
103 #undef OPENTHREAD_CORE_CONFIG_H_IN
104 
105 #include "config/openthread-core-config-check.h"
106 
107 #ifdef OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE
108 #include OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE
109 #endif
110 
111 #endif // OPENTHREAD_CORE_CONFIG_H_
112