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:
Nick Banks
2017-03-06 13:39:56 -08:00
committed by Jonathan Hui
parent 0357848f42
commit 2549d03f1f
15 changed files with 259 additions and 44 deletions
+3 -1
View File
@@ -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];