mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
[gn] add cli_uart (#12345)
This commit adds the `cli_uart` for applications to integrate OpenThread CLI based on UART APIs. One of the example is OTNS.
This commit is contained in:
@@ -29,9 +29,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <openthread-system.h>
|
||||
#include <openthread/cli.h>
|
||||
#include <openthread/logging.h>
|
||||
#include <openthread/platform/debug_uart.h>
|
||||
@@ -291,6 +289,9 @@ static int Output(const char *aBuf, uint16_t aBufLength)
|
||||
return sent;
|
||||
}
|
||||
|
||||
static int CliUartOutput(void *aContext, const char *aFormat, va_list aArguments)
|
||||
OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 0);
|
||||
|
||||
static int CliUartOutput(void *aContext, const char *aFormat, va_list aArguments)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aContext);
|
||||
|
||||
Reference in New Issue
Block a user