Lines Matching refs:repl_com

45     esp_console_repl_com_t repl_com; // base class  member
55 …tic esp_err_t esp_console_common_init(size_t max_cmdline_length, esp_console_repl_com_t *repl_com);
56 static esp_err_t esp_console_setup_prompt(const char *prompt, esp_console_repl_com_t *repl_com);
57 …etup_history(const char *history_path, uint32_t max_history_len, esp_console_repl_com_t *repl_com);
84 ret = esp_console_common_init(repl_config->max_cmdline_length, &cdc_repl->repl_com); in esp_console_new_repl_usb_cdc()
90 …e_setup_history(repl_config->history_save_path, repl_config->max_history_len, &cdc_repl->repl_com); in esp_console_new_repl_usb_cdc()
96 esp_console_setup_prompt(repl_config->prompt, &cdc_repl->repl_com); in esp_console_new_repl_usb_cdc()
100 cdc_repl->repl_com.state = CONSOLE_REPL_STATE_INIT; in esp_console_new_repl_usb_cdc()
101 cdc_repl->repl_com.repl_core.del = esp_console_repl_usb_cdc_delete; in esp_console_new_repl_usb_cdc()
105 cdc_repl, repl_config->task_priority, &cdc_repl->repl_com.task_hdl) != pdTRUE) { in esp_console_new_repl_usb_cdc()
110 *ret_repl = &cdc_repl->repl_com.repl_core; in esp_console_new_repl_usb_cdc()
160 ret = esp_console_common_init(repl_config->max_cmdline_length, &usb_serial_jtag_repl->repl_com); in esp_console_new_repl_usb_serial_jtag()
169 …ory(repl_config->history_save_path, repl_config->max_history_len, &usb_serial_jtag_repl->repl_com); in esp_console_new_repl_usb_serial_jtag()
175 esp_console_setup_prompt(repl_config->prompt, &usb_serial_jtag_repl->repl_com); in esp_console_new_repl_usb_serial_jtag()
179 …&usb_serial_jtag_repl->repl_com, repl_config->task_priority, &usb_serial_jtag_repl->repl_com.task_… in esp_console_new_repl_usb_serial_jtag()
185 usb_serial_jtag_repl->repl_com.state = CONSOLE_REPL_STATE_INIT; in esp_console_new_repl_usb_serial_jtag()
186 usb_serial_jtag_repl->repl_com.repl_core.del = esp_console_repl_usb_serial_jtag_delete; in esp_console_new_repl_usb_serial_jtag()
187 *ret_repl = &usb_serial_jtag_repl->repl_com.repl_core; in esp_console_new_repl_usb_serial_jtag()
253 ret = esp_console_common_init(repl_config->max_cmdline_length, &uart_repl->repl_com); in esp_console_new_repl_uart()
259 …_setup_history(repl_config->history_save_path, repl_config->max_history_len, &uart_repl->repl_com); in esp_console_new_repl_uart()
265 esp_console_setup_prompt(repl_config->prompt, &uart_repl->repl_com); in esp_console_new_repl_uart()
269 uart_repl->repl_com.state = CONSOLE_REPL_STATE_INIT; in esp_console_new_repl_uart()
270 uart_repl->repl_com.repl_core.del = esp_console_repl_uart_delete; in esp_console_new_repl_uart()
275 … uart_repl, repl_config->task_priority, &uart_repl->repl_com.task_hdl) != pdTRUE) { in esp_console_new_repl_uart()
280 *ret_repl = &uart_repl->repl_com.repl_core; in esp_console_new_repl_uart()
297 esp_console_repl_com_t *repl_com = __containerof(repl, esp_console_repl_com_t, repl_core); in esp_console_start_repl() local
299 if (repl_com->state != CONSOLE_REPL_STATE_INIT) { in esp_console_start_repl()
304 repl_com->state = CONSOLE_REPL_STATE_START; in esp_console_start_repl()
305 xTaskNotifyGive(repl_com->task_hdl); in esp_console_start_repl()
311 static esp_err_t esp_console_setup_prompt(const char *prompt, esp_console_repl_com_t *repl_com) in esp_console_setup_prompt() argument
318 …snprintf(repl_com->prompt, CONSOLE_PROMPT_MAX_LEN - 1, LOG_COLOR_I "%s " LOG_RESET_COLOR, prompt_t… in esp_console_setup_prompt()
329 snprintf(repl_com->prompt, CONSOLE_PROMPT_MAX_LEN - 1, "%s ", prompt_temp); in esp_console_setup_prompt()
336 …setup_history(const char *history_path, uint32_t max_history_len, esp_console_repl_com_t *repl_com) in esp_console_setup_history() argument
340 repl_com->history_save_path = history_path; in esp_console_setup_history()
357 …atic esp_err_t esp_console_common_init(size_t max_cmdline_length, esp_console_repl_com_t *repl_com) in esp_console_common_init() argument
362 repl_com->max_cmdline_length = console_config.max_cmdline_length; in esp_console_common_init()
366 repl_com->max_cmdline_length = max_cmdline_length; in esp_console_common_init()
398 esp_console_repl_com_t *repl_com = __containerof(repl, esp_console_repl_com_t, repl_core); in esp_console_repl_uart_delete() local
399 …console_repl_universal_t *uart_repl = __containerof(repl_com, esp_console_repl_universal_t, repl_c… in esp_console_repl_uart_delete()
401 if (repl_com->state == CONSOLE_REPL_STATE_DEINIT) { in esp_console_repl_uart_delete()
406 repl_com->state = CONSOLE_REPL_STATE_DEINIT; in esp_console_repl_uart_delete()
418 esp_console_repl_com_t *repl_com = __containerof(repl, esp_console_repl_com_t, repl_core); in esp_console_repl_usb_cdc_delete() local
419 …_console_repl_universal_t *cdc_repl = __containerof(repl_com, esp_console_repl_universal_t, repl_c… in esp_console_repl_usb_cdc_delete()
421 if (repl_com->state == CONSOLE_REPL_STATE_DEINIT) { in esp_console_repl_usb_cdc_delete()
426 repl_com->state = CONSOLE_REPL_STATE_DEINIT; in esp_console_repl_usb_cdc_delete()
437 esp_console_repl_com_t *repl_com = __containerof(repl, esp_console_repl_com_t, repl_core); in esp_console_repl_usb_serial_jtag_delete() local
438 …l_universal_t *usb_serial_jtag_repl = __containerof(repl_com, esp_console_repl_universal_t, repl_c… in esp_console_repl_usb_serial_jtag_delete()
440 if (repl_com->state == CONSOLE_REPL_STATE_DEINIT) { in esp_console_repl_usb_serial_jtag_delete()
445 repl_com->state = CONSOLE_REPL_STATE_DEINIT; in esp_console_repl_usb_serial_jtag_delete()
458 esp_console_repl_com_t *repl_com = &repl_conf->repl_com; in esp_console_repl_task() local
496 linenoiseSetMaxLineLen(repl_com->max_cmdline_length); in esp_console_repl_task()
497 while (repl_com->state == CONSOLE_REPL_STATE_START) { in esp_console_repl_task()
498 char *line = linenoise(repl_com->prompt); in esp_console_repl_task()
507 if (repl_com->history_save_path) { in esp_console_repl_task()
508 linenoiseHistorySave(repl_com->history_save_path); in esp_console_repl_task()