From 1490424ab6f61413e00ca4340650dbc10303304f Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Tue, 13 Jun 2023 17:31:04 +0800 Subject: [PATCH] esp32c3: add development support option for v1.0 chips --- .../esp_hw_support/port/esp32c2/Kconfig.hw_support | 12 ++++++------ .../esp_hw_support/port/esp32c3/Kconfig.hw_support | 10 +++++++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/components/esp_hw_support/port/esp32c2/Kconfig.hw_support b/components/esp_hw_support/port/esp32c2/Kconfig.hw_support index e5c05941ae..eb203c654e 100644 --- a/components/esp_hw_support/port/esp32c2/Kconfig.hw_support +++ b/components/esp_hw_support/port/esp32c2/Kconfig.hw_support @@ -36,14 +36,14 @@ config ESP_REV_MIN_FULL config ESP32C2_REV_MAX_FULL int - default 199 + default 299 if ESP32C2_REV2_DEVELOPMENT + default 199 if !ESP32C2_REV2_DEVELOPMENT # keep in sync the "Maximum Supported Revision" description with this value +config ESP_REV_MAX_FULL + int + default ESP32C2_REV_MAX_FULL + config ESP32C2_REV2_DEVELOPMENT bool "Develop on ESP32-C2 v2.0 (Preview)" default y if IDF_CI_BUILD - -config ESP_REV_MAX_FULL - int - default 299 if ESP32C2_REV2_DEVELOPMENT - default ESP32C2_REV_MAX_FULL if !ESP32C2_REV2_DEVELOPMENT diff --git a/components/esp_hw_support/port/esp32c3/Kconfig.hw_support b/components/esp_hw_support/port/esp32c3/Kconfig.hw_support index 050f392399..e030e7594f 100644 --- a/components/esp_hw_support/port/esp32c3/Kconfig.hw_support +++ b/components/esp_hw_support/port/esp32c3/Kconfig.hw_support @@ -19,6 +19,8 @@ choice ESP32C3_REV_MIN bool "Rev v0.3 (ECO3)" config ESP32C3_REV_MIN_4 bool "Rev v0.4 (ECO4)" + config ESP32C3_REV_MIN_100 + bool "Rev v1.0 (ECO6)" endchoice config ESP32C3_REV_MIN_FULL @@ -28,6 +30,7 @@ config ESP32C3_REV_MIN_FULL default 2 if ESP32C3_REV_MIN_2 default 3 if ESP32C3_REV_MIN_3 default 4 if ESP32C3_REV_MIN_4 + default 100 if ESP32C3_REV_MIN_100 config ESP_REV_MIN_FULL int @@ -45,9 +48,14 @@ config ESP_REV_MIN_FULL config ESP32C3_REV_MAX_FULL int - default 99 + default 199 if ESP32C3_REV100_DEVELOPMENT + default 99 if !ESP32C3_REV100_DEVELOPMENT # keep in sync the "Maximum Supported Revision" description with this value config ESP_REV_MAX_FULL int default ESP32C3_REV_MAX_FULL + +config ESP32C3_REV100_DEVELOPMENT + bool "Develop on ESP32-C3 v1.0 (Preview)" + default y if IDF_CI_BUILD