2019-11-01 20:45:29 +08:00
|
|
|
# ESP32 I2C configuration options
|
|
|
|
|
2017-08-24 08:24:40 +08:00
|
|
|
# Copyright (c) 2017 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig I2C_ESP32
|
|
|
|
bool "ESP32 I2C"
|
2018-08-02 21:55:22 +08:00
|
|
|
depends on SOC_ESP32
|
2017-08-24 08:24:40 +08:00
|
|
|
select GPIO_ESP32
|
|
|
|
help
|
|
|
|
Enables the ESP32 I2C driver
|
|
|
|
|
|
|
|
if I2C_ESP32
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
config I2C_ESP32_0_IRQ
|
|
|
|
int "Port 0 IRQ line"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
config I2C_ESP32_1_IRQ
|
|
|
|
int "Port 1 IRQ line"
|
|
|
|
default 9
|
|
|
|
|
|
|
|
endif # I2C_1
|
|
|
|
|
|
|
|
endif # I2C_ESP32
|