mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
[config] remaining configure options (#4020)
This commit is contained in:
@@ -46,7 +46,7 @@ jmp_buf gResetJump;
|
||||
void __gcov_flush();
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
void *otPlatCAlloc(size_t aNum, size_t aSize)
|
||||
{
|
||||
return calloc(aNum, aSize);
|
||||
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
size_t otInstanceBufferLength = 0;
|
||||
uint8_t *otInstanceBuffer = NULL;
|
||||
#endif
|
||||
@@ -87,7 +87,7 @@ pseudo_reset:
|
||||
|
||||
otSysInit(argc, argv);
|
||||
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
// Call to query the buffer size
|
||||
(void)otInstanceInit(NULL, &otInstanceBufferLength);
|
||||
|
||||
@@ -111,7 +111,7 @@ pseudo_reset:
|
||||
}
|
||||
|
||||
otInstanceFinalize(instance);
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
free(otInstanceBuffer);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user