mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 15:17:46 +00:00
Add Dynamic Memory Support to otLwf.sys (#1414)
* Add Dynamic Memory Support * Use single list for free buffers. Null mNext on return of new buffer. * Use Paged memory for Buffers.
This commit is contained in:
@@ -28,13 +28,15 @@
|
||||
|
||||
#include "test_util.h"
|
||||
#include "openthread/openthread.h"
|
||||
#include <openthread-instance.h>
|
||||
#include <common/debug.hpp>
|
||||
#include <common/message.hpp>
|
||||
#include <string.h>
|
||||
|
||||
void TestMessage(void)
|
||||
{
|
||||
Thread::MessagePool messagePool;
|
||||
otInstance instance;
|
||||
Thread::MessagePool messagePool(&instance);
|
||||
Thread::Message *message;
|
||||
uint8_t writeBuffer[1024];
|
||||
uint8_t readBuffer[1024];
|
||||
|
||||
Reference in New Issue
Block a user