Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / all-clusters-app / esp32 / main / Kconfig.projbuild
1 #
2 #    Copyright (c) 2020 Project CHIP Authors
3 #    All rights reserved.
4 #
5 #    Licensed under the Apache License, Version 2.0 (the "License");
6 #    you may not use this file except in compliance with the License.
7 #    You may obtain a copy of the License at
8 #
9 #        http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #    Unless required by applicable law or agreed to in writing, software
12 #    distributed under the License is distributed on an "AS IS" BASIS,
13 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #    See the License for the specific language governing permissions and
15 #    limitations under the License.
16 #
17 #    Description:
18 #      Configuration options CHIP ESP32 demo application.
19 #
20
21 menu "Demo"
22
23     choice
24         prompt "Device Type"
25         default DEVICE_TYPE_ESP32_DEVKITC
26         help
27             Specifies the type of ESP32 device.
28
29             Note that the "ESP32-DevKitC" choice is compatible with a number of clone devices
30             available from third-party manufacturers.
31
32         config DEVICE_TYPE_ESP32_DEVKITC
33             bool "ESP32-DevKitC"
34         config DEVICE_TYPE_ESP32_WROVER_KIT
35             bool "ESP32-WROVER-KIT_V4.1"
36         config DEVICE_TYPE_M5STACK
37             bool "M5Stack"
38     endchoice
39
40     choice
41       prompt "Rendezvous Mode"
42       default RENDEZVOUS_MODE_BLE
43       help
44           Specifies the Rendezvous mode of the peripheral.
45
46       config RENDEZVOUS_MODE_BYPASS
47           bool "Bypass"
48       config RENDEZVOUS_MODE_WIFI
49           bool "Wi-Fi"
50       config RENDEZVOUS_MODE_BLE
51           bool "BLE"
52       config RENDEZVOUS_MODE_THREAD
53           bool "Thread"
54       config RENDEZVOUS_MODE_ETHERNET
55           bool "Ethernet"
56     endchoice
57
58     config ECHO_HOST_IP
59         string "IPV4 address"
60         default "127.0.0.1"
61         depends on USE_ECHO_CLIENT
62         help
63             The IPV4 Address of the ECHO Server.
64
65     # NOTE: This config is not displayed as a input in the Kconfig menu, as its value is
66     # entirely derived from the Device Type choice.  However the CONFIG_EXAMPLE_DISPLAY_TYPE
67     # define that is produced is needed to configure the TFT library correctly.
68     config TFT_PREDEFINED_DISPLAY_TYPE
69         int
70         range 0 5
71         default 0 if DEVICE_TYPE_ESP32_DEVKITC
72         default 3 if DEVICE_TYPE_M5STACK
73         default 4 if DEVICE_TYPE_ESP32_WROVER_KIT
74
75     config RENDEZVOUS_MODE
76        int
77        range 0 8
78        default 0 if RENDEZVOUS_MODE_BYPASS
79        default 1 if RENDEZVOUS_MODE_WIFI
80        default 2 if RENDEZVOUS_MODE_BLE
81        default 4 if RENDEZVOUS_MODE_THREAD
82        default 8 if RENDEZVOUS_MODE_ETHERNET
83
84     config DISPLAY_AUTO_OFF
85         bool "Automatically turn off the M5Stack's Display after a few seconds"
86         default "y"
87         depends on DEVICE_TYPE_M5STACK
88         help
89             To reduce wear and heat the M5Stack's Display is automatically switched off after a few seconds
90
91
92 endmenu