a70ee0f022
With many open PRs that could benefit from loading SDKs when needed, instead adding vast amounts of code to RIOTs master, this PR provides the "functions" `$(DOWNLOAD_TO_STDOUT)`, `$(DOWNLOAD_TO_FILE)`, and `$(UNZIP_HERE)`. The first "function" takes one argument, the URL from where to download the content. It is then piped to stdout. To be used e.g. with `tar xz`. The second "function" taken two arguments, the destination file name, and the source URL. If the previous invocation was interrupted, then the download gets continued, if possible. The last "function" takes one argument, the source ZIP file. The file gets extracted into the cwd, so best use this "function" with `cd $(SOME_WHERE) &&`. The clumsy name `$(UNZIP_HERE)` is taken because the program "unzip" takes the environment variable `UNZIP` as the source file, even if another file name was given on the command line. The rationale for that is that the hackers of "unzip" hate their users. Also they sacrifice hamsters to Satan. |
||
---|---|---|
.. | ||
patches | ||
.gitignore | ||
apply_patches.sh | ||
Makefile | ||
Makefile.in | ||
Makefile.include | ||
README.md | ||
structure_changes.sh |
OpenWSN on RIOT
This port of OpenWSN to RIOT is based on release RB-1.4 with backported support for the iot-lab_M3 board from the develop branch.
Compatibility
This port of the openwsn stack is compatible with the iot-lab_M3 board only for now. The TelosB board support was temporarily dropped but will return soon again. The hardware dependency will be reduced in the future and thous running on more hardware platforms.
Usage
A test can be found in the projects repository
named test_openwsn_pkg
with an example Makefile
.
Build using
$> export BOARD=iot-lab_M3
$> export PORT=/dev/ttyTHEPORTOFYOURIOTLAB
$> make -B clean flash
To use OpenWSN with RIOT it has to be added to the used packages variable
USEPKG += openwsn
On the first build the archive will be fetched, patched and built.
WARNING A call of make clean
also cleans the OpenWSN tree right now so
changes to the source code will be lost in the next build.