Skip to content

Commit cbefed4

Browse files
committed
removed all compiler warnings
1 parent fb1e603 commit cbefed4

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ RUN [ "cross-build-start" ]
66

77
#labeling
88
LABEL maintainer="[email protected]" \
9-
version="V0.9.1.0" \
9+
version="V0.9.2" \
1010
description="Debian(jessie) with netX real-time ethernet programming examples"
1111

1212
#version
13-
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 0.9.1.0
13+
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 0.9.2
1414

1515
#install ssh, gcc, create user "pi" and make him sudo
1616
RUN apt-get update \

examples/includes/App.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ typedef struct APP_DATA_Ttag {
5959
APP_OUTPUT_DATA_T tOutputData;
6060
} APP_DATA_T;
6161

62+
uint32_t Protocol_SendFirstPacket(APP_DATA_T *ptAppData);
63+
uint32_t Protocol_SendLastPacket(APP_DATA_T *ptAppData);
64+
uint32_t Protocol_PacketHandler( APP_DATA_T *ptAppData );
65+
66+

examples/includes/SystemPackets.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,7 @@ int32_t Sys_SetMacAddressCnf(CIFX_PACKET* ptSetMacAddressCnf);
7373
int32_t Sys_FirmwareIdentifyCnf(CIFX_PACKET* ptFirmwareIdentifyCnf);
7474
int32_t Sys_HardwareInfoCnf(CIFX_PACKET* ptCnf);
7575

76+
void DumpData(unsigned char* pbData, unsigned long ulDataLen);
77+
void DumpPacket(CIFX_PACKET* ptPacket);
78+
7679
#endif /** COMPONENTS_CIFXAPPLICATIONDEMO_INCLUDES_SYSTEMPACKETS_H_ */

examples/sources/ECS_simpleConfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
2626
Version Date Author Description
2727
-------------------------------------------------------------------------------------
28+
9 22.06.2018 AB - add function prototypes to prevent compiler warnings
2829
8 05.01.2018 AB - new netx driver 1.1.3
2930
7 17.11.2017 AB - copying controller outputs to inputs correctly
3031
6 26.07.2017 AB - clear receive mailbox before starting initialization
@@ -55,6 +56,7 @@
5556
#include <termios.h>
5657
#include <unistd.h>
5758
#include <sys/mman.h>
59+
#include <sys/stat.h>
5860
#include <time.h>
5961

6062

examples/sources/EIS_simpleConfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
2828
Version Date Author Description
2929
----------------------------------------------------------------------------------
30+
9 22.06.2018 AB - add function prototypes to prevent compiler warnings
3031
8 05.01.2018 AB - new netx driver 1.1.3
3132
7 17.11.2017 AB - copying controller outputs to inputs correctly
3233
6 26.07.2017 AB - clear receive mailbox before starting initialization
@@ -57,6 +58,7 @@
5758
#include <termios.h>
5859
#include <unistd.h>
5960
#include <sys/mman.h>
61+
#include <sys/stat.h>
6062
#include <time.h>
6163

6264

examples/sources/PNS_simpleConfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
2828
Version Date Author Description
2929
----------------------------------------------------------------------------------
30+
9 22.06.2018 AB - add function prototypes to prevent compiler warnings
3031
8 05.01.2018 AB - new netx driver 1.1.3
3132
7 17.11.2017 AB - copying controller outputs to inputs correctly
3233
6 26.07.2017 AB - clear receive mailbox before starting initialization
@@ -57,6 +58,7 @@
5758
#include <termios.h>
5859
#include <unistd.h>
5960
#include <sys/mman.h>
61+
#include <sys/stat.h>
6062
#include <time.h>
6163

6264

0 commit comments

Comments
 (0)