mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 13:38:07 +00:00
[code-style] apply clang-format
This commit is contained in:
@@ -26,9 +26,9 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <openthread/config.h>
|
||||
#include <openthread-core-config.h>
|
||||
#include <assert.h>
|
||||
#include <openthread-core-config.h>
|
||||
#include <openthread/config.h>
|
||||
|
||||
#include <openthread/cli.h>
|
||||
#include <openthread/diag.h>
|
||||
@@ -59,8 +59,8 @@ int main(int argc, char *argv[])
|
||||
otInstance *sInstance;
|
||||
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
size_t otInstanceBufferLength = 0;
|
||||
uint8_t *otInstanceBuffer = NULL;
|
||||
size_t otInstanceBufferLength = 0;
|
||||
uint8_t *otInstanceBuffer = NULL;
|
||||
#endif
|
||||
|
||||
PlatformInit(argc, argv);
|
||||
@@ -92,9 +92,9 @@ int main(int argc, char *argv[])
|
||||
PlatformProcessDrivers(sInstance);
|
||||
}
|
||||
|
||||
// otInstanceFinalize(sInstance);
|
||||
// otInstanceFinalize(sInstance);
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
// free(otInstanceBuffer);
|
||||
// free(otInstanceBuffer);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <openthread/config.h>
|
||||
#include <openthread-core-config.h>
|
||||
#include <assert.h>
|
||||
#include <openthread-core-config.h>
|
||||
#include <openthread/config.h>
|
||||
|
||||
#include <openthread/diag.h>
|
||||
#include <openthread/ncp.h>
|
||||
@@ -58,8 +58,8 @@ int main(int argc, char *argv[])
|
||||
otInstance *sInstance;
|
||||
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
size_t otInstanceBufferLength = 0;
|
||||
uint8_t *otInstanceBuffer = NULL;
|
||||
size_t otInstanceBufferLength = 0;
|
||||
uint8_t *otInstanceBuffer = NULL;
|
||||
#endif
|
||||
|
||||
PlatformInit(argc, argv);
|
||||
@@ -91,18 +91,17 @@ int main(int argc, char *argv[])
|
||||
PlatformProcessDrivers(sInstance);
|
||||
}
|
||||
|
||||
// otInstanceFinalize(sInstance);
|
||||
// otInstanceFinalize(sInstance);
|
||||
#if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
|
||||
// free(otInstanceBuffer);
|
||||
// free(otInstanceBuffer);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Provide, if required an "otPlatLog()" function
|
||||
*/
|
||||
/*
|
||||
* Provide, if required an "otPlatLog()" function
|
||||
*/
|
||||
|
||||
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_APP)
|
||||
void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...)
|
||||
|
||||
Reference in New Issue
Block a user