feat(console): added config option for console task affinity

This commit is contained in:
Marius Vikhammer
2023-12-18 18:04:56 +08:00
parent 25fcb2de2d
commit 0e2bd068be
3 changed files with 14 additions and 7 deletions

View File

@@ -27,6 +27,10 @@ static void start_console(void)
{
esp_console_repl_t *repl = NULL;
esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT();
/* Pin repl task to ensure all interrupts are allocated on the same core */
repl_config.task_core_id = 0;
/* Prompt to be printed before each line.
* This can be customized, made dynamic, etc.
*/