diff options
| author | balanceTWK <[email protected]> | 2018-04-09 18:51:19 +0800 |
|---|---|---|
| committer | balanceTWK <[email protected]> | 2018-04-09 18:58:03 +0800 |
| commit | 4b086cfff92eb771624a92dd4de5be696f922b45 (patch) | |
| tree | b7aaf03b4966649f78cdd10d862bbc20f18f2c71 /bsp | |
| parent | 6d63451e38f59f0874b94d7ece3a706a8794c27b (diff) | |
[BSP][imxrt1052] update rtconfig.h Kconfig
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/imxrt1052-evk/Kconfig | 2 | ||||
| -rw-r--r-- | bsp/imxrt1052-evk/rtconfig.h | 5 |
2 files changed, 6 insertions, 1 deletions
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 |
