aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/watchdog.c')
-rw-r--r--src/stm32/watchdog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm32/watchdog.c b/src/stm32/watchdog.c
index 696d64d6..47c6b35c 100644
--- a/src/stm32/watchdog.c
+++ b/src/stm32/watchdog.c
@@ -4,9 +4,14 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
+#include "autoconf.h" // CONFIG_MACH_STM32H7
#include "internal.h" // IWDG
#include "sched.h" // DECL_TASK
+#if CONFIG_MACH_STM32H7 // stm32h7 libraries only define IWDG1 and IWDG2
+#define IWDG IWDG1
+#endif
+
void
watchdog_reset(void)
{