drivers: watchdog: stm32: Add implementation for WWDG

Added drivers for System Window Watchdog of STM32 platform.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
This commit is contained in:
Ioannis Konstantelias 2019-07-15 16:07:00 +03:00 committed by Kumar Gala
commit 414e4d30a0
18 changed files with 384 additions and 0 deletions

View file

@ -44,6 +44,9 @@ if WATCHDOG
config IWDG_STM32
default y
config WWDG_STM32
default n
endif # WATCHDOG
if PWM

View file

@ -47,6 +47,10 @@
#include <stm32f0xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f0xx_ll_wwdg.h>
#endif
#ifdef CONFIG_I2C_STM32_V2
#include <stm32f0xx_ll_i2c.h>
#endif

View file

@ -55,6 +55,10 @@
#include <stm32f1xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f1xx_ll_wwdg.h>
#endif
#ifdef CONFIG_GPIO_STM32
#include <stm32f1xx_ll_gpio.h>
#endif

View file

@ -50,6 +50,10 @@
#include <stm32f2xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f2xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f2xx_ll_adc.h>
#endif

View file

@ -56,6 +56,10 @@
#include <stm32f3xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f3xx_ll_wwdg.h>
#endif
#if defined(CONFIG_RTC_STM32) || defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f3xx_ll_rtc.h>
#include <stm32f3xx_ll_exti.h>

View file

@ -59,6 +59,10 @@
#include <stm32f4xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f4xx_ll_wwdg.h>
#endif
#if defined(CONFIG_RTC_STM32) || defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f4xx_ll_rtc.h>
#include <stm32f4xx_ll_exti.h>

View file

@ -68,6 +68,10 @@
#include <stm32f7xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32f7xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f7xx_ll_adc.h>
#endif

View file

@ -44,6 +44,10 @@
#include <stm32g0xx_ll_gpio.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32g0xx_ll_wwdg.h>
#endif
#ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32g0xx_ll_usart.h>
#endif

View file

@ -52,6 +52,10 @@
#include <stm32h7xx_ll_system.h>
#endif /* CONFIG_GPIO_STM32 */
#ifdef CONFIG_WWDG_STM32
#include <stm32h7xx_ll_wwdg.h>
#endif
#ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32h7xx_ll_usart.h>
#endif /* CONFIG_SERIAL_HAS_DRIVER */

View file

@ -60,6 +60,10 @@
#include <stm32l0xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32l0xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32l0xx_ll_adc.h>
#endif

View file

@ -51,6 +51,10 @@
#include <stm32l1xx_ll_i2c.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32l1xx_ll_wwdg.h>
#endif
#endif /* !_ASMLANGUAGE */
#endif /* _STM32L1_SOC_H_ */

View file

@ -64,6 +64,10 @@
#include <stm32l4xx_ll_iwdg.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32l4xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ENTROPY_STM32_RNG
#include <stm32l4xx_ll_rng.h>
#endif

View file

@ -58,6 +58,10 @@
#include <stm32mp1xx_ll_i2c.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32mp1xx_ll_wwdg.h>
#endif
#endif /* !_ASMLANGUAGE */
#endif /* _STM32MP1SOC_H_ */

View file

@ -65,6 +65,10 @@
#include <stm32wbxx_ll_adc.h>
#endif
#ifdef CONFIG_WWDG_STM32
#include <stm32wbxx_ll_wwdg.h>
#endif
#endif /* !_ASMLANGUAGE */
#endif /* _STM32WBX_SOC_H_ */