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
|
@ -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