Browse Source

[BSP][imxrt1052] update rtconfig.h Kconfig

balanceTWK 7 years ago
parent
commit
4b086cfff9
2 changed files with 6 additions and 1 deletions
  1. 1 1
      bsp/imxrt1052-evk/Kconfig
  2. 5 0
      bsp/imxrt1052-evk/rtconfig.h

+ 1 - 1
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

+ 5 - 0
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