drivers: iwdg: stm32: use generic LL headers

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

Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
Martin Jäger 2020-11-20 15:38:45 +01:00 committed by Carles Cufí
commit d73bfcbdc8
13 changed files with 3 additions and 48 deletions

View file

@ -10,6 +10,9 @@
#include <drivers/watchdog.h>
#include <soc.h>
#include <stm32_ll_bus.h>
#include <stm32_ll_iwdg.h>
#include <stm32_ll_system.h>
#include <errno.h>
#include "wdt_iwdg_stm32.h"

View file

@ -41,10 +41,6 @@
#include <stm32f0xx_ll_pwr.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f0xx_ll_iwdg.h>
#endif
#ifdef CONFIG_I2C_STM32
#include <stm32f0xx_ll_i2c.h>
#endif

View file

@ -43,10 +43,6 @@
#include <stm32f1xx_ll_spi.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f1xx_ll_iwdg.h>
#endif
#ifdef CONFIG_GPIO_STM32
#include <stm32f1xx_ll_gpio.h>
#endif

View file

@ -38,10 +38,6 @@
#include <stm32f2xx_ll_gpio.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f2xx_ll_iwdg.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f2xx_ll_rtc.h>
#include <stm32f2xx_ll_exti.h>

View file

@ -44,10 +44,6 @@
#include <stm32f3xx_ll_spi.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f3xx_ll_iwdg.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f3xx_ll_rtc.h>
#include <stm32f3xx_ll_exti.h>

View file

@ -50,10 +50,6 @@
#include <stm32f4xx_ll_rng.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f4xx_ll_iwdg.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f4xx_ll_rtc.h>
#include <stm32f4xx_ll_exti.h>

View file

@ -60,10 +60,6 @@
#include <stm32f7xx_ll_gpio.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32f7xx_ll_iwdg.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32f7xx_ll_dma.h>
#endif

View file

@ -47,10 +47,6 @@
#include <stm32g0xx_ll_i2c.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32g0xx_ll_iwdg.h>
#endif
#ifdef CONFIG_HWINFO_STM32
#include <stm32g0xx_ll_utils.h>
#endif

View file

@ -51,10 +51,6 @@
#include <stm32g4xx_ll_i2c.h>
#endif /* CONFIG_I2C */
#ifdef CONFIG_IWDG_STM32
#include <stm32g4xx_ll_iwdg.h>
#endif
#ifdef CONFIG_ENTROPY_STM32_RNG
#include <stm32g4xx_ll_rng.h>
#endif

View file

@ -53,10 +53,6 @@
#include <stm32l0xx_ll_gpio.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32l0xx_ll_iwdg.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32l0xx_ll_dma.h>
#endif

View file

@ -53,10 +53,6 @@
#include <stm32l1xx_ll_spi.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32l1xx_ll_iwdg.h>
#endif
#ifdef CONFIG_PWM_STM32
#include <stm32l1xx_ll_tim.h>
#endif /* CONFIG_PWM_STM32 */

View file

@ -49,10 +49,6 @@
#include <stm32l4xx_ll_i2c.h>
#endif
#ifdef CONFIG_IWDG_STM32
#include <stm32l4xx_ll_iwdg.h>
#endif
#ifdef CONFIG_ENTROPY_STM32_RNG
#include <stm32l4xx_ll_rng.h>
#endif

View file

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