From 0a55489e2c8899b2a5cff75dbbd40d7ed5791e22 Mon Sep 17 00:00:00 2001 From: D4SK Date: Sun, 30 May 2021 01:19:39 +0100 Subject: stm32: Add initial support for stm32h7 Signed-off-by: Konstantin Vogel Signed-off-by: Kevin O'Connor --- src/stm32/watchdog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/stm32/watchdog.c') 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) { -- cgit v1.2.3-70-g09d2