aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c b/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
index dac05a706..45856cbe8 100644
--- a/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
+++ b/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
@@ -35,6 +35,10 @@
#define KR_KEY_WRITE 0x5555U
#define KR_KEY_PROTECT 0x0000U
+#if !defined(IWDG) && defined(IWDG1)
+#define IWDG IWDG1
+#endif
+
/*===========================================================================*/
/* Driver exported variables. */
/*===========================================================================*/