arch: stm32: Fix inclusion of SPI headers
In some STM32 series, SPI LL headers where included under CONFIG_CLOCK_CONTROL_STM32_CUBE flag definition. Fix this and use CONFIG_SPI_STM32 instead. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
922490d3bb
commit
f315afd0a7
3 changed files with 12 additions and 3 deletions
|
@ -42,13 +42,16 @@
|
|||
#include <stm32f3xx_ll_bus.h>
|
||||
#include <stm32f3xx_ll_rcc.h>
|
||||
#include <stm32f3xx_ll_system.h>
|
||||
#include <stm32f3xx_ll_spi.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32f3xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_STM32
|
||||
#include <stm32f3xx_ll_spi.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IWDG_STM32
|
||||
#include <stm32f3xx_ll_iwdg.h>
|
||||
#endif
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <stm32f4xx_ll_bus.h>
|
||||
#include <stm32f4xx_ll_rcc.h>
|
||||
#include <stm32f4xx_ll_system.h>
|
||||
#include <stm32f4xx_ll_spi.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
|
@ -48,6 +47,10 @@
|
|||
#include <stm32f4xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_STM32
|
||||
#include <stm32f4xx_ll_spi.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ENTROPY_STM32_RNG
|
||||
#include <stm32f4xx_ll_rng.h>
|
||||
#endif
|
||||
|
|
|
@ -41,9 +41,12 @@
|
|||
#include <stm32l4xx_ll_bus.h>
|
||||
#include <stm32l4xx_ll_rcc.h>
|
||||
#include <stm32l4xx_ll_system.h>
|
||||
#include <stm32l4xx_ll_spi.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SPI_STM32
|
||||
#include <stm32l4xx_ll_spi.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_I2C
|
||||
#include <stm32l4xx_ll_i2c.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue