updated makefile for gateway example.
Fixed compiler warnings in gateway main.c file.
This commit is contained in:
@@ -14,7 +14,23 @@ TARGET_BIN = ${TARGET}$(TARGET_EXT)
|
|||||||
SRCS = main.c \
|
SRCS = main.c \
|
||||||
$(BACNET_OBJECT)/gw_device.c \
|
$(BACNET_OBJECT)/gw_device.c \
|
||||||
$(BACNET_HANDLER)/h_routed_npdu.c \
|
$(BACNET_HANDLER)/h_routed_npdu.c \
|
||||||
$(BACNET_HANDLER)/s_router.c
|
$(BACNET_HANDLER)/s_router.c \
|
||||||
|
$(BACNET_OBJECT)/device.c \
|
||||||
|
$(BACNET_OBJECT)/ai.c \
|
||||||
|
$(BACNET_OBJECT)/ao.c \
|
||||||
|
$(BACNET_OBJECT)/av.c \
|
||||||
|
$(BACNET_OBJECT)/bi.c \
|
||||||
|
$(BACNET_OBJECT)/bo.c \
|
||||||
|
$(BACNET_OBJECT)/bv.c \
|
||||||
|
$(BACNET_OBJECT)/csv.c \
|
||||||
|
$(BACNET_OBJECT)/lc.c \
|
||||||
|
$(BACNET_OBJECT)/lsp.c \
|
||||||
|
$(BACNET_OBJECT)/ms-input.c \
|
||||||
|
$(BACNET_OBJECT)/mso.c \
|
||||||
|
$(BACNET_OBJECT)/msv.c \
|
||||||
|
$(BACNET_OBJECT)/nc.c \
|
||||||
|
$(BACNET_OBJECT)/trendlog.c \
|
||||||
|
$(BACNET_OBJECT)/bacfile.c
|
||||||
|
|
||||||
OBJS = ${SRCS:.c=.o}
|
OBJS = ${SRCS:.c=.o}
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ int DNET_list[2] = {
|
|||||||
* @param first_object_instance Set the first (gateway) Device to this
|
* @param first_object_instance Set the first (gateway) Device to this
|
||||||
instance number, and subsequent devices to incremented values.
|
instance number, and subsequent devices to incremented values.
|
||||||
*/
|
*/
|
||||||
void Devices_Init(
|
static void Devices_Init(
|
||||||
uint32_t first_object_instance)
|
uint32_t first_object_instance)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -176,7 +176,7 @@ static void Init_Service_Handlers(
|
|||||||
* device.) This is sure to be unique! The port number stays the same.
|
* device.) This is sure to be unique! The port number stays the same.
|
||||||
* - For MS/TP, [Steve inserts a good idea here]
|
* - For MS/TP, [Steve inserts a good idea here]
|
||||||
*/
|
*/
|
||||||
void Initialize_Device_Addresses(
|
static void Initialize_Device_Addresses(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int i = 0; /* First entry is Gateway Device */
|
int i = 0; /* First entry is Gateway Device */
|
||||||
|
|||||||
Reference in New Issue
Block a user