diff options
Diffstat (limited to 'os/hal/hal.mk')
-rw-r--r-- | os/hal/hal.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/os/hal/hal.mk b/os/hal/hal.mk index 074970dc6..53da28525 100644 --- a/os/hal/hal.mk +++ b/os/hal/hal.mk @@ -64,6 +64,9 @@ endif ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
HALSRC += $(CHIBIOS)/os/hal/src/usb.c
endif
+ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
+HALSRC += $(CHIBIOS)/os/hal/src/wdg.c
+endif
else
HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
$(CHIBIOS)/os/hal/src/hal_queues.c \
@@ -87,7 +90,8 @@ HALSRC = $(CHIBIOS)/os/hal/src/hal.c \ $(CHIBIOS)/os/hal/src/spi.c \
$(CHIBIOS)/os/hal/src/st.c \
$(CHIBIOS)/os/hal/src/uart.c \
- $(CHIBIOS)/os/hal/src/usb.c
+ $(CHIBIOS)/os/hal/src/usb.c \
+ $(CHIBIOS)/os/hal/src/wdg.c
endif
# Required include directories
|