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:
parent
f9152adc81
commit
414e4d30a0
18 changed files with 384 additions and 0 deletions
|
@ -44,6 +44,9 @@ if WATCHDOG
|
|||
config IWDG_STM32
|
||||
default y
|
||||
|
||||
config WWDG_STM32
|
||||
default n
|
||||
|
||||
endif # WATCHDOG
|
||||
|
||||
if PWM
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_ */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_ */
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue