nal
This commit is contained in:
@ -15,10 +15,12 @@
|
|||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
# LAN = 1
|
# Network implementations, to be set on commandline
|
||||||
# WiFi = 2
|
# LAN
|
||||||
# GSM = 3
|
# WiFi
|
||||||
# NETWORK = 1
|
# GSM
|
||||||
|
|
||||||
|
# NETWORK = LAN
|
||||||
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
@ -84,7 +86,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c \
|
|||||||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c \
|
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c \
|
||||||
Core/Src/system_stm32f1xx.c
|
Core/Src/system_stm32f1xx.c
|
||||||
|
|
||||||
ifeq ($(NETWORK), 1)
|
ifeq ($(NETWORK), "LAN")
|
||||||
C_SOURCES += \
|
C_SOURCES += \
|
||||||
User/Src/ports.c \
|
User/Src/ports.c \
|
||||||
User/Src/wizHelper.c \
|
User/Src/wizHelper.c \
|
||||||
@ -157,7 +159,7 @@ C_INCLUDES = \
|
|||||||
-IDrivers/CMSIS/Include
|
-IDrivers/CMSIS/Include
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(NETWORK), 1)
|
ifeq ($(NETWORK), "LAN")
|
||||||
C_INCLUDES += \
|
C_INCLUDES += \
|
||||||
-IioLibrary_Driver/Internet/SNTP \
|
-IioLibrary_Driver/Internet/SNTP \
|
||||||
-IioLibrary_Driver/Internet/DNS \
|
-IioLibrary_Driver/Internet/DNS \
|
||||||
@ -202,7 +204,7 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET
|
|||||||
OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o)))
|
OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o)))
|
||||||
vpath %.c $(sort $(dir $(C_SOURCES)))
|
vpath %.c $(sort $(dir $(C_SOURCES)))
|
||||||
|
|
||||||
ifeq ($(NETWORK), 1)
|
ifeq ($(NETWORK), "LAN")
|
||||||
OBJECTS += $(addprefix $(BUILD_DIR)/,w5500.a)
|
OBJECTS += $(addprefix $(BUILD_DIR)/,w5500.a)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -210,7 +212,7 @@ endif
|
|||||||
OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(ASM_SOURCES:.s=.o)))
|
OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(ASM_SOURCES:.s=.o)))
|
||||||
vpath %.s $(sort $(dir $(ASM_SOURCES)))
|
vpath %.s $(sort $(dir $(ASM_SOURCES)))
|
||||||
|
|
||||||
ifeq ($(NETWORK), 1)
|
ifeq ($(NETWORK), "LAN")
|
||||||
$(BUILD_DIR)/w5500.a:
|
$(BUILD_DIR)/w5500.a:
|
||||||
(cd ioLibrary_Driver && $(MAKE) && cp w5500.a ../$(BUILD_DIR) && cd ..)
|
(cd ioLibrary_Driver && $(MAKE) && cp w5500.a ../$(BUILD_DIR) && cd ..)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user