From 520d59b94e189df3f63672ed2eb50df7068ecedf Mon Sep 17 00:00:00 2001
From: Giovanni Di Sirio <gdisirio@gmail.com>
Date: Thu, 3 Dec 2015 16:09:32 +0000
Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8562
 35acf78f-673a-0410-8e92-d51de3d6d3f4

---
 os/hal/ports/STM32/STM32F0xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32F1xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk | 9 +++++++--
 os/hal/ports/STM32/STM32F37x/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32F4xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32F7xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32L0xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32L1xx/platform.mk           | 9 +++++++--
 os/hal/ports/STM32/STM32L4xx/platform.mk           | 9 +++++++--
 9 files changed, 63 insertions(+), 18 deletions(-)

(limited to 'os')

diff --git a/os/hal/ports/STM32/STM32F0xx/platform.mk b/os/hal/ports/STM32/STM32F0xx/platform.mk
index 78918b19c..3028fb09f 100644
--- a/os/hal/ports/STM32/STM32F0xx/platform.mk
+++ b/os/hal/ports/STM32/STM32F0xx/platform.mk
@@ -52,6 +52,9 @@ endif
 ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx/hal_lld.c \
@@ -72,7 +75,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -89,4 +93,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32F1xx/platform.mk b/os/hal/ports/STM32/STM32F1xx/platform.mk
index b5fc474db..f1d136fc3 100644
--- a/os/hal/ports/STM32/STM32F1xx/platform.mk
+++ b/os/hal/ports/STM32/STM32F1xx/platform.mk
@@ -52,6 +52,9 @@ endif
 ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/hal_lld.c \
@@ -72,7 +75,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -89,5 +93,6 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
 
diff --git a/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk b/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
index ddf8a2156..38fec9817 100644
--- a/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
+++ b/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
@@ -55,6 +55,9 @@ endif
 ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/hal_lld.c \
@@ -76,7 +79,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -93,4 +97,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SDIOv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32F37x/platform.mk b/os/hal/ports/STM32/STM32F37x/platform.mk
index c25aa2aff..54317b687 100644
--- a/os/hal/ports/STM32/STM32F37x/platform.mk
+++ b/os/hal/ports/STM32/STM32F37x/platform.mk
@@ -49,6 +49,9 @@ endif
 ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_lld.c \
@@ -68,7 +71,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -84,4 +88,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32F4xx/platform.mk b/os/hal/ports/STM32/STM32F4xx/platform.mk
index f2547b018..ee04c8c00 100644
--- a/os/hal/ports/STM32/STM32F4xx/platform.mk
+++ b/os/hal/ports/STM32/STM32F4xx/platform.mk
@@ -58,6 +58,9 @@ endif
 ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F4xx/hal_lld.c \
@@ -80,7 +83,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -99,4 +103,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SDIOv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32F7xx/platform.mk b/os/hal/ports/STM32/STM32F7xx/platform.mk
index 0ff6f937a..4bba31e79 100644
--- a/os/hal/ports/STM32/STM32F7xx/platform.mk
+++ b/os/hal/ports/STM32/STM32F7xx/platform.mk
@@ -58,6 +58,9 @@ endif
 ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32F7xx/hal_lld.c \
@@ -80,7 +83,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -99,4 +103,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32L0xx/platform.mk b/os/hal/ports/STM32/STM32L0xx/platform.mk
index 4f3b33b5e..43a6b092c 100644
--- a/os/hal/ports/STM32/STM32L0xx/platform.mk
+++ b/os/hal/ports/STM32/STM32L0xx/platform.mk
@@ -49,6 +49,9 @@ endif
 ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32L0xx/hal_lld.c \
@@ -68,7 +71,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -85,4 +89,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32L1xx/platform.mk b/os/hal/ports/STM32/STM32L1xx/platform.mk
index 88969b8c5..4ed3c8da1 100644
--- a/os/hal/ports/STM32/STM32L1xx/platform.mk
+++ b/os/hal/ports/STM32/STM32L1xx/platform.mk
@@ -46,6 +46,9 @@ endif
 ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32L1xx/hal_lld.c \
@@ -64,7 +67,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -79,4 +83,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
diff --git a/os/hal/ports/STM32/STM32L4xx/platform.mk b/os/hal/ports/STM32/STM32L4xx/platform.mk
index 7fb5333e0..cd50374f2 100644
--- a/os/hal/ports/STM32/STM32L4xx/platform.mk
+++ b/os/hal/ports/STM32/STM32L4xx/platform.mk
@@ -49,6 +49,9 @@ endif
 ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
 PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c
 endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+endif
 else
 PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/hal_lld.c \
@@ -68,7 +71,8 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
 endif
 
 # Required include directories
@@ -85,4 +89,5 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
                $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
-               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
+               $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
-- 
cgit v1.2.3