3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2019 Google LLC.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 * Overrides to default OpenThread configuration.
26 #ifndef OPENTHREAD_PLATFORM_CONFIG_H
27 #define OPENTHREAD_PLATFORM_CONFIG_H
29 // Disable the Nordic-supplied OpenThread logging facilities and use
30 // the facilities provided by the CHIP Device Layer
31 #define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP
33 // When operating in a less than ideal RF environment, having a more forgiving configuration
34 // of OpenThread makes thread a great deal more reliable.
35 #define OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY 120 // default is 28800
36 #define OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT 15 // default is 3
37 #define OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_INDIRECT 1 // default is 0
38 #define OPENTHREAD_CONFIG_MAC_MAX_TX_ATTEMPTS_INDIRECT_POLLS 16 // default is 4
40 // Enable periodic parent search to speed up finding a better parent.
41 #define OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 1 // default is 0
42 #define OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD -45 // default is -65
43 #define OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH 1 // default is 0
45 // Use smaller maximum interval to speed up reattaching.
46 #define OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MAXIMUM_INTERVAL (60 * 10 * 1000) // default 1200000 ms
48 #define OPENTHREAD_CONFIG_JOINER_ENABLE 1
49 #define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 0
50 #define UART_AS_SERIAL_TRANSPORT 1
51 #define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 1
53 // Use the TI-supplied default platform configuration for remainder
54 #include "openthread-core-cc13x2_26x2-config.h"
56 #endif // OPENTHREAD_PLATFORM_CONFIG_H