aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/hal.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/os/hal/hal.mk b/os/hal/hal.mk
index f177a3f8b..689d4c104 100644
--- a/os/hal/hal.mk
+++ b/os/hal/hal.mk
@@ -80,6 +80,9 @@ endif
ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
HALSRC += $(CHIBIOS)/os/hal/src/hal_wdg.c
endif
+ifneq ($(findstring HAL_USE_WSPI TRUE,$(HALCONF)),)
+HALSRC += $(CHIBIOS)/os/hal/src/hal_wspi.c
+endif
else
HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
$(CHIBIOS)/os/hal/src/hal_buffers.c \
@@ -107,7 +110,8 @@ HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
$(CHIBIOS)/os/hal/src/hal_st.c \
$(CHIBIOS)/os/hal/src/hal_uart.c \
$(CHIBIOS)/os/hal/src/hal_usb.c \
- $(CHIBIOS)/os/hal/src/hal_wdg.c
+ $(CHIBIOS)/os/hal/src/hal_wdg.c \
+ $(CHIBIOS)/os/hal/src/hal_wspi.c
endif
# Required include directories