2022-04-25 09:45:19 -04:00
|
|
|
/*
|
2024-01-16 06:04:19 -05:00
|
|
|
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
2022-04-25 09:45:19 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-12-27 02:12:25 -05:00
|
|
|
#pragma once
|
2022-04-25 09:45:19 -04:00
|
|
|
|
2024-07-01 08:10:31 -04:00
|
|
|
#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_OPENTHREAD_PLATFORM_INFO
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def PACKAGE_NAME
|
|
|
|
*
|
|
|
|
* Define to the full name of this package.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
|
|
|
|
|
2022-04-25 09:45:19 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE
|
|
|
|
*
|
|
|
|
* Define 1 to enable feeding an OpenThread message to encoder/decoder.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE
|
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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
|
2023-12-27 02:12:25 -05:00
|
|
|
// TZ-567: Set OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT to 3 after adding rcp failure notification mechanism
|
2024-07-18 07:34:50 -04:00
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT 3
|
2022-04-25 09:45:19 -04:00
|
|
|
#endif
|
|
|
|
|
2024-07-18 07:34:50 -04:00
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE 1
|
|
|
|
|
2022-04-25 09:45:19 -04:00
|
|
|
/**
|
|
|
|
* @def OPENTHREAD_SPINEL_CONFIG_RCP_CUSTOM_RESTORATION
|
|
|
|
*
|
|
|
|
* Define 1 to call the custom RCP failure handler on RCP failure.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef OPENTHREAD_SPINEL_CONFIG_RCP_CUSTOM_RESTORATION
|
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_RCP_CUSTOM_RESTORATION 0
|
|
|
|
#endif
|
2024-01-16 06:04:19 -05:00
|
|
|
|
|
|
|
/**
|
2024-07-01 02:49:17 -04:00
|
|
|
* @def OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE
|
2024-01-16 06:04:19 -05: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
|
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
|