cleaned up some warnings and errors when compiled for MS/TP on Linux

This commit is contained in:
skarg
2012-12-16 04:42:22 +00:00
parent 634ac556df
commit 4c0599f104
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ INCLUDES = $(INCLUDE1) $(INCLUDE2)
ifeq (${BACNET_PORT},linux)
PFLAGS = -pthread
TARGET_EXT =
LIBRARIES=-lc,-lgcc,-lrt,-lm,-L$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME)
LIBRARY1=-L$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME)
LIBRARY2=-lc,-lgcc,-lrt,-lm
LIBRARIES=$(LIBRARY1),$(LIBRARY2)
endif
ifeq (${BACNET_PORT},win32)
TARGET_EXT = .exe
+3
View File
@@ -58,10 +58,13 @@ extern "C" {
void RS485_Check_UART_Data(
volatile struct mstp_port_struct_t *mstp_port); /* port specific data */
uint32_t RS485_Get_Port_Baud_Rate(
volatile struct mstp_port_struct_t *mstp_port);
uint32_t RS485_Get_Baud_Rate(
void);
bool RS485_Set_Baud_Rate(
uint32_t baud);
void RS485_Cleanup(
void);