Browse Source

Linux 3D LRF Starting Slave Tree!

AGP
Gagua on MyIR master 6 years ago
parent
commit
7941fed5d2
  1. 4
      Projects/LRF_Slave/LRF_Slave.vpj
  2. 4
      Projects/LRF_Slave/makefile
  3. 2
      lib/hardware/soc/general/3DLRF.h

4
Projects/LRF_Slave/LRF_Slave.vpj

@ -14,7 +14,7 @@
Version="1"
OutputFile="%bdLRF_Server"
CompilerConfigName="Latest Version"
Defines='"/D_THREAD_SAFE" "/D_BSD_SOURCE" "/D_REENTRANT" "/DDEBUG"'>
Defines='"/DPRU_SLAVE"'>
<Menu>
<Target
Name="Compile"
@ -115,7 +115,7 @@
Version="1"
OutputFile="%bdLRF_Server"
CompilerConfigName="Latest Version"
Defines='"/D_THREAD_SAFE" "/D_BSD_SOURCE" "/D_REENTRANT"'>
Defines='"/DPRU_SLAVE"'>
<Menu>
<Target
Name="Compile"

4
Projects/LRF_Slave/makefile

@ -73,7 +73,7 @@ ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
$(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" "-DDEBUG" -O0 -g3 -ggdb -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
COMPILE=g++ -c -x c++ "-DPRU_SLAVE" -O0 -g3 -ggdb -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O0 -g3 -ggdb -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
@ -247,7 +247,7 @@ ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
$(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/transportSerial.o \
$(OUTDIR)/transportSocket.o $(OUTDIR)/xmlParser.o
COMPILE=g++ -c -x c++ "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
COMPILE=g++ -c -x c++ "-DPRU_SLAVE" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O3 -w -lconfig -lpthread -lelf -lcurses -lcdk -lcurl -s -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules

2
lib/hardware/soc/general/3DLRF.h

@ -39,7 +39,7 @@ typedef enum E_LRF_WORK_MODE{
#define NO_BLACK_TARGETS
//#define SHIFT_50 683
#define TGD
#define PRU_SLAVE
///#define PRU_SLAVE Defined by Makefile of Slave!!
#ifdef ONPC_TOTTAL_SIMULATOR
#define SIMULATE_TARGETS

Loading…
Cancel
Save