diff --git a/arch/arm/soc/st_stm32/stm32f3/soc.h b/arch/arm/soc/st_stm32/stm32f3/soc.h index 15323d2faf0..33bd83a4758 100644 --- a/arch/arm/soc/st_stm32/stm32f3/soc.h +++ b/arch/arm/soc/st_stm32/stm32f3/soc.h @@ -57,6 +57,7 @@ enum stm32f3x_pin_config_mode { #include #include #include +#include #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #ifdef CONFIG_I2C diff --git a/arch/arm/soc/st_stm32/stm32f4/soc.h b/arch/arm/soc/st_stm32/stm32f4/soc.h index 50aab46d3c6..032610d7a44 100644 --- a/arch/arm/soc/st_stm32/stm32f4/soc.h +++ b/arch/arm/soc/st_stm32/stm32f4/soc.h @@ -57,6 +57,7 @@ enum stm32f4x_pin_config_mode { #include #include #include +#include #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #ifdef CONFIG_I2C diff --git a/arch/arm/soc/st_stm32/stm32l4/soc.h b/arch/arm/soc/st_stm32/stm32l4/soc.h index b40b2029bb4..5a970c10571 100644 --- a/arch/arm/soc/st_stm32/stm32l4/soc.h +++ b/arch/arm/soc/st_stm32/stm32l4/soc.h @@ -40,6 +40,7 @@ #include #include #include +#include #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #ifdef CONFIG_I2C diff --git a/ext/hal/st/stm32cube/Kbuild b/ext/hal/st/stm32cube/Kbuild index 08eb37581ab..db6b1ab5c56 100644 --- a/ext/hal/st/stm32cube/Kbuild +++ b/ext/hal/st/stm32cube/Kbuild @@ -15,6 +15,7 @@ obj-y += stm32f3xx/drivers/src/stm32f3xx_hal.o obj-y += stm32f3xx/drivers/src/stm32f3xx_hal_rcc.o obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f3xx/drivers/src/stm32f3xx_ll_utils.o obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f3xx/drivers/src/stm32f3xx_hal_uart.o +obj-$(CONFIG_SPI_STM32) += stm32f3xx/drivers/src/stm32f3xx_ll_spi.o obj-y += stm32f3xx/soc/system_stm32f3xx.o endif @@ -25,6 +26,7 @@ obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f4xx/drivers/src/stm32f4xx_ll_uti 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-$(CONFIG_SPI_STM32) += stm32f4xx/drivers/src/stm32f4xx_ll_spi.o obj-y += stm32f4xx/soc/system_stm32f4xx.o endif @@ -40,6 +42,7 @@ obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32l4xx/drivers/src/stm32l4xx_ll_uti 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-$(CONFIG_SPI_STM32) += stm32l4xx/drivers/src/stm32l4xx_ll_spi.o obj-y += stm32l4xx/soc/system_stm32l4xx.o endif