1 /*
2 * SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include "private/esp_coexist_debug.h"
8
9 #if CONFIG_ESP_COEX_GPIO_DEBUG
10 #ifdef COEX_GPIO_DEBUG_DIAG_GENERAL
diagram_bind_io_to_evt(void)11 void diagram_bind_io_to_evt(void) {
12 /* Bind IO to coexist evt */
13 #if CONFIG_IDF_TARGET_ESP32
14 coex_bind_io_to_evt(0, 8);
15 coex_bind_io_to_evt(0, 11);
16 coex_bind_io_to_evt(1, 16);
17 #else
18 coex_bind_io_to_evt(0, 0);
19 coex_bind_io_to_evt(1, 4);
20 #endif
21 /* Bind IO to Wi-Fi evt */
22 wifi_bind_io_to_evt(2, 9);
23 wifi_bind_io_to_evt(3, 10);
24 wifi_bind_io_to_evt(4, 11);
25
26 wifi_bind_io_to_evt(5, 0);
27 wifi_bind_io_to_evt(6, 1);
28 }
29 #elif defined(COEX_GPIO_DEBUG_DIAG_WIFI)
diagram_bind_io_to_evt(void)30 void diagram_bind_io_to_evt(void) {
31 /* Bind IO to coexist evt */
32 #if CONFIG_IDF_TARGET_ESP32
33 coex_bind_io_to_evt(0, 8);
34 coex_bind_io_to_evt(0, 11);
35 coex_bind_io_to_evt(1, 16);
36 #else
37 coex_bind_io_to_evt(0, 0);
38 coex_bind_io_to_evt(1, 4);
39 #endif
40 /* Bind IO to Wi-Fi evt */
41 wifi_bind_io_to_evt(2, 9);
42 wifi_bind_io_to_evt(3, 10);
43 wifi_bind_io_to_evt(4, 11);
44
45 wifi_bind_io_to_evt(5, 0);
46 wifi_bind_io_to_evt(6, 1);
47
48 wifi_bind_io_to_evt(7, 3);
49 wifi_bind_io_to_evt(8, 4);
50 wifi_bind_io_to_evt(9, 5);
51 wifi_bind_io_to_evt(10, 6);
52 wifi_bind_io_to_evt(11, 7);
53 }
54 #else
diagram_bind_io_to_evt(void)55 void diagram_bind_io_to_evt(void) {
56 }
57 #endif
58
59 #endif
60