arch/arm/stm32h5: Add defines for ADC_HAVE_WDG
AWD defines needed by stm32_adc.c were missing from PR #17007. This commit adds them in.
Signed-off-by: kywwilson11 <kwilson@2g-eng.com>
diff --git a/arch/arm/src/stm32h5/stm32_adc.h b/arch/arm/src/stm32h5/stm32_adc.h
index a83b717..0a650b8 100644
--- a/arch/arm/src/stm32h5/stm32_adc.h
+++ b/arch/arm/src/stm32h5/stm32_adc.h
@@ -113,6 +113,25 @@
# define ADC2_HAVE_OVERSAMPLE 1
#endif
+#undef ADC_HAVE_WDG1
+#if defined(CONFIG_STM32H5_ADC1_WDG1) || defined(CONFIG_STM32H5_ADC2_WDG1)
+# define ADC_HAVE_WDG1
+#endif
+
+#undef ADC_HAVE_WDG2
+#if defined(CONFIG_STM32H5_ADC1_WDG2) || defined(CONFIG_STM32H5_ADC2_WDG2)
+# define ADC_HAVE_WDG2
+#endif
+
+#undef ADC_HAVE_WDG3
+#if defined(CONFIG_STM32H5_ADC1_WDG3) || defined(CONFIG_STM32H5_ADC2_WDG3)
+# define ADC_HAVE_WDG3
+#endif
+
+#if defined(ADC_HAVE_WDG1) || defined (ADC_HAVE_WDG2) || \
+ defined(ADC_HAVE_WDG3)
+# define ADC_HAVE_WDG
+#endif
/* Timer configuration: If a timer trigger is specified, then get
* information about the timer.
*/