• Home
  • Raw
  • Download

Lines Matching +full:default +full:- +full:cli

28 #include "openthread-core-config.h"
34 #include <openthread-system.h>
35 #include <openthread/cli.h>
38 #include "cli/cli_config.h"
51 * The size of CLI UART RX buffer in bytes.
65 * The size of CLI message buffer in bytes.
74 #error "diag output buffer should be smaller than CLI UART tx buffer"
77 #error "diag command line should be smaller than CLI UART rx buffer"
82 #error "command line should be should be smaller than CLI rx buffer"
107 * Macro to acquire an exclusive lock of uart cli output
108 * Default implementation does nothing
119 * Macro to release the exclusive lock of uart cli output
120 * Default implementation does nothing
163 case 0x03: // ASCII for Ctrl-C in ReceiveTask()
167 case 0x04: // ASCII for Ctrl-D in ReceiveTask()
177 sRxBuffer[--sRxLength] = '\0'; in ReceiveTask()
182 default: in ReceiveTask()
183 if (sRxLength < kRxBufferSize - 1) in ReceiveTask()
200 while (sRxLength > 0 && (sRxBuffer[sRxLength - 1] == '\n' || sRxBuffer[sRxLength - 1] == '\r')) in ProcessCommand()
202 sRxBuffer[--sRxLength] = '\0'; in ProcessCommand()
215 if (sTxLength > kTxBufferSize - sTxHead) in Send()
217 sSendLength = kTxBufferSize - sTxHead; in Send()
240 sTxLength -= sSendLength; in SendDoneTask()
253 uint16_t remaining = kTxBufferSize - sTxLength; in Output()
266 aBufLength--; in Output()
306 …VerifyOrExit(rval >= 0 && rval < kTxBufferSize, otLogWarnPlat("Failed to format CLI output `%s`", … in CliUartOutput()
315 uint16_t remaining = (sTxHead > tail ? (sTxHead - tail) : (kTxBufferSize - tail)); in CliUartOutput()
323 otLogWarnPlat("Failed to format CLI output `%s`", aFormat); in CliUartOutput()
347 otLogWarnPlat("Failed to output CLI: %s", otThreadErrorToString(error)); in CliUartOutput()
359 otLogWarnPlat("CLI output `%s` truncated", aFormat); in CliUartOutput()