mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-10 06:31:24 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user