Fiddling with the MAX_MDPU and datalink stuff.

This commit is contained in:
skarg
2007-09-01 00:42:12 +00:00
parent 35cac8b4b0
commit 46ab0030c8
9 changed files with 42 additions and 12 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ static uint8_t Read_Properties(uint32_t device_instance)
}
return invoke_id;
}
}
int main(int argc, char *argv[])
{
+1 -1
View File
@@ -311,7 +311,7 @@ void handler_read_property_multiple(
int32_t array_index = 0;
/* jps_debug - see if we are utilizing all the buffer */
/* memset(&Handler_Transmit_Buffer[0], 0xff, MAX_MPDU);*/
/* memset(&Handler_Transmit_Buffer[0], 0xff, sizeof(Handler_Transmit_Buffer));*/
/* encode the NPDU portion of the packet */
datalink_get_my_address(&my_address);
npdu_encode_npdu_data(&npdu_data, false, MESSAGE_PRIORITY_NORMAL);
+1 -1
View File
@@ -27,4 +27,4 @@
#include "config.h"
#include "datalink.h"
uint8_t Handler_Transmit_Buffer[MAX_MPDU] = { 0 };
uint8_t Handler_Transmit_Buffer[MAX_PDU] = { 0 };
+1 -1
View File
@@ -30,6 +30,6 @@
#include "config.h"
#include "datalink.h"
extern uint8_t Handler_Transmit_Buffer[MAX_MPDU];
extern uint8_t Handler_Transmit_Buffer[MAX_PDU];
#endif
+4 -4
View File
@@ -6,10 +6,10 @@ CC = gcc
TARGET = bacserv
# Configure the BACnet Datalink Layer
#BACDL_DEFINE = -DBACDL_ETHERNET=1
#BACDL_DEFINE = -DBACDL_ARCNET=1
#BACDL_DEFINE = -DBACDL_MSTP=1
BACDL_DEFINE = -DBACDL_BIP=1 -DBIP_DEBUG
#BACDL_DEFINE = -DBACDL_ETHERNET
#BACDL_DEFINE = -DBACDL_ARCNET
#BACDL_DEFINE = -DBACDL_MSTP
BACDL_DEFINE = -DBACDL_BIP -DBIP_DEBUG
BACNET_DEFINES = -DPRINT_ENABLED=1
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE)
+1 -2
View File
@@ -114,8 +114,7 @@ int main(int argc, char *argv[])
Network_Interface = argv[2];
if (argc > 3)
bip_set_port(strtol(argv[3], NULL, 0));
#endif
#if defined(BACDL_MSTP)
#elif defined(BACDL_MSTP)
RS485_Set_Baud_Rate(38400);
dlmstp_set_max_info_frames(1);
dlmstp_set_max_master(127);