mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
menu "ESP-Driver:I2C Configurations"
|
|
depends on SOC_I2C_SUPPORTED
|
|
config I2C_ISR_IRAM_SAFE
|
|
bool "I2C ISR IRAM-Safe"
|
|
select I2C_MASTER_ISR_HANDLER_IN_IRAM
|
|
default n
|
|
help
|
|
Ensure the I2C interrupt is IRAM-Safe by allowing the interrupt handler to be
|
|
executable when the cache is disabled (e.g. SPI Flash write).
|
|
note: This cannot be used in the I2C legacy driver.
|
|
|
|
config I2C_ENABLE_DEBUG_LOG
|
|
bool "Enable I2C debug log"
|
|
default n
|
|
help
|
|
whether to enable the debug log message for I2C driver.
|
|
Note that this option only controls the I2C driver log, will not affect other drivers.
|
|
|
|
note: This cannot be used in the I2C legacy driver.
|
|
|
|
config I2C_ENABLE_SLAVE_DRIVER_VERSION_2
|
|
bool "Enable I2C slave driver version 2"
|
|
default n
|
|
help
|
|
I2C slave version 2 solves some existing known issues. Such as write/read workflow, stretch handling, etc.
|
|
|
|
config I2C_MASTER_ISR_HANDLER_IN_IRAM
|
|
bool "Place I2C master ISR handler into IRAM"
|
|
default y
|
|
help
|
|
Place I2C master ISR handler into IRAM for better performance and fewer cache misses.
|
|
|
|
endmenu # I2C Configurations
|