soc: esp32xx: makes esp_console_init() calling conditional
Makes the esp_console_init() calling during hardware initialization conditioned to CONFIG_ESP_CONSOLE Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
This commit is contained in:
parent
7c6d3a6f93
commit
c3b53d0fa3
7 changed files with 37 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -51,9 +51,11 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -51,9 +51,11 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -53,9 +53,12 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -69,9 +69,11 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -51,9 +51,11 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -57,9 +57,11 @@ int hardware_init(void)
|
|||
|
||||
bootloader_clock_configure();
|
||||
|
||||
#ifdef CONFIG_ESP_CONSOLE
|
||||
/* initialize console, from now on, we can log */
|
||||
esp_console_init();
|
||||
print_banner();
|
||||
#endif /* CONFIG_ESP_CONSOLE */
|
||||
|
||||
spi_flash_init_chip_state();
|
||||
err = esp_flash_init_default_chip();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue