1choice ESP32H2_REV_MIN
2    prompt "Minimum Supported ESP32-H2 Revision"
3    default ESP32H2_REV_MIN_0
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 ESP32H2_REV_MIN_0
13        bool "Rev v0.0"
14    config ESP32H2_REV_MIN_1
15        bool "Rev v0.1 (ECO1)"
16    config ESP32H2_REV_MIN_2
17        bool "Rev v0.2 (ECO2)"
18    config ESP32H2_REV_MIN_102
19        bool "Rev v1.2"
20endchoice
21
22config ESP32H2_REV_MIN_FULL
23    int
24    default 0 if ESP32H2_REV_MIN_0
25    default 1 if ESP32H2_REV_MIN_1
26    default 2 if ESP32H2_REV_MIN_2
27    default 102 if ESP32H2_REV_MIN_102
28
29config ESP_REV_MIN_FULL
30    int
31    default ESP32H2_REV_MIN_FULL
32
33    #
34    # MAX Revision
35    #
36
37    comment "Maximum Supported ESP32-H2 Revision (Rev v1.99)"
38    # Maximum revision that IDF supports.
39    # It can not be changed by user.
40    # Only Espressif can change it when a new version will be supported in IDF.
41    # Supports all chips starting from ESP32H2_REV_MIN_FULL to ESP32H2_REV_MAX_FULL
42
43config ESP32H2_REV_MAX_FULL
44    int
45    default 199
46    # keep in sync the "Maximum Supported Revision" description with this value
47
48config ESP_REV_MAX_FULL
49    int
50    default ESP32H2_REV_MAX_FULL
51
52config ESP32H2_REV100_DEVELOPMENT
53    bool "Develop on ESP32-H2 v1.0 and above (Preview)"
54    default y if IDF_CI_BUILD
55