1 /*
2  *  Copyright (c) 2017, 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 simulation compile-time configuration constants
32  *   for OpenThread.
33  */
34 
35 #ifndef OPENTHREAD_CORE_SIMULATION_CONFIG_H_
36 #define OPENTHREAD_CORE_SIMULATION_CONFIG_H_
37 
38 #ifndef OPENTHREAD_RADIO
39 #define OPENTHREAD_RADIO 0
40 #endif
41 
42 #ifndef OPENTHREAD_CONFIG_PLATFORM_INFO
43 #define OPENTHREAD_CONFIG_PLATFORM_INFO "SIMULATION"
44 #endif
45 
46 #ifndef OPENTHREAD_CONFIG_LOG_OUTPUT
47 #define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
48 #endif
49 
50 #ifndef OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE
51 #define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1
52 #endif
53 
54 #if OPENTHREAD_RADIO
55 
56 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
57 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE 1
58 #endif
59 
60 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE
61 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE 1
62 #endif
63 
64 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE
65 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE 1
66 #endif
67 
68 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE
69 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE 1
70 #endif
71 
72 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE
73 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE 1
74 #endif
75 
76 #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE
77 #define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE 1
78 #endif
79 
80 #endif // OPENTHREAD_RADIO
81 
82 #ifndef OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
83 #define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 1
84 #endif
85 
86 #ifndef OPENTHREAD_CONFIG_PLATFORM_FLASH_API_ENABLE
87 #define OPENTHREAD_CONFIG_PLATFORM_FLASH_API_ENABLE 1
88 #endif
89 
90 #ifndef CLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER
91 #define CLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER 1
92 #endif
93 
94 #ifndef OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE
95 #define OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE 1
96 #endif
97 
98 #ifndef OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE
99 #define OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 1
100 #endif
101 
102 #ifndef OPENTHREAD_CONFIG_LOG_PLATFORM
103 #define OPENTHREAD_CONFIG_LOG_PLATFORM 1
104 #endif
105 
106 #ifndef OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH
107 #define OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH 640
108 #endif
109 
110 #ifndef OPENTHREAD_CONFIG_CLI_UART_RX_BUFFER_SIZE
111 #define OPENTHREAD_CONFIG_CLI_UART_RX_BUFFER_SIZE 640
112 #endif
113 
114 #ifndef OPENTHREAD_CONFIG_MLE_MAX_CHILDREN
115 #define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN 128
116 #endif
117 
118 #ifndef OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
119 #define OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH 1
120 #endif
121 
122 #ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE
123 #define OPENTHREAD_CONFIG_UPTIME_ENABLE 1
124 #endif
125 
126 #ifndef OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME
127 #define OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME 1
128 #endif
129 
130 #ifndef OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES
131 #define OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES 20
132 #endif
133 
134 #ifndef OPENTHREAD_CONFIG_DETERMINISTIC_ECDSA_ENABLE
135 #define OPENTHREAD_CONFIG_DETERMINISTIC_ECDSA_ENABLE 1
136 #endif
137 
138 #ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
139 #define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 1
140 #endif
141 
142 #ifndef OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
143 #define OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE 1
144 #endif
145 
146 #ifndef OPENTHREAD_CONFIG_RADIO_STATS_ENABLE
147 #define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1
148 #endif
149 
150 #endif // OPENTHREAD_CORE_SIMULATION_CONFIG_H_
151