Added support for both DFR0259 and LINKSPRITE RS485 shield in build (#588)

* Added SHIELD=dfr0259 or SHIELD=linksprite build options to RS485 driver for stm32f4xx port.
This commit is contained in:
Steve Karg
2024-03-02 07:20:27 -06:00
committed by GitHub
parent 8a23c9b244
commit cbe7d2a8ed
3 changed files with 95 additions and 41 deletions
+9
View File
@@ -153,6 +153,15 @@ BACNET_FLAGS += -DMAX_OCTET_STRING_BYTES=64
# if called from root Makefile, PRINT was already defined
BACNET_FLAGS += -UPRINT_ENABLED
BACNET_FLAGS += -DPRINT_ENABLED=0
ifeq (${SHIELD},)
BACNET_FLAGS += -DRS485_DFR0259_ENABLED=1
endif
ifeq (${SHIELD},dfr0259)
BACNET_FLAGS += -DRS485_DFR0259_ENABLED=1
endif
ifeq (${SHIELD},linksprite)
BACNET_FLAGS += -DRS485_LINKSPRITE_ENABLED=1
endif
ifeq (${LEGACY},true)
# disable deprecated function warnings for legacy builds
BACNET_FLAGS += -DBACNET_STACK_DEPRECATED_DISABLE