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
@@ -29,6 +29,7 @@
#include <ctype.h>
#include "test_util.h"
#include "openthread/openthread.h"
#include <openthread-instance.h>
#include <common/code_utils.hpp>
#include <common/message.hpp>
#include <ncp/ncp_buffer.hpp>
@@ -49,7 +50,8 @@ static const uint8_t sHelloText[] = "Hello there!";
static const uint8_t sMottoText[] = "Think good thoughts, say good words, do good deeds!";
static const uint8_t sMysteryText[] = "4871(\\):|(3$}{4|/4/2%14(\\)";
static MessagePool sMessagePool;
static otInstance sInstance;
static MessagePool sMessagePool(&sInstance);
struct CallbackContext
{