mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-02 11:16:33 +03:00
37 lines
720 B
C
37 lines
720 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include "sdkconfig.h"
|
|
#include "esp_newlib.h"
|
|
#include "esp_private/startup_internal.h"
|
|
#include "esp_bit_defs.h"
|
|
|
|
ESP_SYSTEM_INIT_FN(init_libc, CORE, BIT(0), 102)
|
|
{
|
|
esp_libc_init();
|
|
return ESP_OK;
|
|
}
|
|
|
|
ESP_SYSTEM_INIT_FN(init_libc_stdio, CORE, BIT(0), 120)
|
|
{
|
|
#if CONFIG_VFS_SUPPORT_IO
|
|
esp_libc_init_global_stdio("/dev/console");
|
|
#else
|
|
esp_libc_init_global_stdio();
|
|
#endif
|
|
return ESP_OK;
|
|
}
|
|
|
|
ESP_SYSTEM_INIT_FN(init_libc_time, CORE, BIT(0), 106)
|
|
{
|
|
esp_libc_time_init();
|
|
return ESP_OK;
|
|
}
|
|
|
|
// Hook to force the linker to include this file
|
|
void esp_libc_init_funcs(void)
|
|
{
|
|
}
|