/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */#pragmaonce#include<stddef.h>#include<stdint.h>#include"sdkconfig.h"#include"freertos/FreeRTOS.h"#include"freertos/task.h"#include"esp_console.h"6 includes#defineCONSOLE_PROMPT_MAX_LEN(32)#ifCONFIG_IDF_TARGET_LINUX#defineCONSOLE_PATH_MAX_LEN(128)#else#include"esp_vfs_dev.h"#defineCONSOLE_PATH_MAX_LEN(ESP_VFS_PATH_MAX)/* ... */#endiftypedefenum{CONSOLE_REPL_STATE_DEINIT,CONSOLE_REPL_STATE_INIT,CONSOLE_REPL_STATE_START,}{ ... }repl_state_t;typedefstruct{esp_console_repl_trepl_core;// base classcharprompt[CONSOLE_PROMPT_MAX_LEN];// Prompt to be printed before each linerepl_state_tstate;constchar*history_save_path;TaskHandle_ttask_hdl;// REPL task handlesize_tmax_cmdline_length;// Maximum length of a command line. If 0, default value will be used.}{ ... }esp_console_repl_com_t;typedefstruct{esp_console_repl_com_trepl_com;// base classintuart_channel;// uart channel number}{ ... }esp_console_repl_universal_t;voidesp_console_repl_task(void*args);esp_err_tesp_console_common_init(size_tmax_cmdline_length,esp_console_repl_com_t*repl_com);esp_err_tesp_console_setup_prompt(constchar*prompt,esp_console_repl_com_t*repl_com);esp_err_tesp_console_setup_history(constchar*history_path,uint32_tmax_history_len,esp_console_repl_com_t*repl_com);
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.