2021-09-23 05:23:38 -04:00
|
|
|
/*
|
2024-01-04 03:16:50 -05:00
|
|
|
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
2021-09-23 05:23:38 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
|
|
|
|
*
|
|
|
|
* The platform-specific string to insert into the OpenThread version string.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_IDF_TARGET
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
|
|
|
|
*
|
|
|
|
* The assert is managed by platform defined logic when this flag is set.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT 1
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_FLASH_API_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable otPlatFlash* APIs to support non-volatile storage.
|
|
|
|
*
|
|
|
|
* When defined to 1, the platform MUST implement the otPlatFlash* APIs instead of the otPlatSettings* APIs.
|
|
|
|
*
|
|
|
|
*/
|
2023-05-17 08:35:17 -04:00
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_FLASH_API_ENABLE 0
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_LOG_OUTPUT
|
|
|
|
*
|
|
|
|
* The ESP-IDF platform provides an otPlatLog() function.
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
|
|
|
|
|
|
|
|
/**
|
2022-09-27 02:30:46 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
2022-09-27 02:30:46 -04:00
|
|
|
* Configuration option to enable dynamic log level control.
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
*/
|
2022-09-27 02:30:46 -04:00
|
|
|
#define OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC
|
2021-09-23 05:23:38 -04:00
|
|
|
|
|
|
|
/**
|
2022-09-27 02:30:46 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_LOG_LEVEL
|
2021-09-23 05:23:38 -04:00
|
|
|
*
|
2022-09-27 02:30:46 -04:00
|
|
|
* The log level (used at compile time). If `OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE` is set, this defines the most
|
|
|
|
* verbose log level possible. See `OPENTHREAD_CONFIG_LOG_LEVEL_INIT` to set the initial log level.
|
2021-09-23 05:23:38 -04:00
|
|
|
*
|
|
|
|
*/
|
2022-09-27 02:30:46 -04:00
|
|
|
#if OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG
|
|
|
|
#else
|
|
|
|
#define OPENTHREAD_CONFIG_LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL
|
|
|
|
#endif
|
2021-04-02 02:49:49 -04:00
|
|
|
|
2021-06-07 04:13:58 -04:00
|
|
|
#define OPENTHREAD_CONFIG_LOG_CLI 1
|
|
|
|
#define OPENTHREAD_CONFIG_LOG_PKT_DUMP 1
|
|
|
|
#define OPENTHREAD_CONFIG_LOG_PLATFORM 1
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS
|
|
|
|
*
|
|
|
|
* The number of message buffers in buffer pool
|
|
|
|
*/
|
2021-07-30 03:55:37 -04:00
|
|
|
#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_COAP_API_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable the CoAP API.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_COAP_API_ENABLE 1
|
|
|
|
|
|
|
|
/**
|
2021-06-28 07:20:51 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
2021-06-28 07:20:51 -04:00
|
|
|
* Define to 1 to enable platform NETIF support.
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
*/
|
2021-06-28 07:20:51 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE 1
|
2021-04-02 02:49:49 -04:00
|
|
|
#endif
|
|
|
|
|
2021-06-17 03:44:19 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
|
|
|
|
*
|
|
|
|
* Enable the external heap.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-09-10 02:15:52 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TCP_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 0 to disable TCP
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_TCP_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_TCP_ENABLE 0
|
|
|
|
#endif
|
|
|
|
|
2021-06-28 07:20:51 -04:00
|
|
|
#if CONFIG_OPENTHREAD_BORDER_ROUTER
|
|
|
|
|
2021-06-07 04:13:58 -04:00
|
|
|
/**
|
2021-06-28 07:20:51 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
2021-06-28 07:20:51 -04:00
|
|
|
* Define to 1 to enable Border Agent support.
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
|
|
|
*/
|
2021-06-28 07:20:51 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 1
|
2021-06-07 04:13:58 -04:00
|
|
|
#endif
|
|
|
|
|
2023-07-18 07:23:30 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable Border Agent ID support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-06-07 04:13:58 -04:00
|
|
|
/**
|
2021-06-28 07:20:51 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
2021-06-28 07:20:51 -04:00
|
|
|
* Define to 1 to enable Border Router support.
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
|
|
|
*/
|
2021-06-28 07:20:51 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE 1
|
2021-06-07 04:13:58 -04:00
|
|
|
#endif
|
|
|
|
|
2021-06-17 03:44:19 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable Border Routing support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-06-07 04:13:58 -04:00
|
|
|
/**
|
2021-06-28 07:20:51 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
2021-06-28 07:20:51 -04:00
|
|
|
* Define to 1 to enable platform UDP support.
|
2021-06-07 04:13:58 -04:00
|
|
|
*
|
|
|
|
*/
|
2021-06-28 07:20:51 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 1
|
2021-06-07 04:13:58 -04:00
|
|
|
#endif
|
|
|
|
|
2022-05-30 03:53:11 -04:00
|
|
|
/**
|
2022-09-27 02:30:46 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE
|
2022-05-30 03:53:11 -04:00
|
|
|
*
|
|
|
|
* Define to 1 to enable Border Routing NAT64 support.
|
|
|
|
*
|
|
|
|
*/
|
2022-09-27 02:30:46 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE 1
|
2022-05-30 03:53:11 -04:00
|
|
|
#endif
|
|
|
|
|
2021-06-17 03:44:19 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_ECDSA_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable ECDSA support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_SRP_SERVER_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable SRP Server support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_SRP_SERVER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_SRP_SERVER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-09-01 08:34:12 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable DNS-SD Server support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-09-07 05:37:47 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE
|
|
|
|
*
|
|
|
|
* Set to 1 to enable support for Thread Radio Encapsulation Link (TREL).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE
|
2022-03-03 02:09:52 -05:00
|
|
|
#define OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE 0
|
2021-09-07 05:37:47 -04:00
|
|
|
#endif
|
|
|
|
|
2022-01-04 06:14:12 -05:00
|
|
|
/**
|
2022-04-25 09:45:19 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
2022-01-04 06:14:12 -05:00
|
|
|
*
|
|
|
|
* Define to 1 to enable Backbone Router support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2023-03-01 02:10:21 -05:00
|
|
|
#endif // CONFIG_OPENTHREAD_BORDER_ROUTER
|
|
|
|
|
|
|
|
#if !CONFIG_OPENTHREAD_RADIO_NATIVE
|
2022-03-02 05:04:38 -05:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT
|
|
|
|
*
|
|
|
|
* Defines the max count of RCP failures allowed to be recovered.
|
|
|
|
* 0 means to disable RCP failure recovering.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT
|
2022-11-16 03:59:57 -05:00
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT 3
|
2022-03-02 05:04:38 -05:00
|
|
|
#endif
|
|
|
|
|
2021-04-02 02:49:49 -04:00
|
|
|
/**
|
2023-03-01 02:10:21 -05:00
|
|
|
* @def OPENTHREAD_POSIX_CONFIG_RCP_TIME_SYNC_INTERVAL
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
2023-03-01 02:10:21 -05:00
|
|
|
* This setting configures the interval (in units of microseconds) for host-rcp
|
|
|
|
* time sync. The host will recalculate the time offset between host and RCP
|
|
|
|
* every interval.
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
*/
|
2023-03-01 02:10:21 -05:00
|
|
|
#ifndef OPENTHREAD_POSIX_CONFIG_RCP_TIME_SYNC_INTERVAL
|
|
|
|
#define OPENTHREAD_POSIX_CONFIG_RCP_TIME_SYNC_INTERVAL (60 * 1000 * 1000)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
2023-03-01 02:10:21 -05:00
|
|
|
* @def OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
2023-03-01 02:10:21 -05:00
|
|
|
* Define to 1 to enable Thread Test Harness reference device support.
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
*/
|
2023-03-01 02:10:21 -05:00
|
|
|
#define OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE 1
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable DHCPv6 Client support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE
|
2022-04-25 09:45:19 -04:00
|
|
|
#define OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE 1
|
2021-04-02 02:49:49 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable DHCPv6 Server support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE
|
2022-04-25 09:45:19 -04:00
|
|
|
#define OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE 1
|
2021-04-02 02:49:49 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_NCP_SPI_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable NCP SPI support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_NCP_SPI_ENABLE 0
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER
|
|
|
|
*
|
|
|
|
* Define to 1 to enable NCP Spinel Encrypter.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER 0
|
|
|
|
|
|
|
|
/**
|
2021-04-16 02:39:21 -04:00
|
|
|
* @def OPENTHREAD_CONFIG_NCP_HDLC_ENABLE
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
2021-04-16 02:39:21 -04:00
|
|
|
* Define to 1 to enable NCP HDLC support.
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
*/
|
2021-04-16 02:39:21 -04:00
|
|
|
#define OPENTHREAD_CONFIG_NCP_HDLC_ENABLE 1
|
2021-04-02 02:49:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to support injecting Service entries into the Thread Network Data.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 1
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def PACKAGE_NAME
|
|
|
|
*
|
|
|
|
* Define to the full name of this package.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define PACKAGE_NAME "openthread-esp32"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def PACKAGE_STRING
|
|
|
|
*
|
|
|
|
* Define to the full name and version of this package.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define PACKAGE_STRING (PACKAGE_NAME " - " PACKAGE_VERSION)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS
|
|
|
|
*
|
|
|
|
* Define as 1 to enable bultin-mbedtls.
|
|
|
|
*
|
|
|
|
* Note that the OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS determines whether to use bultin-mbedtls as well as
|
|
|
|
* whether to manage mbedTLS internally, such as memory allocation and debug.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS 0
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to enable support for adding of auto-configured SLAAC addresses by OpenThread.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS
|
|
|
|
*
|
|
|
|
* The maximum number of state-changed callback handlers (set using `otSetStateChangedCallback()`).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS 3
|
|
|
|
|
|
|
|
/**
|
2024-07-01 02:49:17 -04:00
|
|
|
* @def OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE
|
2021-04-02 02:49:49 -04:00
|
|
|
*
|
|
|
|
* Specifies the rx frame buffer size used by `SpinelInterface` in RCP host code. This is applicable/used when
|
|
|
|
* `RadioSpinel` platform is used.
|
|
|
|
*
|
|
|
|
*/
|
2024-07-01 02:49:17 -04:00
|
|
|
#define OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE CONFIG_OPENTHREAD_SPINEL_RX_FRAME_BUFFER_SIZE
|
2021-04-02 02:49:49 -04:00
|
|
|
|
2021-04-26 04:25:15 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to enable microsecond timer.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 1
|
|
|
|
|
2021-08-27 09:23:33 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PING_SENDER_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable ping sender module.
|
|
|
|
*
|
|
|
|
* Ping sender module implements sending ICMPv6 Echo Request messages and processing ICMPv6 Echo Reply messages.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1
|
|
|
|
|
2023-09-04 04:42:10 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MLE_MAX_CHILDREN
|
|
|
|
*
|
|
|
|
* The maximum number of children.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN CONFIG_OPENTHREAD_MLE_MAX_CHILDREN
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES
|
|
|
|
*
|
|
|
|
* The number of EID-to-RLOC cache entries.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES CONFIG_OPENTHREAD_TMF_ADDR_CACHE_ENTRIES
|
|
|
|
|
2023-05-24 06:01:17 -04:00
|
|
|
#if CONFIG_OPENTHREAD_DUA_ENABLE
|
2022-01-04 06:14:12 -05:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DUA_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to support Thread 1.2 Domain Unicast Address feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_DUA_ENABLE
|
2023-05-24 06:01:17 -04:00
|
|
|
#define OPENTHREAD_CONFIG_DUA_ENABLE 1
|
2022-01-04 06:14:12 -05:00
|
|
|
#endif
|
2023-05-24 06:01:17 -04:00
|
|
|
#endif //CONFIG_OPENTHREAD_DUA_ENABLE
|
2022-01-04 06:14:12 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MLR_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to support Thread 1.2 Multicast Listener Registration feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MLR_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MLR_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-04-02 02:49:49 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DTLS_MAX_CONTENT_LEN
|
|
|
|
*
|
|
|
|
* The max length of the OpenThread dtls content buffer.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_DTLS_MAX_CONTENT_LEN
|
|
|
|
#define OPENTHREAD_CONFIG_DTLS_MAX_CONTENT_LEN 768
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The configurable definitions via Kconfig
|
|
|
|
*/
|
|
|
|
#if CONFIG_OPENTHREAD_COMMISSIONER
|
|
|
|
#define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 1
|
2023-09-04 04:42:10 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES
|
|
|
|
*
|
|
|
|
* The maximum number of Joiner entries maintained by the Commissioner
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES CONFIG_OPENTHREAD_COMM_MAX_JOINER_ENTRIES
|
2021-04-02 02:49:49 -04:00
|
|
|
#endif
|
|
|
|
|
2023-05-19 01:24:07 -04:00
|
|
|
#if CONFIG_OPENTHREAD_MACFILTER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-04-02 02:49:49 -04:00
|
|
|
#if CONFIG_OPENTHREAD_JOINER
|
|
|
|
#define OPENTHREAD_CONFIG_JOINER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if CONFIG_OPENTHREAD_DIAG
|
|
|
|
#define OPENTHREAD_CONFIG_DIAG_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2021-09-10 02:15:52 -04:00
|
|
|
#if CONFIG_OPENTHREAD_SRP_CLIENT
|
|
|
|
#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1
|
|
|
|
#endif
|
2023-09-04 04:42:10 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES
|
|
|
|
*
|
|
|
|
* Specifies number of service entries in the SRP client service pool.
|
|
|
|
*
|
|
|
|
* This config is applicable only when `OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_ENABLE` is enabled.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES CONFIG_OPENTHREAD_SRP_CLIENT_MAX_SERVICES
|
2021-09-10 02:15:52 -04:00
|
|
|
#endif
|
|
|
|
|
2023-03-01 02:10:21 -05:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE
|
|
|
|
*
|
|
|
|
* Define to 1 to enable DNS Client support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE CONFIG_OPENTHREAD_DNS_CLIENT
|
|
|
|
|
2023-01-03 04:29:30 -05:00
|
|
|
#if CONFIG_OPENTHREAD_CSL_ENABLE
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to support Thread 1.2 CSL feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to enable support Thread 1.2 CSL debug.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MAC_CSL_DEBUG_ENABLE CONFIG_OPENTHREAD_CSL_DEBUG_ENABLE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // CONFIG_OPENTHREAD_CSL_ENABLE
|
|
|
|
|
2023-04-19 03:00:17 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US
|
|
|
|
*
|
|
|
|
* Define as 1 to set the ahead time for CSL transmit timing.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US
|
|
|
|
#define OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US 20000
|
|
|
|
#endif
|
|
|
|
|
2023-01-03 04:29:30 -05:00
|
|
|
#if CONFIG_OPENTHREAD_LINK_METRICS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to support Thread 1.2 Link Metrics Subject feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to support Thread 1.2 Link Metrics feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE 1
|
|
|
|
#endif
|
|
|
|
#endif //CONFIG_OPENTHREAD_LINK_METRICS
|
|
|
|
|
2023-07-11 08:06:05 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_OPERATIONAL_DATASET_AUTO_INIT
|
|
|
|
*
|
|
|
|
* Define as 1 to enable support for locally initializing an Active Operational Dataset.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_OPERATIONAL_DATASET_AUTO_INIT
|
|
|
|
#define OPENTHREAD_CONFIG_OPERATIONAL_DATASET_AUTO_INIT 1
|
|
|
|
#endif
|
|
|
|
|
2023-08-23 04:03:13 -04:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Define as 1 to enable support for allocating message pool buffer in PSRAM
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#if CONFIG_OPENTHREAD_PLATFORM_MSGPOOL_MANAGEMENT
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT
|
|
|
|
*
|
|
|
|
* The message pool is managed by platform defined logic when this flag is set.
|
|
|
|
* This feature would typically be used when operating in a multi-threaded system
|
|
|
|
* and multiple threads need to access the message pool.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT 1
|
|
|
|
#endif
|
|
|
|
|
2023-09-21 08:31:38 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TIME_SYNC_ENABLE
|
|
|
|
*
|
|
|
|
* Define as 1 to enable the time synchronization service feature.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#if CONFIG_OPENTHREAD_TIME_SYNC
|
|
|
|
#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2023-10-16 05:35:52 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_RADIO_STATS_ENABLE
|
|
|
|
*
|
|
|
|
* Set to 1 to enable support for Radio Statistics. Note that this option only works for OPENTHREAD_FTD and
|
|
|
|
* OPENTHREAD_MTD.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#if CONFIG_OPENTHREAD_RADIO_STATS_ENABLE
|
|
|
|
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1
|
|
|
|
#endif
|
|
|
|
|
2024-01-04 03:16:50 -05:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIMEOUT
|
|
|
|
*
|
|
|
|
* The timeout value (in seconds) waiting for a address notification response after sending an address query.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIMEOUT
|
|
|
|
#define OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIMEOUT CONFIG_OPENTHREAD_ADDRESS_QUERY_TIMEOUT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INITIAL_RETRY_DELAY
|
|
|
|
*
|
|
|
|
* Initial retry delay for address query (in seconds).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INITIAL_RETRY_DELAY
|
|
|
|
#define OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INITIAL_RETRY_DELAY CONFIG_OPENTHREAD_ADDRESS_QUERY_RETRY_DELAY
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY
|
|
|
|
*
|
|
|
|
* Maximum retry delay for address query (in seconds).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY
|
|
|
|
#define OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY CONFIG_OPENTHREAD_ADDRESS_QUERY_MAX_RETRY_DELAY
|
|
|
|
#endif
|
|
|
|
|
2024-03-20 06:00:33 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
|
|
|
*
|
|
|
|
* The maximum number of backoffs the CSMA-CA algorithm will attempt before declaring a channel access failure.
|
|
|
|
*
|
|
|
|
* Equivalent to macMaxCSMABackoffs in IEEE 802.15.4-2006, default value is 4.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
|
|
|
#define OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT CONFIG_OPENTHREAD_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
|
|
|
#endif
|
|
|
|
|
2024-04-10 05:49:25 -04:00
|
|
|
#ifndef OPENTHREAD_CONFIG_THREAD_VERSION
|
|
|
|
#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4
|
|
|
|
#endif
|
|
|
|
|
2021-04-02 02:49:49 -04:00
|
|
|
#define OPENTHREAD_FTD 1
|