diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/Kconfig.projbuild b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/Kconfig.projbuild index 5d40e1962d5..2964c97b8ce 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/Kconfig.projbuild +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/Kconfig.projbuild @@ -4,4 +4,10 @@ menu "HFP Example Configuration" default "ESP_HFP_AG" help Use this option to set local device name. + + config EXAMPLE_ENABLE_CONSOLE_REPL + bool "Enable UART interactive console (REPL)" + default y + help + Enable UART interactive console (REPL) endmenu diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/main.c b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/main.c index 0e30854b20a..eadb52f870f 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/main.c +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/main.c @@ -22,7 +22,9 @@ #include "esp_hf_ag_api.h" #include "bt_app_hf.h" #include "gpio_pcm_config.h" +#if CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL #include "esp_console.h" +#endif #include "app_hf_msg_set.h" #define BT_HF_AG_TAG "HF_AG_DEMO_MAIN" @@ -131,6 +133,7 @@ void app_main(void) app_gpio_aec_io_cfg(); #endif /* ACOUSTIC_ECHO_CANCELLATION_ENABLE */ +#if CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL esp_console_repl_t *repl = NULL; esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT(); esp_console_dev_uart_config_t uart_config = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT(); @@ -152,4 +155,5 @@ void app_main(void) // start console REPL ESP_ERROR_CHECK(esp_console_start_repl(repl)); +#endif } diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.all b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.all index 1d7593af051..476154d9bb6 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.all +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.all @@ -1,2 +1,3 @@ CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI=y CONFIG_EXAMPLE_LOCAL_DEVICE_NAME="${CI_PIPELINE_ID}_HFP" +CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL=n diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.vohci b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.vohci index 6b572324794..379a69c8b3e 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.vohci +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/sdkconfig.ci.vohci @@ -9,3 +9,4 @@ CONFIG_BT_CLASSIC_ENABLED=y CONFIG_BT_HFP_ENABLE=y CONFIG_BT_HFP_AG_ENABLE=y CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI=y +CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL=n diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/Kconfig.projbuild b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/Kconfig.projbuild index 65e04f08e64..dd98f3b64c7 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/Kconfig.projbuild +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/Kconfig.projbuild @@ -12,4 +12,10 @@ menu "HFP Example Configuration" default "ESP_HFP_AG" help Use this option to set target device name to connect. + + config EXAMPLE_ENABLE_CONSOLE_REPL + bool "Enable UART interactive console (REPL)" + default y + help + Enable UART interactive console (REPL) endmenu diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/main.c b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/main.c index 019566fb6e6..230b72c9d2a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/main.c +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/main.c @@ -24,7 +24,9 @@ #include "esp_pbac_api.h" #include "bt_app_hf.h" #include "gpio_pcm_config.h" +#if CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL #include "esp_console.h" +#endif #include "app_hf_msg_set.h" #include "bt_app_pbac.h" @@ -216,6 +218,7 @@ void app_main(void) #if ACOUSTIC_ECHO_CANCELLATION_ENABLE app_gpio_aec_io_cfg(); #endif /* ACOUSTIC_ECHO_CANCELLATION_ENABLE */ +#if CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL esp_console_repl_t *repl = NULL; esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT(); esp_console_dev_uart_config_t uart_config = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT(); @@ -237,6 +240,7 @@ void app_main(void) // start console REPL ESP_ERROR_CHECK(esp_console_start_repl(repl)); +#endif } diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.all b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.all index 94fafd42eaf..de5a2348c95 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.all +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.all @@ -1,2 +1,3 @@ CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI=y CONFIG_EXAMPLE_PEER_DEVICE_NAME="${CI_PIPELINE_ID}_HFP" +CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL=n diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.vohci b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.vohci index 6116dfe13c8..d519f996e0f 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.vohci +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/sdkconfig.ci.vohci @@ -9,3 +9,4 @@ CONFIG_BT_CLASSIC_ENABLED=y CONFIG_BT_HFP_ENABLE=y CONFIG_BT_HFP_CLIENT_ENABLE=y CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI=y +CONFIG_EXAMPLE_ENABLE_CONSOLE_REPL=n