• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015-2019 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/i2s_periph.h"
16 #include "soc/gpio_sig_map.h"
17 
18 /*
19  Bunch of constants for every I2S peripheral: GPIO signals, irqs, hw addr of registers etc
20 */
21 const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
22     {
23         .o_bck_in_sig = I2S0O_BCK_IN_IDX,
24         .o_ws_in_sig = I2S0O_WS_IN_IDX,
25         .o_bck_out_sig = I2S0O_BCK_OUT_IDX,
26         .o_ws_out_sig = I2S0O_WS_OUT_IDX,
27         .o_data_out_sig = I2S0O_DATA_OUT23_IDX,
28         .i_bck_in_sig = I2S0I_BCK_OUT_IDX,
29         .i_ws_in_sig = I2S0I_WS_OUT_IDX,
30         .i_bck_out_sig = I2S0I_BCK_IN_IDX,
31         .i_ws_out_sig = I2S0I_WS_IN_IDX,
32         .i_data_in_sig = I2S0I_DATA_IN15_IDX,
33         .irq = ETS_I2S0_INTR_SOURCE,
34         .module = PERIPH_I2S0_MODULE,
35     },
36     {
37         .o_bck_in_sig = I2S1O_BCK_IN_IDX,
38         .o_ws_in_sig = I2S1O_WS_IN_IDX,
39         .o_bck_out_sig = I2S1O_BCK_OUT_IDX,
40         .o_ws_out_sig = I2S1O_WS_OUT_IDX,
41         .o_data_out_sig = I2S1O_DATA_OUT23_IDX,
42         .i_bck_in_sig = I2S1I_BCK_OUT_IDX,
43         .i_ws_in_sig = I2S1I_WS_OUT_IDX,
44         .i_bck_out_sig = I2S1I_BCK_IN_IDX,
45         .i_ws_out_sig = I2S1I_WS_IN_IDX,
46         .i_data_in_sig = I2S1I_DATA_IN15_IDX,
47         .irq = ETS_I2S1_INTR_SOURCE,
48         .module = PERIPH_I2S1_MODULE,
49     }
50 };
51