diff --git a/bacnet-stack/ports/arm7/bip.c b/bacnet-stack/ports/arm7/bip.c index f28eefb6..40519495 100644 --- a/bacnet-stack/ports/arm7/bip.c +++ b/bacnet-stack/ports/arm7/bip.c @@ -64,8 +64,8 @@ bool bip_valid(void) void bip_cleanup(void) { -// if (bip_valid()) -// close(BIP_Socket); +/* if (bip_valid()) */ +/* close(BIP_Socket); */ BIP_Socket = -1; return; @@ -74,7 +74,7 @@ void bip_cleanup(void) /* set using network byte order */ void bip_set_addr(uint32_t net_address) { -// BIP_Address.s_addr = ntohl(net_address); +/* BIP_Address.s_addr = ntohl(net_address); */ BIP_Address.s_addr = net_address; } @@ -87,7 +87,7 @@ uint32_t bip_get_addr(void) /* set using network byte order */ void bip_set_broadcast_addr(uint32_t net_address) { -// BIP_Broadcast_Address.s_addr = ntohl(net_address); +/* BIP_Broadcast_Address.s_addr = ntohl(net_address); */ BIP_Broadcast_Address.s_addr = net_address; } @@ -128,8 +128,8 @@ int bip_send_pdu(BACNET_ADDRESS * dest, /* destination address */ (void) npdu_data; /* assumes that the driver has already been initialized */ -// if (BIP_Socket < 0) -// return BIP_Socket; +/* if (BIP_Socket < 0) */ +/* return BIP_Socket; */ mtu[0] = BVLL_TYPE_BACNET_IP; bip_dest.sin_family = AF_INET; diff --git a/bacnet-stack/ports/arm7/net.h b/bacnet-stack/ports/arm7/net.h index 7e1a5412..2e81e570 100644 --- a/bacnet-stack/ports/arm7/net.h +++ b/bacnet-stack/ports/arm7/net.h @@ -35,15 +35,15 @@ struct sockaddr { struct in_addr { - uint32_t s_addr; // load with inet_aton() + uint32_t s_addr; /* load with inet_aton() */ }; struct sockaddr_in { - int16_t sin_family; // e.g. AF_INET - uint16_t sin_port; // e.g. htons(3490) - struct in_addr sin_addr; // see struct in_addr, below - char sin_zero[8]; // zero this if you want to + int16_t sin_family; /* e.g. AF_INET */ + uint16_t sin_port; /* e.g. htons(3490) */ + struct in_addr sin_addr; /* see struct in_addr, below */ + char sin_zero[8]; /* zero this if you want to */ }; diff --git a/bacnet-stack/ports/arm7/stdbool.h b/bacnet-stack/ports/arm7/stdbool.h index 7c48dbc9..71a283e0 100644 --- a/bacnet-stack/ports/arm7/stdbool.h +++ b/bacnet-stack/ports/arm7/stdbool.h @@ -5,7 +5,7 @@ #ifndef __cplusplus -//typedef int _Bool; +/*typedef int _Bool; */ #ifndef bool #define bool _Bool #endif