2015-09-21 11:00:32 +02:00
|
|
|
CONTIKI_PROJECT = border-router
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
TARGET ?= jn516x
|
|
|
|
|
|
|
|
CONTIKI=../../../..
|
|
|
|
|
|
|
|
CONTIKI_WITH_IPV6 = 1
|
|
|
|
|
2016-02-03 10:35:48 +01:00
|
|
|
MODULES += core/net/mac/tsch
|
2015-09-21 11:00:32 +02:00
|
|
|
PROJECTDIRS += .. ../tools
|
|
|
|
PROJECT_SOURCEFILES += rpl-tools.c
|
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
|
|
|
|
|
|
|
ifeq ($(PREFIX),)
|
2015-09-30 16:06:58 +02:00
|
|
|
PREFIX = fd00::1/64
|
2015-09-21 11:00:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
|
|
|
#using XON/XOFF flow control
|
|
|
|
connect-router-sw: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -X -B 1000000 $(PREFIX)
|
|
|
|
|
|
|
|
#using hw flow control
|
|
|
|
connect-router-hw: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -H -B 1000000 $(PREFIX)
|
|
|
|
|
|
|
|
#using no flow control
|
|
|
|
connect-router-no: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -B 1000000 $(PREFIX)
|