@@ -40,4 +40,201 @@ menu "Wireless Coexistence"
4040 If enabled, coexist power management will be enabled.
4141 endif
4242
43+ config ESP_COEX_GPIO_DEBUG
44+ bool "GPIO debugging for coexistence"
45+ default n
46+ depends on !PM_SLP_DISABLE_GPIO && !PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
47+ help
48+ Support coexistence GPIO debugging
49+
50+ if (ESP_COEX_GPIO_DEBUG)
51+
52+ choice ESP_COEX_GPIO_DEBUG_DIAG
53+ prompt "Debugging Diagram"
54+ default ESP_COEX_GPIO_DEBUG_DIAG_GENERAL
55+ help
56+ Select type of debugging diagram
57+
58+ config ESP_COEX_GPIO_DEBUG_DIAG_GENERAL
59+ bool "General"
60+ config ESP_COEX_GPIO_DEBUG_DIAG_WIFI
61+ bool "Wi-Fi"
62+
63+ endchoice
64+
65+ config ESP_COEX_GPIO_DEBUG_IO_COUNT
66+ int "Max number of debugging GPIOs"
67+ range 0 12
68+ default 12
69+
70+ config ESP_COEX_GPIO_DEBUG_IO_IDX0
71+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 0)
72+ int "Actual IO num for Debug IO ID0"
73+ range 0 SOC_GPIO_OUT_RANGE_MAX
74+ default 15 if IDF_TARGET_ESP32
75+ default 4 if IDF_TARGET_ESP32S2
76+ default 19 if IDF_TARGET_ESP32C3
77+ default 4 if IDF_TARGET_ESP32S3
78+ default 18 if IDF_TARGET_ESP32C2
79+ default 4 if IDF_TARGET_ESP32C6
80+ default 2 if IDF_TARGET_ESP32C5
81+ default 4 if IDF_TARGET_ESP32C61
82+ default 1
83+
84+ config ESP_COEX_GPIO_DEBUG_IO_IDX1
85+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 1)
86+ int "Actual IO num for Debug IO ID1"
87+ range 0 SOC_GPIO_OUT_RANGE_MAX
88+ default 2 if IDF_TARGET_ESP32
89+ default 5 if IDF_TARGET_ESP32S2
90+ default 18 if IDF_TARGET_ESP32C3
91+ default 5 if IDF_TARGET_ESP32S3
92+ default 4 if IDF_TARGET_ESP32C2
93+ default 5 if IDF_TARGET_ESP32C6
94+ default 3 if IDF_TARGET_ESP32C5
95+ default 5 if IDF_TARGET_ESP32C61
96+ default 2
97+
98+ config ESP_COEX_GPIO_DEBUG_IO_IDX2
99+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 2)
100+ int "Actual IO num for Debug IO ID2"
101+ range 0 SOC_GPIO_OUT_RANGE_MAX
102+ default 0 if IDF_TARGET_ESP32
103+ default 6 if IDF_TARGET_ESP32S2
104+ default 4 if IDF_TARGET_ESP32C3
105+ default 6 if IDF_TARGET_ESP32S3
106+ default 5 if IDF_TARGET_ESP32C2
107+ default 6 if IDF_TARGET_ESP32C6
108+ default 4 if IDF_TARGET_ESP32C5
109+ default 6 if IDF_TARGET_ESP32C61
110+ default 3
111+
112+ config ESP_COEX_GPIO_DEBUG_IO_IDX3
113+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 3)
114+ int "Actual IO num for Debug IO ID3"
115+ range 0 SOC_GPIO_OUT_RANGE_MAX
116+ default 4 if IDF_TARGET_ESP32
117+ default 7 if IDF_TARGET_ESP32S2
118+ default 5 if IDF_TARGET_ESP32C3
119+ default 7 if IDF_TARGET_ESP32S3
120+ default 6 if IDF_TARGET_ESP32C2
121+ default 7 if IDF_TARGET_ESP32C6
122+ default 5 if IDF_TARGET_ESP32C5
123+ default 7 if IDF_TARGET_ESP32C61
124+ default 4
125+
126+ config ESP_COEX_GPIO_DEBUG_IO_IDX4
127+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 4)
128+ int "Actual IO num for Debug IO ID4"
129+ range 0 SOC_GPIO_OUT_RANGE_MAX
130+ default 5 if IDF_TARGET_ESP32
131+ default 8 if IDF_TARGET_ESP32S2
132+ default 6 if IDF_TARGET_ESP32C3
133+ default 15 if IDF_TARGET_ESP32S3
134+ default 7 if IDF_TARGET_ESP32C2
135+ default 8 if IDF_TARGET_ESP32C6
136+ default 27 if IDF_TARGET_ESP32C5
137+ default 0 if IDF_TARGET_ESP32C61
138+ default 5
139+
140+ config ESP_COEX_GPIO_DEBUG_IO_IDX5
141+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 5)
142+ int "Actual IO num for Debug IO ID5"
143+ range 0 SOC_GPIO_OUT_RANGE_MAX
144+ default 18 if IDF_TARGET_ESP32
145+ default 9 if IDF_TARGET_ESP32S2
146+ default 7 if IDF_TARGET_ESP32C3
147+ default 16 if IDF_TARGET_ESP32S3
148+ default 8 if IDF_TARGET_ESP32C2
149+ default 10 if IDF_TARGET_ESP32C6
150+ default 6 if IDF_TARGET_ESP32C5
151+ default 1 if IDF_TARGET_ESP32C61
152+ default 6
153+
154+ config ESP_COEX_GPIO_DEBUG_IO_IDX6
155+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 6)
156+ int "Actual IO num for Debug IO ID6"
157+ range 0 SOC_GPIO_OUT_RANGE_MAX
158+ default 19 if IDF_TARGET_ESP32
159+ default 10 if IDF_TARGET_ESP32S2
160+ default 8 if IDF_TARGET_ESP32C3
161+ default 17 if IDF_TARGET_ESP32S3
162+ default 9 if IDF_TARGET_ESP32C2
163+ default 11 if IDF_TARGET_ESP32C6
164+ default 7 if IDF_TARGET_ESP32C5
165+ default 8 if IDF_TARGET_ESP32C61
166+ default 7
167+
168+ config ESP_COEX_GPIO_DEBUG_IO_IDX7
169+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 7)
170+ int "Actual IO num for Debug IO ID7"
171+ range 0 SOC_GPIO_OUT_RANGE_MAX
172+ default 22 if IDF_TARGET_ESP32
173+ default 11 if IDF_TARGET_ESP32S2
174+ default 9 if IDF_TARGET_ESP32C3
175+ default 18 if IDF_TARGET_ESP32S3
176+ default 10 if IDF_TARGET_ESP32C2
177+ default 2 if IDF_TARGET_ESP32C6
178+ default 26 if IDF_TARGET_ESP32C5
179+ default 2 if IDF_TARGET_ESP32C61
180+ default 8
181+
182+ config ESP_COEX_GPIO_DEBUG_IO_IDX8
183+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 8)
184+ int "Actual IO num for Debug IO ID8"
185+ range 0 SOC_GPIO_OUT_RANGE_MAX
186+ default 13 if IDF_TARGET_ESP32
187+ default 12 if IDF_TARGET_ESP32S2
188+ default 10 if IDF_TARGET_ESP32C3
189+ default 10 if IDF_TARGET_ESP32S3
190+ default 1 if IDF_TARGET_ESP32C2
191+ default 15 if IDF_TARGET_ESP32C6
192+ default 24 if IDF_TARGET_ESP32C5
193+ default 3 if IDF_TARGET_ESP32C61
194+ default 9
195+
196+ config ESP_COEX_GPIO_DEBUG_IO_IDX9
197+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 9)
198+ int "Actual IO num for Debug IO ID9"
199+ range 0 SOC_GPIO_OUT_RANGE_MAX
200+ default 12 if IDF_TARGET_ESP32
201+ default 13 if IDF_TARGET_ESP32S2
202+ default 0 if IDF_TARGET_ESP32C3
203+ default 11 if IDF_TARGET_ESP32S3
204+ default 0 if IDF_TARGET_ESP32C2
205+ default 23 if IDF_TARGET_ESP32C6
206+ default 23 if IDF_TARGET_ESP32C5
207+ default 9 if IDF_TARGET_ESP32C61
208+ default 10
209+
210+ config ESP_COEX_GPIO_DEBUG_IO_IDX10
211+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 10)
212+ int "Actual IO num for Debug IO ID10"
213+ range 0 SOC_GPIO_OUT_RANGE_MAX
214+ default 14 if IDF_TARGET_ESP32
215+ default 14 if IDF_TARGET_ESP32S2
216+ default 3 if IDF_TARGET_ESP32C3
217+ default 12 if IDF_TARGET_ESP32S3
218+ default 3 if IDF_TARGET_ESP32C2
219+ default 22 if IDF_TARGET_ESP32C6
220+ default 10 if IDF_TARGET_ESP32C5
221+ default 13 if IDF_TARGET_ESP32C61
222+ default 11
223+
224+ config ESP_COEX_GPIO_DEBUG_IO_IDX11
225+ depends on (ESP_COEX_GPIO_DEBUG_IO_COUNT > 11)
226+ int "Actual IO num for Debug IO ID11"
227+ range 0 SOC_GPIO_OUT_RANGE_MAX
228+ default 27 if IDF_TARGET_ESP32
229+ default 15 if IDF_TARGET_ESP32S2
230+ default 2 if IDF_TARGET_ESP32C3
231+ default 13 if IDF_TARGET_ESP32S3
232+ default 2 if IDF_TARGET_ESP32C2
233+ default 21 if IDF_TARGET_ESP32C6
234+ default 9 if IDF_TARGET_ESP32C5
235+ default 12 if IDF_TARGET_ESP32C61
236+ default 12
237+
238+ endif
239+
43240endmenu # Wireless Coexistence
0 commit comments