mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
bugix/risc-v/esp32c6: Fix build error of LP_I2C
Fix build error of LP_I2C for esp32c6 Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
committed by
Alan C. Assis
parent
85923c1797
commit
1c0e1698cd
@@ -390,7 +390,7 @@ config ESPRESSIF_LPI2C
|
||||
|
||||
config ESPRESSIF_I2C_PERIPH_MASTER_MODE
|
||||
bool
|
||||
depends on (ESPRESSIF_I2C0_MASTER_MODE || ESPRESSIF_I2C1_MASTER_MODE)
|
||||
depends on (ESPRESSIF_I2C0_MASTER_MODE || ESPRESSIF_I2C1_MASTER_MODE || ESPRESSIF_LP_I2C0)
|
||||
default n
|
||||
|
||||
config ESPRESSIF_I2C_PERIPH_SLAVE_MODE
|
||||
@@ -417,6 +417,7 @@ config ESPRESSIF_LP_I2C0
|
||||
depends on ARCH_CHIP_ESP32C6
|
||||
select ESPRESSIF_I2C
|
||||
select ESPRESSIF_LPI2C
|
||||
select ESPRESSIF_I2C_PERIPH_MASTER_MODE
|
||||
select I2C
|
||||
|
||||
choice ESPRESSIF_I2C0_MODE
|
||||
|
||||
@@ -148,7 +148,8 @@ int board_i2c_init(void)
|
||||
{
|
||||
int ret = OK;
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_I2C_PERIPH_MASTER_MODE
|
||||
#if defined(CONFIG_ESPRESSIF_I2C_PERIPH_MASTER_MODE) && \
|
||||
defined(CONFIG_ESPRESSIF_I2C0)
|
||||
ret = i2c_driver_init(ESPRESSIF_I2C0);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user