[examples] change example platform namespacing (#2927)

This commit is contained in:
Jonathan Hui
2018-08-03 14:13:47 -05:00
committed by GitHub
parent 1ca81fbb16
commit f0bb0982ee
44 changed files with 169 additions and 133 deletions
+4 -4
View File
@@ -35,7 +35,7 @@
#include <openthread/openthread.h>
#include <openthread/platform/logging.h>
#include "platform.h"
#include "openthread-system.h"
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
void *otPlatCAlloc(size_t aNum, size_t aSize)
@@ -65,7 +65,7 @@ int main(int argc, char *argv[])
pseudo_reset:
PlatformInit(argc, argv);
otSysInit(argc, argv);
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
// Call to query the buffer size
@@ -88,10 +88,10 @@ pseudo_reset:
otDiagInit(sInstance);
#endif
while (!PlatformPseudoResetWasRequested())
while (!otSysPseudoResetWasRequested())
{
otTaskletsProcess(sInstance);
PlatformProcessDrivers(sInstance);
otSysProcessDrivers(sInstance);
}
otInstanceFinalize(sInstance);
+4 -4
View File
@@ -34,7 +34,7 @@
#include <openthread/ncp.h>
#include <openthread/openthread.h>
#include "platform.h"
#include "openthread-system.h"
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
void *otPlatCAlloc(size_t aNum, size_t aSize)
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
pseudo_reset:
PlatformInit(argc, argv);
otSysInit(argc, argv);
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
// Call to query the buffer size
@@ -87,10 +87,10 @@ pseudo_reset:
otDiagInit(sInstance);
#endif
while (!PlatformPseudoResetWasRequested())
while (!otSysPseudoResetWasRequested())
{
otTaskletsProcess(sInstance);
PlatformProcessDrivers(sInstance);
otSysProcessDrivers(sInstance);
}
otInstanceFinalize(sInstance);