mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 18:59:51 +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:
@@ -129,6 +129,11 @@ build_all_features()
|
||||
export CPPFLAGS="${options[*]}"
|
||||
reset_source
|
||||
make -f examples/Makefile-simulation THREAD_VERSION=1.1 OTNS=1
|
||||
|
||||
# Build Thread 1.3 with external heap and msg pool using heap
|
||||
export CPPFLAGS="${options[*]} ${options_1_3[*]} -DOPENTHREAD_CONFIG_MESSAGE_USE_HEAP_ENABLE=1"
|
||||
reset_source
|
||||
make -f examples/Makefile-simulation THREAD_VERSION=1.3
|
||||
}
|
||||
|
||||
build_nest_common()
|
||||
|
||||
Reference in New Issue
Block a user