Skip to content

Commit

Permalink
drivers: i2c: stm32: use Kconfig to select HAL/LL sources
Browse files Browse the repository at this point in the history
Use "select USE_STM32_LL_I2C" to select the needed STM32 LL files,
instead of editing ext/hal/st/stm32cube/CMakeLists.txt

Signed-off-by: Erwin Rol <[email protected]>
  • Loading branch information
lowlander authored and galak committed Jan 23, 2018
1 parent 33525c3 commit 5ed492e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ config I2C_STM32_V1
depends on SOC_FAMILY_STM32
depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X
select HAS_DTS_I2C
select USE_STM32_LL_I2C
default n
help
Enable I2C support on the STM32 F1 and F4X family of processors. This
Expand All @@ -126,6 +127,8 @@ config I2C_STM32_V2
depends on SOC_FAMILY_STM32
depends on SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32L4X
select HAS_DTS_I2C
select USE_STM32_LL_I2C
select USE_STM32_LL_RCC if SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X
default n
help
Enable I2C support on the STM32 F0, F3 and L4X family of processors.
Expand Down

0 comments on commit 5ed492e

Please sign in to comment.