1# ESP32 I2C configuration options
2
3# Copyright (c) 2017 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig I2C_ESP32
7	bool "ESP32 I2C"
8	depends on SOC_ESP32
9	select GPIO_ESP32
10	help
11	  Enables the ESP32 I2C driver
12
13if I2C_ESP32
14
15config I2C_0
16	bool "Enable I2C Port 0"
17
18config I2C_1
19	bool "Enable I2C Port 1"
20
21config I2C_ESP32_TIMEOUT
22	int "I2C timeout to receive a data bit in APB clock cycles"
23	default 200000
24
25if I2C_0
26
27config I2C_ESP32_0_TX_LSB_FIRST
28	bool "Port 0 Transmit LSB first"
29
30config I2C_ESP32_0_RX_LSB_FIRST
31	bool "Port 0 Receive LSB first"
32
33endif # I2C_0
34
35if I2C_1
36
37config I2C_ESP32_1_TX_LSB_FIRST
38	bool "Port 1 Transmit LSB first"
39
40config I2C_ESP32_1_RX_LSB_FIRST
41	bool "Port 1 Receive LSB first"
42
43endif # I2C_1
44
45endif # I2C_ESP32
46