2021-11-06 05:25:49 -04:00
|
|
|
/*
|
2022-01-17 21:32:56 -05:00
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:25:49 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "soc/i2c_periph.h"
|
|
|
|
#include "soc/gpio_sig_map.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
Bunch of constants for every I2C peripheral: GPIO signals, irqs, hw addr of registers etc
|
|
|
|
*/
|
|
|
|
const i2c_signal_conn_t i2c_periph_signal[SOC_I2C_NUM] = {
|
|
|
|
{
|
|
|
|
.sda_out_sig = I2CEXT0_SDA_OUT_IDX,
|
|
|
|
.sda_in_sig = I2CEXT0_SDA_IN_IDX,
|
|
|
|
.scl_out_sig = I2CEXT0_SCL_OUT_IDX,
|
|
|
|
.scl_in_sig = I2CEXT0_SCL_IN_IDX,
|
|
|
|
.irq = ETS_I2C_EXT0_INTR_SOURCE,
|
|
|
|
},
|
|
|
|
};
|