1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "soc/dedic_gpio_periph.h"
16 #include "soc/gpio_sig_map.h"
17 
18 const dedic_gpio_signal_conn_t dedic_gpio_periph_signals = {
19     .module = PERIPH_DEDIC_GPIO_MODULE,
20     .irq = ETS_DEDICATED_GPIO_INTR_SOURCE,
21     .cores = {
22         [0] = {
23             .in_sig_per_channel = {
24                 [0] = PRO_ALONEGPIO_IN0_IDX,
25                 [1] = PRO_ALONEGPIO_IN1_IDX,
26                 [2] = PRO_ALONEGPIO_IN2_IDX,
27                 [3] = PRO_ALONEGPIO_IN3_IDX,
28                 [4] = PRO_ALONEGPIO_IN4_IDX,
29                 [5] = PRO_ALONEGPIO_IN5_IDX,
30                 [6] = PRO_ALONEGPIO_IN6_IDX,
31                 [7] = PRO_ALONEGPIO_IN7_IDX,
32             },
33             .out_sig_per_channel = {
34                 [0] = PRO_ALONEGPIO_OUT0_IDX,
35                 [1] = PRO_ALONEGPIO_OUT1_IDX,
36                 [2] = PRO_ALONEGPIO_OUT2_IDX,
37                 [3] = PRO_ALONEGPIO_OUT3_IDX,
38                 [4] = PRO_ALONEGPIO_OUT4_IDX,
39                 [5] = PRO_ALONEGPIO_OUT5_IDX,
40                 [6] = PRO_ALONEGPIO_OUT6_IDX,
41                 [7] = PRO_ALONEGPIO_OUT7_IDX,
42             }
43         },
44     },
45 };
46