diff --git a/bsp/imxrt1052-evk/Kconfig b/bsp/imxrt1052-evk/Kconfig index acfdff1a48..5ad86b94f6 100644 --- a/bsp/imxrt1052-evk/Kconfig +++ b/bsp/imxrt1052-evk/Kconfig @@ -235,7 +235,7 @@ menu "Select iic drivers" config RT_USING_I2C1 bool "USING I2C1" select RT_USING_I2C - default n + default y if RT_USING_I2C1 config RT_USING_I2C1_BITOPS select RT_USING_I2C_BITOPS diff --git a/bsp/imxrt1052-evk/rtconfig.h b/bsp/imxrt1052-evk/rtconfig.h index 50a6fec9bf..0520b50f88 100644 --- a/bsp/imxrt1052-evk/rtconfig.h +++ b/bsp/imxrt1052-evk/rtconfig.h @@ -209,6 +209,11 @@ #define LPSPI4_SCK_GPIO_1 #define LPSPI4_SDO_GPIO_1 #define LPSPI4_SDI_GPIO_1 + +/* Select iic drivers */ + +#define LPI2C_CLOCK_SOURCE_DIVIDER 4 +#define RT_USING_I2C1 #define RT_USING_SDRAM #define RT_USING_RTC_HP