mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 13:59:54 +00:00
[message] allow msg pool using external heap (#7933)
This commit updates the code to allow the config combination of `OPENTHREAD_CONFIG_MESSAGE_USE_HEAP_ENABLE` along using external heap `OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE`. This commit updates `Message` `GetFreeBufferCount()` and `GetTotalBufferCount()` methods to return special value `0xffff` under this config combo indicating the numbers cannot be estimated. This commit also updates `check-simulation-build-autotools` to add such a build config so to be covered as part OT CI tests.
This commit is contained in:
@@ -53,7 +53,7 @@ extern "C" {
|
||||
* @note This number versions both OpenThread platform and user APIs.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_API_VERSION (229)
|
||||
#define OPENTHREAD_API_VERSION (230)
|
||||
|
||||
/**
|
||||
* @addtogroup api-instance
|
||||
|
||||
@@ -287,8 +287,8 @@ typedef struct otMessageQueueInfo
|
||||
*/
|
||||
typedef struct otBufferInfo
|
||||
{
|
||||
uint16_t mTotalBuffers; ///< The total number of buffers in the messages pool.
|
||||
uint16_t mFreeBuffers; ///< The number of free buffers.
|
||||
uint16_t mTotalBuffers; ///< The total number of buffers in the messages pool (0xffff if unknown).
|
||||
uint16_t mFreeBuffers; ///< The number of free buffers (0xffff if unknown).
|
||||
otMessageQueueInfo m6loSendQueue; ///< Info about 6LoWPAN send queue.
|
||||
otMessageQueueInfo m6loReassemblyQueue; ///< Info about 6LoWPAN reassembly queue.
|
||||
otMessageQueueInfo mIp6Queue; ///< Info about IPv6 send queue.
|
||||
|
||||
Reference in New Issue
Block a user