1choice ESP32C2_REV_MIN
2    prompt "Minimum Supported ESP32-C2 Revision"
3    default ESP32C2_REV_MIN_1
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 ESP32C2_REV_MIN_1
13        bool "Rev v1.0 (ECO1)"
14    config ESP32C2_REV_MIN_1_1
15        bool "Rev v1.1 (ECO2)"
16    config ESP32C2_REV_MIN_200
17        bool "Rev v2.0 (ECO4)"
18endchoice
19
20config ESP32C2_REV_MIN_FULL
21    int
22    default 100 if ESP32C2_REV_MIN_1
23    default 101 if ESP32C2_REV_MIN_1_1
24    default 200 if ESP32C2_REV_MIN_200
25
26config ESP_REV_MIN_FULL
27    int
28    default ESP32C2_REV_MIN_FULL
29
30    #
31    # MAX Revision
32    #
33
34    comment "Maximum Supported ESP32-C2 Revision (Rev v2.99)"
35    # Maximum revision that IDF supports.
36    # It can not be changed by user.
37    # Only Espressif can change it when a new version will be supported in IDF.
38    # Supports all chips starting from ESP32C2_REV_MIN_FULL to ESP32C2_REV_MAX_FULL
39
40config ESP32C2_REV_MAX_FULL
41    int
42    default 299
43    # keep in sync the "Maximum Supported Revision" description with this value
44
45config ESP_REV_MAX_FULL
46    int
47    default ESP32C2_REV_MAX_FULL
48