VSF Documented
sdkconfig.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18/*
19 * ESP-IDF compatibility sdkconfig shim.
20 *
21 * ESP-IDF headers reference CONFIG_* macros generated from Kconfig. In VSF
22 * this file maps VSF_ESPIDF_CFG_* switches and reasonable defaults so that
23 * unmodified ESP-IDF application code (which #includes "sdkconfig.h") can
24 * compile against the VSF espidf shim.
25 *
26 * Baseline: ESP-IDF v5.1 public API surface.
27 */
28
29#ifndef __VSF_ESPIDF_SDKCONFIG_H__
30#define __VSF_ESPIDF_SDKCONFIG_H__
31
32#include "../vsf_espidf_cfg.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/* ------------------------------------------------------------------ */
39/* Target identification */
40/* ------------------------------------------------------------------ */
41#define CONFIG_IDF_TARGET_LINUX 1
42#define CONFIG_IDF_TARGET "linux"
43#define CONFIG_IDF_TARGET_ARCH_XTENSA 0
44#define CONFIG_IDF_TARGET_ARCH_RISCV 0
45#define CONFIG_IDF_TARGET_LINUX 1
46
47/* ------------------------------------------------------------------ */
48/* Compiler control (esp_compiler.h / esp_check.h consumers) */
49/* ------------------------------------------------------------------ */
50#define CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT 0
51#define CONFIG_COMPILER_OPTIMIZATION_PERF 0
52#define CONFIG_COMPILER_STATIC_ANALYZER 0
53
54/* ------------------------------------------------------------------ */
55/* SoC capability stubs (consumed by esp_attr.h) */
56/* ------------------------------------------------------------------ */
57#define CONFIG_SOC_RTC_FAST_MEM_SUPPORTED 0
58#define CONFIG_SOC_RTC_SLOW_MEM_SUPPORTED 0
59#define CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY 0
60#define CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY 0
61#define CONFIG_SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE 0
62
63#ifndef CONFIG_CACHE_L1_CACHE_LINE_SIZE
64#define CONFIG_CACHE_L1_CACHE_LINE_SIZE 32
65#endif
66
67/* ------------------------------------------------------------------ */
68/* IDF CI build (esp_attr.h IDF_DEPRECATED) */
69/* ------------------------------------------------------------------ */
70#define CONFIG_IDF_CI_BUILD 0
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif // __VSF_ESPIDF_SDKCONFIG_H__
Generated from commit: vsfteam/vsf@c3767bf