Browse Source

drivers: spi: stm32: use generic LL headers

Use generic LL headers instead of depending on soc.h.

Signed-off-by: Martin Jäger <martin@libre.solar>
pull/30324/head
Martin Jäger 5 years ago committed by Carles Cufí
parent
commit
c512a908c8
  1. 1
      drivers/spi/spi_ll_stm32.c
  2. 4
      soc/arm/st_stm32/stm32f0/soc.h
  3. 4
      soc/arm/st_stm32/stm32f1/soc.h
  4. 4
      soc/arm/st_stm32/stm32f3/soc.h
  5. 4
      soc/arm/st_stm32/stm32f4/soc.h
  6. 4
      soc/arm/st_stm32/stm32f7/soc.h
  7. 4
      soc/arm/st_stm32/stm32g4/soc.h
  8. 4
      soc/arm/st_stm32/stm32h7/soc.h
  9. 4
      soc/arm/st_stm32/stm32l0/soc.h
  10. 4
      soc/arm/st_stm32/stm32l1/soc.h
  11. 4
      soc/arm/st_stm32/stm32l4/soc.h
  12. 4
      soc/arm/st_stm32/stm32mp1/soc.h
  13. 4
      soc/arm/st_stm32/stm32wb/soc.h

1
drivers/spi/spi_ll_stm32.c

@ -13,6 +13,7 @@ LOG_MODULE_REGISTER(spi_ll_stm32); @@ -13,6 +13,7 @@ LOG_MODULE_REGISTER(spi_ll_stm32);
#include <sys/util.h>
#include <kernel.h>
#include <soc.h>
#include <stm32_ll_spi.h>
#include <errno.h>
#include <drivers/spi.h>
#include <toolchain.h>

4
soc/arm/st_stm32/stm32f0/soc.h

@ -41,10 +41,6 @@ @@ -41,10 +41,6 @@
#include <stm32f0xx_ll_pwr.h>
#endif
#ifdef CONFIG_SPI_STM32
#include <stm32f0xx_ll_spi.h>
#endif
#ifdef CONFIG_GPIO_STM32
#include <stm32f0xx_ll_gpio.h>
#endif

4
soc/arm/st_stm32/stm32f1/soc.h

@ -35,10 +35,6 @@ @@ -35,10 +35,6 @@
#include <stm32f1xx_ll_system.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_SPI_STM32
#include <stm32f1xx_ll_spi.h>
#endif
#ifdef CONFIG_GPIO_STM32
#include <stm32f1xx_ll_gpio.h>
#endif

4
soc/arm/st_stm32/stm32f3/soc.h

@ -36,10 +36,6 @@ @@ -36,10 +36,6 @@
#include <stm32f3xx_ll_system.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_SPI_STM32
#include <stm32f3xx_ll_spi.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f3xx_ll_rtc.h>
#include <stm32f3xx_ll_exti.h>

4
soc/arm/st_stm32/stm32f4/soc.h

@ -38,10 +38,6 @@ @@ -38,10 +38,6 @@
#include <stm32f4xx_ll_system.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#if defined(CONFIG_SPI_STM32) || defined(CONFIG_I2S_STM32)
#include <stm32f4xx_ll_spi.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f4xx_ll_rtc.h>
#include <stm32f4xx_ll_exti.h>

4
soc/arm/st_stm32/stm32f7/soc.h

@ -38,10 +38,6 @@ @@ -38,10 +38,6 @@
#include <stm32f7xx_ll_pwr.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#if defined(CONFIG_SPI_STM32) || defined(CONFIG_I2S_STM32)
#include <stm32f7xx_ll_spi.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f7xx_ll_rtc.h>
#include <stm32f7xx_ll_exti.h>

4
soc/arm/st_stm32/stm32g4/soc.h

@ -43,10 +43,6 @@ @@ -43,10 +43,6 @@
#include <stm32g4xx_ll_gpio.h>
#endif
#ifdef CONFIG_SPI_STM32
#include <stm32g4xx_ll_spi.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32g4xx_ll_rtc.h>
#include <stm32g4xx_ll_exti.h>

4
soc/arm/st_stm32/stm32h7/soc.h

@ -55,10 +55,6 @@ @@ -55,10 +55,6 @@
#include <stm32h7xx_ll_pwr.h>
#endif /* CONFIG_COUNTER_RTC_STM32 */
#ifdef CONFIG_SPI_STM32
#include <stm32h7xx_ll_spi.h>
#endif /* CONFIG_SPI_STM32 */
#endif /* !_ASMLANGUAGE */
#endif /* _STM32F7_SOC_H7_ */

4
soc/arm/st_stm32/stm32l0/soc.h

@ -41,10 +41,6 @@ @@ -41,10 +41,6 @@
#include <stm32l0xx_ll_pwr.h>
#endif
#ifdef CONFIG_SPI_STM32
#include <stm32l0xx_ll_spi.h>
#endif
#ifdef CONFIG_GPIO_STM32
#include <stm32l0xx_ll_gpio.h>
#endif

4
soc/arm/st_stm32/stm32l1/soc.h

@ -45,10 +45,6 @@ @@ -45,10 +45,6 @@
#include <stm32l1xx_ll_pwr.h>
#endif
#ifdef CONFIG_SPI_STM32
#include <stm32l1xx_ll_spi.h>
#endif
#endif /* !_ASMLANGUAGE */
#endif /* _STM32L1_SOC_H_ */

4
soc/arm/st_stm32/stm32l4/soc.h

@ -41,10 +41,6 @@ @@ -41,10 +41,6 @@
#include <stm32l4xx_ll_pwr.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_SPI_STM32
#include <stm32l4xx_ll_spi.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32l4xx_ll_rtc.h>
#include <stm32l4xx_ll_exti.h>

4
soc/arm/st_stm32/stm32mp1/soc.h

@ -38,10 +38,6 @@ @@ -38,10 +38,6 @@
#include <stm32mp1xx_ll_system.h>
#endif
#ifdef CONFIG_SPI_STM32
#include <stm32mp1xx_ll_spi.h>
#endif
#ifdef CONFIG_IPM_STM32_IPCC
#include <stm32mp1xx_ll_ipcc.h>
#endif

4
soc/arm/st_stm32/stm32wb/soc.h

@ -44,10 +44,6 @@ @@ -44,10 +44,6 @@
#include <stm32wbxx_ll_system.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_SPI_STM32
#include <stm32wbxx_ll_spi.h>
#endif /* CONFIG_SPI_STM32 */
#ifdef CONFIG_STM32_LPTIM_TIMER
#include <stm32wbxx_ll_lptim.h>
#include <stm32wbxx_ll_system.h>

Loading…
Cancel
Save