add network abstraction layer
This commit is contained in:
@ -15,7 +15,11 @@
|
||||
# ------------------------------------------------
|
||||
|
||||
|
||||
NETWORK = LAN
|
||||
# LAN = 1
|
||||
# WiFi = 2
|
||||
# GSM = 3
|
||||
NETWORK = 1
|
||||
|
||||
|
||||
######################################
|
||||
# target
|
||||
@ -54,6 +58,7 @@ User/Src/sha256.c \
|
||||
User/Src/show.c \
|
||||
User/Src/utils.c \
|
||||
User/Src/wizHelper.c \
|
||||
User/Src/networkAbstractionLayer.c \
|
||||
hottislib/PontCoopScheduler.c \
|
||||
Core/Src/main.c \
|
||||
Core/Src/gpio.c \
|
||||
@ -153,7 +158,7 @@ C_INCLUDES = \
|
||||
# compile gcc flags
|
||||
ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -Werror -fdata-sections -ffunction-sections
|
||||
|
||||
CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -DNETWORK="\"$(NETWORK)\"" -Wall -Werror -fdata-sections -ffunction-sections
|
||||
CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -DNETWORK=$(NETWORK) -Wall -Werror -fdata-sections -ffunction-sections
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -g -gdwarf-2
|
||||
|
Reference in New Issue
Block a user