zephyr/drivers/i2c/Kconfig.esp32
Glauber Maroto Ferreira 378278f61d esp32: drivers: interrupt_controller: review I2C interrupt usage
Review I2C interrupt allocation usage.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2021-07-16 07:19:28 -04:00

46 lines
763 B
Plaintext

# ESP32 I2C configuration options
# Copyright (c) 2017 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menuconfig I2C_ESP32
bool "ESP32 I2C"
depends on SOC_ESP32
select GPIO_ESP32
help
Enables the ESP32 I2C driver
if I2C_ESP32
config I2C_0
bool "Enable I2C Port 0"
config I2C_1
bool "Enable I2C Port 1"
config I2C_ESP32_TIMEOUT
int "I2C timeout to receive a data bit in APB clock cycles"
default 200000
if I2C_0
config I2C_ESP32_0_TX_LSB_FIRST
bool "Port 0 Transmit LSB first"
config I2C_ESP32_0_RX_LSB_FIRST
bool "Port 0 Receive LSB first"
endif # I2C_0
if I2C_1
config I2C_ESP32_1_TX_LSB_FIRST
bool "Port 1 Transmit LSB first"
config I2C_ESP32_1_RX_LSB_FIRST
bool "Port 1 Receive LSB first"
endif # I2C_1
endif # I2C_ESP32