|
| 1 | +# Copyright (c) 2021 Nordic Semiconductor |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 4 | +# |
| 5 | + |
| 6 | +# The purpose of this file is to define configuration options specific to the |
| 7 | +# Nordic Semiconductor radio driver. |
| 8 | + |
| 9 | +if OPENTHREAD_NETWORKING_BACKEND_NRF5 |
| 10 | + |
| 11 | +choice OPENTHREAD_IMPLEMENTATION |
| 12 | + prompt "OpenThread origin selection" |
| 13 | + default OPENTHREAD_LIBRARY if OPENTHREAD_LIBRARY_AVAILABLE |
| 14 | + help |
| 15 | + Select OpenThread to use for build. Custom OpenThread implementations |
| 16 | + can be added to the application Kconfig. |
| 17 | + |
| 18 | +config OPENTHREAD_SOURCES |
| 19 | + bool "OpenThread from sources" |
| 20 | + help |
| 21 | + Build Zephyr's OpenThread port from sources. |
| 22 | + |
| 23 | +endchoice |
| 24 | + |
| 25 | +config OPENTHREAD_MANUAL_START |
| 26 | + bool "Start OpenThread stack manually" |
| 27 | + help |
| 28 | + If enabled, OpenThread stack will have to be configured and |
| 29 | + started manually, with respective API calls or CLI/NCP commands. |
| 30 | + Otherwise, OpenThread will configure the network parameters and try to |
| 31 | + join the Thread network automatically during initialization (using |
| 32 | + credentials stored in persistent storage, obtained during |
| 33 | + commissioning or pre-commissioned with other Kconfig options, |
| 34 | + depending on configuration used). |
| 35 | + |
| 36 | +config OPENTHREAD_SHELL |
| 37 | + bool "OpenThread shell" |
| 38 | + depends on SHELL |
| 39 | + |
| 40 | +config OPENTHREAD_CRYPTO_PSA |
| 41 | + bool "ARM PSA crypto API" |
| 42 | + depends on MBEDTLS_PSA_CRYPTO_CLIENT |
| 43 | + select OPENTHREAD_PLATFORM_KEY_REF if !OPENTHREAD_COPROCESSOR_RCP |
| 44 | + imply OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE |
| 45 | + help |
| 46 | + Enable crypto backend library implementation based on ARM PSA crypto |
| 47 | + API instead of the default, using mbedTLS. |
| 48 | + |
| 49 | +menuconfig OPENTHREAD_DEBUG |
| 50 | + bool "OpenThread stack logging support" |
| 51 | + help |
| 52 | + This option enables logging support for OpenThread. |
| 53 | + |
| 54 | +config OPENTHREAD_PLATFORM_INFO |
| 55 | + string "Platform information for OpenThread" |
| 56 | + default "NRF" |
| 57 | + help |
| 58 | + Platform information for OpenThread |
| 59 | + |
| 60 | +config OPENTHREAD_CUSTOM_PARAMETERS |
| 61 | + string "Custom Parameters to pass to OpenThread build system" |
| 62 | + default "" |
| 63 | + help |
| 64 | + This option is intended for advanced users only. |
| 65 | + Pass additional parameters that do not have corresponding Kconfig |
| 66 | + options to the OpenThread build system. Separate multiple values with |
| 67 | + space " ", for example: |
| 68 | + "OPENTHREAD_CONFIG_JOINER_ENABLE=1 OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES=3" |
| 69 | + |
| 70 | +config OPENTHREAD_NUM_MESSAGE_BUFFERS |
| 71 | + int "The number of message buffers in the buffer pool" |
| 72 | + default 128 |
| 73 | + help |
| 74 | + "The number of message buffers in the buffer pool." |
| 75 | + |
| 76 | +config OPENTHREAD_MESSAGE_BUFFER_SIZE |
| 77 | + int "The size of a message buffer in bytes" |
| 78 | + default 128 |
| 79 | + help |
| 80 | + "The size of a message buffer in bytes" |
| 81 | + |
| 82 | +config OPENTHREAD_PLATFORM_MESSAGE_MANAGEMENT |
| 83 | + bool "Use platform message management" |
| 84 | + help |
| 85 | + The message pool is managed by platform defined logic. |
| 86 | + |
| 87 | +config OPENTHREAD_MAX_STATECHANGE_HANDLERS |
| 88 | + int "The maximum number of state-changed callback handlers" |
| 89 | + default 2 |
| 90 | + help |
| 91 | + The maximum number of state-changed callback handlers |
| 92 | + set using otSetStateChangedCallback. |
| 93 | + |
| 94 | +config OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES |
| 95 | + int "The number of EID-to-RLOC cache entries" |
| 96 | + default 20 |
| 97 | + help |
| 98 | + The number of EID-to-RLOC cache entries. |
| 99 | + |
| 100 | +config OPENTHREAD_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES |
| 101 | + int "The maximum number of EID-to-RLOC cache entries" |
| 102 | + default 2 |
| 103 | + help |
| 104 | + The maximum number of EID-to-RLOC cache entries that can be used for |
| 105 | + "snoop optimization" where an entry is created by inspecting a received |
| 106 | + message. |
| 107 | + |
| 108 | +config OPENTHREAD_LOG_PREPEND_LEVEL_ENABLE |
| 109 | + bool "Prepending the log level to all OpenThread log messages" |
| 110 | + help |
| 111 | + When enabled the OpenThread logs will be prepended with the appropriate |
| 112 | + log level prefix i.e. [CRIT], [WARN], [NOTE], [INFO], [DEBG]. |
| 113 | + |
| 114 | +config OPENTHREAD_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE |
| 115 | + bool "Software ACK timeout logic" |
| 116 | + default y |
| 117 | + help |
| 118 | + Set y if the radio supports AckTime event |
| 119 | + |
| 120 | +config OPENTHREAD_MAC_SOFTWARE_RETRANSMIT_ENABLE |
| 121 | + bool "Software retransmission logic" |
| 122 | + default y |
| 123 | + help |
| 124 | + Set y if the radio supports tx retry logic with collision avoidance (CSMA) |
| 125 | + |
| 126 | +config OPENTHREAD_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE |
| 127 | + bool "Software CSMA backoff logic" |
| 128 | + default y |
| 129 | + help |
| 130 | + Set y to enable software CSMA backoff. The option can be disabled if |
| 131 | + the radio has hardware support for this feature (IEEE802154_HW_CSMA). |
| 132 | + |
| 133 | +config OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE |
| 134 | + bool "Make MAC keys exportable" |
| 135 | + depends on OPENTHREAD_PLATFORM_KEY_REF |
| 136 | + help |
| 137 | + Enable the creation of exportable MAC keys in the OpenThread Key Manager. |
| 138 | + |
| 139 | +endif # OPENTHREAD_USE_NRF5_RADIO |
0 commit comments