1choice ESP32C3_REV_MIN
2    prompt "Minimum Supported ESP32-C3 Revision"
3    default ESP32C3_REV_MIN_3
4    help
5        Required minimum chip revision. ESP-IDF will check for it and
6        reject to boot if the chip revision fails the check.
7        This ensures the chip used will have some modifications (features, or bugfixes).
8
9        The complied binary will only support chips above this revision,
10        this will also help to reduce binary size.
11
12    config ESP32C3_REV_MIN_0
13        bool "Rev v0.0 (ECO0)"
14    config ESP32C3_REV_MIN_1
15        bool "Rev v0.1 (ECO1)"
16    config ESP32C3_REV_MIN_2
17        bool "Rev v0.2 (ECO2)"
18    config ESP32C3_REV_MIN_3
19        bool "Rev v0.3 (ECO3)"
20    config ESP32C3_REV_MIN_4
21        bool "Rev v0.4 (ECO4)"
22    config ESP32C3_REV_MIN_101
23        bool "Rev v1.1"
24endchoice
25
26config ESP32C3_REV_MIN_FULL
27    int
28    default 0 if ESP32C3_REV_MIN_0
29    default 1 if ESP32C3_REV_MIN_1
30    default 2 if ESP32C3_REV_MIN_2
31    default 3 if ESP32C3_REV_MIN_3
32    default 4 if ESP32C3_REV_MIN_4
33    default 101 if ESP32C3_REV_MIN_101
34
35config ESP_REV_MIN_FULL
36    int
37    default ESP32C3_REV_MIN_FULL
38
39    #
40    # MAX Revision
41    #
42
43    comment "Maximum Supported ESP32-C3 Revision (Rev v1.99)"
44    # Maximum revision that IDF supports.
45    # It can not be changed by user.
46    # Only Espressif can change it when a new version will be supported in IDF.
47    # Supports all chips starting from ESP32C3_REV_MIN_FULL to ESP32C3_REV_MAX_FULL
48
49config ESP32C3_REV_MAX_FULL
50    int
51    default 199
52    # keep in sync the "Maximum Supported Revision" description with this value
53
54config ESP_REV_MAX_FULL
55    int
56    default ESP32C3_REV_MAX_FULL
57