From 6361482ba66f148f5409ac8c6f54535037c1f956 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 12 Apr 2019 15:21:58 +1000 Subject: [PATCH] HAL_ChibiOS: fixed watchdog on H7 --- libraries/AP_HAL_ChibiOS/hwdef/common/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/watchdog.c b/libraries/AP_HAL_ChibiOS/hwdef/common/watchdog.c index 2d77e71deb..96e341ce2b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/watchdog.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/watchdog.c @@ -25,7 +25,7 @@ defines for working out if the reset was from the watchdog */ #if defined(STM32H7) -#define WDG_RESET_STATUS (*(__IO uint32_t *)(RCC_BASE + )) +#define WDG_RESET_STATUS (*(__IO uint32_t *)(RCC_BASE + 0xD0)) #define WDG_RESET_CLEAR (1U<<16) #define WDG_RESET_IS_IWDG (1U<<26) #elif defined(STM32F7) || defined(STM32F4)