diff --git a/test_openwsn_pkg/Makefile b/test_openwsn_pkg/Makefile new file mode 100644 index 0000000..b47162d --- /dev/null +++ b/test_openwsn_pkg/Makefile @@ -0,0 +1,41 @@ +#### +#### Sample Makefile for building apps with the RIOT OS +#### +#### The Sample Filesystem Layout is: +#### /this makefile +#### ../RIOT +#### ../../boards for board definitions (if you have one or more) +#### + +# name of your project +export PROJECT = test_openwsn_pkg + +# for easy switching of boards +ifeq ($(strip $(BOARD)),) + export BOARD = iot-lab_M3 +endif + +# this has to be the absolute path of the RIOT-base dir +export RIOTBASE = $(CURDIR)/../../RIOT + +ifeq ($(BOARD),iot-lab_M3) + include Makefile.$(BOARD) +endif + +# Uncomment this to enable code in RIOT that does safety checking +# which is not needed in a production environment but helps in the +# development process: +#CFLAGS += -DDEVELHELP + +# Uncomment this to hide compiler invocation lines: +#QUIET = 1 + +USEPKG += openwsn + +export INCLUDES += -I${RIOTBASE}/drivers/include/ \ + -I${RIOTBASE}/pkg/openwsn/RB-1.4/openwsn + +include $(RIOTBASE)/Makefile.include + +distclean: clean + $(MAKE) -C $(RIOTBASE)/pkg/$(USEPKG) distclean diff --git a/test_openwsn_pkg/Makefile.iot-lab_M3 b/test_openwsn_pkg/Makefile.iot-lab_M3 new file mode 100644 index 0000000..f5d30a4 --- /dev/null +++ b/test_openwsn_pkg/Makefile.iot-lab_M3 @@ -0,0 +1,5 @@ +export RIOTBOARD =$(CURDIR)/../../thirdparty_boards +export RIOTCPU =$(CURDIR)/../../thirdparty_cpu + +reset: + $(RIOTCPU)/$(CPU)/tools/reset.sh diff --git a/test_openwsn_pkg/main.c b/test_openwsn_pkg/main.c new file mode 100644 index 0000000..6d885e9 --- /dev/null +++ b/test_openwsn_pkg/main.c @@ -0,0 +1,16 @@ +/* + * main.c - Test application for OpenWSN on RIOT + * Copyright (C) 2014 Thomas Eichinger + * + * Author : Thomas Eichinger + * + * This file subject to the terms and conditions of the LGPLv2. See the file + * LICENSE in the top level directory for more details. + */ + +#include "openwsn.h" + +void main(void) +{ + openwsn_start_thread(); +}