1 /* 2 * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "soc/i2c_periph.h" 8 #include "soc/gpio_sig_map.h" 9 10 /* 11 Bunch of constants for every I2C peripheral: GPIO signals, irqs, hw addr of registers etc 12 */ 13 const i2c_signal_conn_t i2c_periph_signal[SOC_I2C_NUM] = { 14 { 15 .sda_out_sig = I2CEXT0_SDA_OUT_IDX, 16 .sda_in_sig = I2CEXT0_SDA_IN_IDX, 17 .scl_out_sig = I2CEXT0_SCL_OUT_IDX, 18 .scl_in_sig = I2CEXT0_SCL_IN_IDX, 19 .irq = ETS_I2C_EXT0_INTR_SOURCE, 20 .module = PERIPH_I2C0_MODULE, 21 }, 22 }; 23