[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:
Abtin Keshavarzian
2020-10-22 21:29:04 -07:00
committed by GitHub
parent a04b6ea753
commit 50f9881a19
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -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_
+1 -1
View File
@@ -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.
};
/**