Browse Source

test

test^2
wangchenyang 8 months ago
parent
commit
5adb25ede0
  1. 19
      06MultipleTcp/TcpMaster/Makefile
  2. 0
      06MultipleTcp/TcpMaster/TcpMaster.c
  3. 19
      06MultipleTcp/TcpSlave/Makefile
  4. BIN
      06MultipleTcp/TcpSlave/TcpSlave
  5. 0
      06MultipleTcp/TcpSlave/TcpSlave.c
  6. BIN
      06MultipleTcp/TcpSlave/TcpSlave.o
  7. 1
      06MultipleTcp/TcpSlave/output.log
  8. 19
      06MultipleTcp/TcpSlave01/Makefile
  9. BIN
      06MultipleTcp/TcpSlave01/TcpSlave
  10. 0
      06MultipleTcp/TcpSlave01/TcpSlave.c
  11. BIN
      06MultipleTcp/TcpSlave01/TcpSlave.o
  12. 19
      07ARMtestRTU/RTUMaster/Makefile
  13. BIN
      07ARMtestRTU/RTUMaster/RTUMaster
  14. 0
      07ARMtestRTU/RTUMaster/RTUMaster.c
  15. BIN
      07ARMtestRTU/RTUMaster/RTUMaster.o
  16. 19
      07ARMtestRTU/RTUSlave/Makefile
  17. BIN
      07ARMtestRTU/RTUSlave/RTUSlave
  18. 0
      07ARMtestRTU/RTUSlave/RTUSlave.c
  19. BIN
      07ARMtestRTU/RTUSlave/RTUSlave.o

19
06MultipleTcp/TcpMaster/Makefile

@ -0,0 +1,19 @@
CC = gcc
CFLAGS = -Wall
LDFLAGS = -lmodbus
SRCS = TcpMaster.c
OBJS = $(SRCS:.c=.o)
EXEC = TcpMaster
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(EXEC)

0
TcpMaster.c → 06MultipleTcp/TcpMaster/TcpMaster.c

19
06MultipleTcp/TcpSlave/Makefile

@ -0,0 +1,19 @@
CC = gcc
CFLAGS = -Wall
LDFLAGS = -lmodbus
SRCS = TcpSlave.c
OBJS = $(SRCS:.c=.o)
EXEC = TcpSlave
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(EXEC)

BIN
06MultipleTcp/TcpSlave/TcpSlave

Binary file not shown.

0
TcpSlave.c → 06MultipleTcp/TcpSlave/TcpSlave.c

BIN
06MultipleTcp/TcpSlave/TcpSlave.o

Binary file not shown.

1
06MultipleTcp/TcpSlave/output.log

@ -0,0 +1 @@

19
06MultipleTcp/TcpSlave01/Makefile

@ -0,0 +1,19 @@
CC = gcc
CFLAGS = -Wall
LDFLAGS = -lmodbus
SRCS = TcpSlave.c
OBJS = $(SRCS:.c=.o)
EXEC = TcpSlave
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(EXEC)

BIN
06MultipleTcp/TcpSlave01/TcpSlave

Binary file not shown.

0
TcpSlave1.c → 06MultipleTcp/TcpSlave01/TcpSlave.c

BIN
06MultipleTcp/TcpSlave01/TcpSlave.o

Binary file not shown.

19
07ARMtestRTU/RTUMaster/Makefile

@ -0,0 +1,19 @@
CC = arm-linux-gnueabi-gcc
CFLAGS = -Wall
LDFLAGS = -lmodbus
SRCS = RTUMaster.c
OBJS = $(SRCS:.c=.o)
EXEC = RTUMaster
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(EXEC)

BIN
07ARMtestRTU/RTUMaster/RTUMaster

Binary file not shown.

0
RTUMaster.c → 07ARMtestRTU/RTUMaster/RTUMaster.c

BIN
07ARMtestRTU/RTUMaster/RTUMaster.o

Binary file not shown.

19
07ARMtestRTU/RTUSlave/Makefile

@ -0,0 +1,19 @@
CC = arm-linux-gnueabi-gcc
CFLAGS = -Wall
LDFLAGS = -lmodbus
SRCS = RTUSlave.c
OBJS = $(SRCS:.c=.o)
EXEC = RTUSlave
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(EXEC)

BIN
07ARMtestRTU/RTUSlave/RTUSlave

Binary file not shown.

0
RTUSlave.c → 07ARMtestRTU/RTUSlave/RTUSlave.c

BIN
07ARMtestRTU/RTUSlave/RTUSlave.o

Binary file not shown.
Loading…
Cancel
Save