mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 14:57:38 +00:00
[spinel-interface] add config option to change the rx frame buffer size (#5687)
Adds `OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE` config option which specifies the rx frame buffer size used by `SpinelInterface` in RCP host (posix) code. This is applicable/used when `RadioSpinel` platform is used.
This commit is contained in:
@@ -107,4 +107,15 @@
|
||||
#define OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE
|
||||
*
|
||||
* Specifies the rx frame buffer size used by `SpinelInterface` in RCP host (posix) code. This is applicable/used when
|
||||
* `RadioSpinel` platform is used.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE
|
||||
#define OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE 8192
|
||||
#endif
|
||||
|
||||
#endif // CONFIG_PLATFORM_H_
|
||||
|
||||
@@ -45,7 +45,7 @@ class SpinelInterface
|
||||
public:
|
||||
enum
|
||||
{
|
||||
kMaxFrameSize = 2048, ///< Maximum frame size (number of bytes).
|
||||
kMaxFrameSize = OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE, ///< Maximum buffer size.
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user