mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/introduce-esp_rom_libc_stubs_h' into 'master'
feat(esp_rom): add esp_rom_libc_stubs.h See merge request espressif/esp-idf!29769
This commit is contained in:
commit
bcd753994b
@ -18,11 +18,6 @@
|
|||||||
#include "esp_private/esp_ipc.h"
|
#include "esp_private/esp_ipc.h"
|
||||||
#include "esp_attr.h"
|
#include "esp_attr.h"
|
||||||
#include "hal/wdt_hal.h"
|
#include "hal/wdt_hal.h"
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
#include "esp32/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
|
||||||
#include "esp32s2/rom/libc_stubs.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_APPTRACE_GCOV_ENABLE
|
#if CONFIG_APPTRACE_GCOV_ENABLE
|
||||||
|
|
||||||
|
30
components/esp_rom/include/esp_rom_libc_stubs.h
Normal file
30
components/esp_rom/include/esp_rom_libc_stubs.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
#include "esp32/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
#include "esp32s2/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32S3
|
||||||
|
#include "esp32s3/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||||
|
#include "esp32c3/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||||
|
#include "esp32c2/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||||
|
#include "esp32c6/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C61 //TODO: IDF-9526, refactor this
|
||||||
|
#include "esp32c61/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C5
|
||||||
|
#include "esp32c5/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32H2
|
||||||
|
#include "esp32h2/rom/libc_stubs.h"
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32P4
|
||||||
|
#include "esp32p4/rom/libc_stubs.h"
|
||||||
|
#endif
|
@ -20,30 +20,9 @@
|
|||||||
#include "esp_attr.h"
|
#include "esp_attr.h"
|
||||||
#include "soc/soc_caps.h"
|
#include "soc/soc_caps.h"
|
||||||
#include "esp_rom_caps.h"
|
#include "esp_rom_caps.h"
|
||||||
|
#include "esp_rom_libc_stubs.h"
|
||||||
#include "esp_private/startup_internal.h"
|
#include "esp_private/startup_internal.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
#include "esp32/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
|
||||||
#include "esp32s2/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32S3
|
|
||||||
#include "esp32s3/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C3
|
|
||||||
#include "esp32c3/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C2
|
|
||||||
#include "esp32c2/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C6
|
|
||||||
#include "esp32c6/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C61 //TODO: IDF-9526, refactor this
|
|
||||||
#include "esp32c61/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32C5
|
|
||||||
#include "esp32c5/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32H2
|
|
||||||
#include "esp32h2/rom/libc_stubs.h"
|
|
||||||
#elif CONFIG_IDF_TARGET_ESP32P4
|
|
||||||
#include "esp32p4/rom/libc_stubs.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int _printf_float(struct _reent *rptr,
|
extern int _printf_float(struct _reent *rptr,
|
||||||
void *pdata,
|
void *pdata,
|
||||||
FILE * fp,
|
FILE * fp,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user