soc: stm32: F1/F3/F4/L4: enable I2C LL
Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
This commit is contained in:
parent
9f420955d9
commit
220ddb9738
5 changed files with 19 additions and 0 deletions
|
@ -56,6 +56,10 @@ enum stm32f10x_pin_config_mode {
|
|||
#include <stm32f1xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32f1xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F1_SOC_H_ */
|
||||
|
|
|
@ -59,6 +59,10 @@ enum stm32f3x_pin_config_mode {
|
|||
#include <stm32f3xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32f3xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F3_SOC_H_ */
|
||||
|
|
|
@ -59,6 +59,10 @@ enum stm32f4x_pin_config_mode {
|
|||
#include <stm32f4xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32f4xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F4_SOC_H_ */
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include <stm32l4xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32l4xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32L4X_SOC_H_ */
|
||||
|
|
|
@ -6,6 +6,7 @@ obj-y += stm32f1xx/drivers/src/stm32f1xx_hal_rcc.o
|
|||
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f1xx/drivers/src/stm32f1xx_ll_utils.o
|
||||
obj-$(CONFIG_PWM) += stm32f1xx/drivers/src/stm32f1xx_hal_tim.o
|
||||
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f1xx/drivers/src/stm32f1xx_hal_uart.o
|
||||
obj-$(CONFIG_I2C) += stm32f1xx/drivers/src/stm32f1xx_ll_i2c.o
|
||||
obj-y += stm32f1xx/soc/system_stm32f1xx.o
|
||||
endif
|
||||
|
||||
|
@ -23,6 +24,7 @@ obj-y += stm32f4xx/drivers/src/stm32f4xx_hal_rcc.o
|
|||
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f4xx/drivers/src/stm32f4xx_ll_utils.o
|
||||
obj-$(CONFIG_PWM) += stm32f4xx/drivers/src/stm32f4xx_hal_tim.o
|
||||
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f4xx/drivers/src/stm32f4xx_hal_uart.o
|
||||
obj-$(CONFIG_I2C) += stm32f4xx/drivers/src/stm32f4xx_ll_i2c.o
|
||||
obj-y += stm32f4xx/soc/system_stm32f4xx.o
|
||||
endif
|
||||
|
||||
|
@ -37,6 +39,7 @@ obj-y += stm32l4xx/drivers/src/stm32l4xx_hal_rcc.o
|
|||
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32l4xx/drivers/src/stm32l4xx_ll_utils.o
|
||||
obj-$(CONFIG_PWM) += stm32l4xx/drivers/src/stm32l4xx_hal_tim.o
|
||||
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32l4xx/drivers/src/stm32l4xx_hal_uart.o
|
||||
obj-$(CONFIG_I2C) += stm32l4xx/drivers/src/stm32l4xx_ll_i2c.o
|
||||
obj-y += stm32l4xx/soc/system_stm32l4xx.o
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue