aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/watchdog.c
diff options
context:
space:
mode:
authorD4SK <konstantin.vogel@gmx.net>2021-05-30 01:19:39 +0100
committerKevin O'Connor <kevin@koconnor.net>2021-10-06 18:20:29 -0400
commit0a55489e2c8899b2a5cff75dbbd40d7ed5791e22 (patch)
tree2855536ca3554470cef04f11955ef6ebf59c68a1 /src/stm32/watchdog.c
parent28b3c9e88c2103e67e0aaeeecd79eb4b827fecb0 (diff)
downloadkutter-0a55489e2c8899b2a5cff75dbbd40d7ed5791e22.tar.gz
kutter-0a55489e2c8899b2a5cff75dbbd40d7ed5791e22.tar.xz
kutter-0a55489e2c8899b2a5cff75dbbd40d7ed5791e22.zip
stm32: Add initial support for stm32h7
Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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)
{