1 /* 2 * Arm SCP/MCP Software 3 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef _CLI_CONFIG_H_ 9 #define _CLI_CONFIG_H_ 10 11 #include <fwk_status.h> 12 13 /* 14 * Descriptions of console configuration macros. 15 * 16 * CLI_CONFIG_COMMAND_BUF_SIZE 17 * The maximum number of characters that can be entered as a single command. 18 * 19 * CLI_CONFIG_MAX_NUM_ARGUMENTS 20 * The maximum number of individual arguments in a single command. 21 * 22 * CLI_CONFIG_HISTORY_LENGTH 23 * The number of past commands stored by the console. Can be accessed with 24 * the up/down arrow keys. 25 * 26 * CLI_CONFIG_PROMPT_BUF_SIZE 27 * Size of the CLI prompt text buffer. 28 * 29 * CLI_CONFIG_DEFAULT_TERM_W 30 * Default assumed terminal window width. 31 * 32 * CLI_CONFIG_DEFAULT_TERM_H 33 * Default assumed terminal window height. 34 * 35 * CLI_CONFIG_STACK_SIZE 36 * Number of stack bytes requested when thread is defined. 37 * 38 * CLI_CONFIG_PRINT_BUFFER_SIZE 39 * Size of the debug print buffer used to store characters before they can 40 * be sent to the UART. 41 * 42 * CLI_CONFIG_SCRATCH_BUFFER_SIZE 43 * Number of stack bytes used as scratch space by print statements, size of 44 * this buffer determines the maximum length of a single print. Threads using 45 * CLI print functionality must have this much extra stack space. 46 */ 47 48 #define CLI_CONFIG_COMMAND_BUF_SIZE (256) 49 #define CLI_CONFIG_MAX_NUM_ARGUMENTS (16) 50 #define CLI_CONFIG_HISTORY_LENGTH (16) 51 #define CLI_CONFIG_PROMPT_BUF_SIZE (16) 52 #define CLI_CONFIG_DEFAULT_TERM_W (80) 53 #define CLI_CONFIG_DEFAULT_TERM_H (24) 54 #define CLI_CONFIG_STACK_SIZE (2048) 55 #define CLI_CONFIG_PRINT_BUFFER_SIZE (1024) 56 #define CLI_CONFIG_SCRATCH_BUFFER_SIZE (256) 57 58 #define CLI_PROMPT "> " 59 60 #endif /* _CLI_CONFIG_H_ */ 61