mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
change(gen_soc_caps_kconfig): check if config options have the same type
Also introduce ignore pragma to prevent some #defines from .h files to be translated to Kconfig files.
This commit is contained in:
@@ -3,18 +3,6 @@
|
||||
# using gen_soc_caps_kconfig.py, do not edit manually
|
||||
#####################################################
|
||||
|
||||
config SOC_BROWNOUT_RESET_SUPPORTED
|
||||
string
|
||||
default "Not determined"
|
||||
|
||||
config SOC_TWAI_BRP_DIV_SUPPORTED
|
||||
string
|
||||
default "Not determined"
|
||||
|
||||
config SOC_DPORT_WORKAROUND
|
||||
string
|
||||
default "Not determined"
|
||||
|
||||
config SOC_CAPS_ECO_VER_MAX
|
||||
int
|
||||
default 301
|
||||
@@ -279,6 +267,10 @@ config SOC_ADC_SHARED_POWER
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_BROWNOUT_RESET_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_SHARED_IDCACHE_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
@@ -312,8 +304,8 @@ config SOC_CPU_WATCHPOINTS_NUM
|
||||
default 2
|
||||
|
||||
config SOC_CPU_WATCHPOINT_MAX_REGION_SIZE
|
||||
int
|
||||
default 64
|
||||
hex
|
||||
default 0x40
|
||||
|
||||
config SOC_DAC_CHAN_NUM
|
||||
int
|
||||
@@ -804,8 +796,8 @@ config SOC_MPI_MEM_BLOCKS_NUM
|
||||
default 4
|
||||
|
||||
config SOC_MPI_OPERATIONS_NUM
|
||||
bool
|
||||
default y
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_RSA_MAX_BIT_LEN
|
||||
int
|
||||
@@ -828,8 +820,8 @@ config SOC_SECURE_BOOT_V1
|
||||
default y
|
||||
|
||||
config SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS
|
||||
bool
|
||||
default y
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_FLASH_ENCRYPTED_XTS_AES_BLOCK_MAX
|
||||
int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -54,9 +54,9 @@
|
||||
|
||||
// Define warning strings here for ECO-ed features to show error when they are used without being
|
||||
// defined correctly
|
||||
#define SOC_BROWNOUT_RESET_SUPPORTED "Not determined"
|
||||
#define SOC_TWAI_BRP_DIV_SUPPORTED "Not determined"
|
||||
#define SOC_DPORT_WORKAROUND "Not determined"
|
||||
#define SOC_BROWNOUT_RESET_SUPPORTED "Not determined" // [gen_soc_caps:ignore]
|
||||
#define SOC_TWAI_BRP_DIV_SUPPORTED "Not determined" // [gen_soc_caps:ignore]
|
||||
#define SOC_DPORT_WORKAROUND "Not determined" // [gen_soc_caps:ignore]
|
||||
#endif
|
||||
|
||||
/*-------------------------- COMMON CAPS ---------------------------------------*/
|
||||
@@ -107,7 +107,7 @@
|
||||
#define SOC_PM_SUPPORTED 1
|
||||
|
||||
#if SOC_CAPS_ECO_VER < 200
|
||||
#define SOC_DPORT_WORKAROUND 1
|
||||
#define SOC_DPORT_WORKAROUND 1 // [gen_soc_caps:ignore]
|
||||
#endif // SOC_CAPS_ECO_VER < 200
|
||||
#define SOC_DPORT_WORKAROUND_DIS_INTERRUPT_LVL (5U)
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
|
||||
#define SOC_CPU_BREAKPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 64 // bytes
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 0x40 // bytes
|
||||
|
||||
/*-------------------------- DAC CAPS ----------------------------------------*/
|
||||
#define SOC_DAC_CHAN_NUM 2
|
||||
@@ -380,7 +380,7 @@
|
||||
|
||||
/*--------------------------- MPI CAPS ---------------------------------------*/
|
||||
#define SOC_MPI_MEM_BLOCKS_NUM (4)
|
||||
#define SOC_MPI_OPERATIONS_NUM (1)
|
||||
#define SOC_MPI_OPERATIONS_NUM (1U)
|
||||
|
||||
/*--------------------------- RSA CAPS ---------------------------------------*/
|
||||
#define SOC_RSA_MAX_BIT_LEN (4096)
|
||||
@@ -398,7 +398,7 @@
|
||||
* Hence, for now we are handling this special capability in bootloader "security" configuration itself.
|
||||
*/
|
||||
#define SOC_SECURE_BOOT_V1 1
|
||||
#define SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS 1
|
||||
#define SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS (1U)
|
||||
|
||||
/*-------------------------- Flash Encryption CAPS----------------------------*/
|
||||
#define SOC_FLASH_ENCRYPTED_XTS_AES_BLOCK_MAX (32)
|
||||
|
||||
@@ -348,8 +348,8 @@ config SOC_CPU_WATCHPOINTS_NUM
|
||||
default 2
|
||||
|
||||
config SOC_CPU_WATCHPOINT_MAX_REGION_SIZE
|
||||
int
|
||||
default 64
|
||||
hex
|
||||
default 0x40
|
||||
|
||||
config SOC_DAC_CHAN_NUM
|
||||
int
|
||||
@@ -768,8 +768,8 @@ config SOC_MEMSPI_SRC_FREQ_20M_SUPPORTED
|
||||
default y
|
||||
|
||||
config SOC_SYSTIMER_COUNTER_NUM
|
||||
bool
|
||||
default y
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_SYSTIMER_ALARM_NUM
|
||||
int
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -22,8 +22,8 @@
|
||||
* x 0`, it's still a risk.)
|
||||
*
|
||||
* ECO & exceptions:
|
||||
* For ECO-ed booleans, `#define x "Not determined"` for them. This will cause error when used by
|
||||
* `#if x` and `#if !x`, making these missing definitions more obvious.
|
||||
* For ECO-ed booleans, `#define x "Not determined" // [gen_soc_caps:ignore]` for them. This will cause error when used by
|
||||
* `#if x` and `#if !x`, making these missing definitions more obvious. Ignore pragma ensures those values are not converted into config options.
|
||||
*
|
||||
* These defines are parsed and imported as kconfig variables via the script
|
||||
* `tools/gen_soc_caps_kconfig/gen_soc_caps_kconfig.py`
|
||||
@@ -148,7 +148,7 @@
|
||||
|
||||
#define SOC_CPU_BREAKPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 64 // bytes
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 0x40 // bytes
|
||||
|
||||
/*-------------------------- DAC CAPS ----------------------------------------*/
|
||||
#define SOC_DAC_CHAN_NUM 2
|
||||
@@ -327,7 +327,7 @@
|
||||
#define SOC_MEMSPI_SRC_FREQ_20M_SUPPORTED 1
|
||||
|
||||
/*-------------------------- SYSTIMER CAPS ----------------------------------*/
|
||||
#define SOC_SYSTIMER_COUNTER_NUM 1 // Number of counter units
|
||||
#define SOC_SYSTIMER_COUNTER_NUM (1U) // Number of counter units
|
||||
#define SOC_SYSTIMER_ALARM_NUM 3 // Number of alarm units
|
||||
#define SOC_SYSTIMER_BIT_WIDTH_LO 32 // Bit width of systimer low part
|
||||
#define SOC_SYSTIMER_BIT_WIDTH_HI 32 // Bit width of systimer high part
|
||||
|
||||
@@ -412,8 +412,8 @@ config SOC_CPU_WATCHPOINTS_NUM
|
||||
default 2
|
||||
|
||||
config SOC_CPU_WATCHPOINT_MAX_REGION_SIZE
|
||||
int
|
||||
default 64
|
||||
hex
|
||||
default 0x40
|
||||
|
||||
config SOC_SIMD_PREFERRED_DATA_ALIGNMENT
|
||||
int
|
||||
@@ -832,8 +832,8 @@ config SOC_LP_IO_CLOCK_IS_INDEPENDENT
|
||||
default y
|
||||
|
||||
config SOC_SDM_GROUPS
|
||||
bool
|
||||
default y
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_SDM_CHANNELS_PER_GROUP
|
||||
int
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
#define SOC_CPU_BREAKPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINTS_NUM 2
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 64 // bytes
|
||||
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 0x40 // bytes
|
||||
|
||||
#define SOC_SIMD_PREFERRED_DATA_ALIGNMENT 16 // The preferred data alignment accepted by the SIMD instructions, in bytes
|
||||
|
||||
@@ -325,7 +325,7 @@
|
||||
#define SOC_LP_IO_CLOCK_IS_INDEPENDENT 1
|
||||
|
||||
/*-------------------------- Sigma Delta Modulator CAPS -----------------*/
|
||||
#define SOC_SDM_GROUPS 1
|
||||
#define SOC_SDM_GROUPS (1U)
|
||||
#define SOC_SDM_CHANNELS_PER_GROUP 8
|
||||
#define SOC_SDM_CLK_SUPPORT_APB 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user