2022-04-25 21:45:19 +08:00
|
|
|
/*
|
2024-12-12 20:29:34 +08:00
|
|
|
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
2022-04-25 21:45:19 +08:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2023-12-27 15:12:25 +08:00
|
|
|
#pragma once
|
2022-04-25 21:45:19 +08:00
|
|
|
|
2024-07-01 20:10:31 +08:00
|
|
|
#include "sdkconfig.h"
|
2024-07-18 14:35:00 +08:00
|
|
|
|
|
|
|
|
#if CONFIG_OPENTHREAD_HEADER_CUSTOM
|
|
|
|
|
#include CONFIG_OPENTHREAD_CUSTOM_HEADER_FILE_NAME
|
|
|
|
|
#endif
|
2024-07-01 20:10:31 +08:00
|
|
|
|
|
|
|
|
/**
|
2024-07-18 14:35:00 +08:00
|
|
|
* @def OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE
|
2024-07-01 20:10:31 +08:00
|
|
|
*
|
2024-07-18 14:35:00 +08: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 20:10:31 +08:00
|
|
|
*
|
|
|
|
|
*/
|
2024-07-18 14:35:00 +08:00
|
|
|
#ifdef OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE
|
|
|
|
|
#error `OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE` is redefined.
|
|
|
|
|
#endif
|
|
|
|
|
#define OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE CONFIG_OPENTHREAD_SPINEL_RX_FRAME_BUFFER_SIZE
|
2024-07-01 20:10:31 +08:00
|
|
|
|
2022-04-25 21:45:19 +08:00
|
|
|
/**
|
2024-07-18 14:35:00 +08:00
|
|
|
* @def OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
2022-04-25 21:45:19 +08:00
|
|
|
*
|
2024-07-18 14:35:00 +08:00
|
|
|
* 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.
|
2022-04-25 21:45:19 +08:00
|
|
|
*
|
|
|
|
|
*/
|
2024-07-18 14:35:00 +08:00
|
|
|
#ifdef OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
|
|
|
|
#error `OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT` is redefined.
|
2022-04-25 21:45:19 +08:00
|
|
|
#endif
|
2024-07-18 14:35:00 +08:00
|
|
|
#define OPENTHREAD_CONFIG_MAC_MAX_CSMA_BACKOFFS_DIRECT CONFIG_OPENTHREAD_SPINEL_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
|
|
|
|
|
|
|
|
|
/*----The following options set fixed default values but can be overridden by the user header file.----*/
|
2022-04-25 21:45:19 +08: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
|
2024-07-18 19:34:50 +08:00
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT 3
|
2022-04-25 21:45:19 +08:00
|
|
|
#endif
|
|
|
|
|
|
2024-12-12 20:29:34 +08:00
|
|
|
/**
|
|
|
|
|
* @def OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE
|
|
|
|
|
*
|
|
|
|
|
* Enables compilation of vendor specific code for Spinel
|
|
|
|
|
*/
|
2024-07-18 14:35:00 +08:00
|
|
|
#ifndef OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE
|
2024-07-18 19:34:50 +08:00
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE 1
|
2024-03-20 18:00:33 +08:00
|
|
|
#endif
|
2024-10-29 11:56:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @def OPENTHREAD_SPINEL_CONFIG_COMPATIBILITY_ERROR_CALLBACK_ENABLE
|
|
|
|
|
*
|
|
|
|
|
* Enables compatibility error callback in Spinel
|
|
|
|
|
*/
|
|
|
|
|
#ifndef OPENTHREAD_SPINEL_CONFIG_COMPATIBILITY_ERROR_CALLBACK_ENABLE
|
|
|
|
|
#define OPENTHREAD_SPINEL_CONFIG_COMPATIBILITY_ERROR_CALLBACK_ENABLE 1
|
|
|
|
|
#endif
|