-
Notifications
You must be signed in to change notification settings - Fork 18
test application for OpenWSN on RIOT #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| #### | ||
| #### 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 scheduler statistics for ps | ||
| #CFLAGS += -DSCHEDSTATISTICS | ||
|
|
||
| # If you want to use valgrind, you should recompile native with either | ||
| # HAVE_VALGRIND_H or HAVE_VALGRIND_VALGRIND_H depending on the location | ||
| # of the valgrind header (i.e. <valgrind.h> or <valgrind/valgrind.h>) | ||
| # For more information about the valgrind support of RIOT read: | ||
| # RIOT/cpu/native/README | ||
| #CFLAGS += -DHAVE_VALGRIND_VALGRIND_H | ||
| #CFLAGS += -DHAVE_VALGRIND_H | ||
|
|
||
| # 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}/core/include/ \ | ||
| -I${RIOTBASE}/sys/include/ \ | ||
| -I${RIOTBASE}/drivers/include/ \ | ||
| -I${RIOTBASE}/pkg/openwsn/RB-1.4/openwsn | ||
|
||
|
|
||
| include $(RIOTBASE)/Makefile.include | ||
|
|
||
| distclean: clean | ||
| $(MAKE) -C $(RIOTBASE)/pkg/$(USEPKG) distclean | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export RIOTBOARD =$(CURDIR)/../../thirdparty_boards | ||
| export RIOTCPU =$(CURDIR)/../../thirdparty_cpu | ||
|
|
||
| reset: | ||
| $(RIOTCPU)/$(CPU)/tools/reset.sh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include "openwsn.h" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. License missing. :) |
||
|
|
||
|
|
||
| void main(void) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Linebreak before |
||
| openwsn_start_thread(); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LudwigOrtmann, isn't needed anymore, is it?