-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4713 from authmillenon/pkg/port/emb6
pkg: initial import of emb6 stack
- Loading branch information
Showing
26 changed files
with
4,077 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PKG_NAME=emb6 | ||
PKG_URL=https://github.com/hso-esk/emb6.git | ||
PKG_VERSION=14e4a3cfff01644e078870e14e16a1fe60dcc895 | ||
PKG_BUILDDIR ?= $(BINDIRBASE)/pkg/$(BOARD)/$(PKG_NAME) | ||
|
||
.PHONY: all | ||
|
||
all: git-download | ||
"$(MAKE)" -C $(PKG_BUILDDIR) | ||
|
||
include $(RIOTBASE)/pkg/pkg.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
PKG_BUILDDIR ?= $(BINDIRBASE)/pkg/$(BOARD)/emb6 | ||
EMB6_DIR := $(PKG_BUILDDIR) | ||
EMB6_CONTRIB := $(RIOTBASE)/pkg/emb6/contrib | ||
|
||
INCLUDES += -I$(PKG_BUILDDIR)/target | ||
INCLUDES += -I$(RIOTBASE)/pkg/emb6/include | ||
|
||
ifeq (,$(filter emb6_router,$(USEMODULE))) | ||
CFLAGS += -DEMB6_CONF_ROUTER=FALSE | ||
endif | ||
|
||
ifneq (,$(filter emb6_bsp,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/target/bsp | ||
endif | ||
|
||
ifneq (,$(filter emb6_common,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6 | ||
INCLUDES += -I$(EMB6_DIR)/emb6 | ||
endif | ||
|
||
ifneq (,$(filter emb6_contrib,$(USEMODULE))) | ||
DIRS += $(EMB6_CONTRIB) | ||
endif | ||
|
||
ifneq (,$(filter emb6_conn_udp,$(USEMODULE))) | ||
DIRS += $(EMB6_CONTRIB)/conn/udp | ||
endif | ||
|
||
ifneq (,$(filter emb6_ipv6,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/net/ipv6 | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/ipv6 | ||
endif | ||
|
||
ifneq (,$(filter emb6_ipv6_multicast,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/net/ipv6/multicast | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/ipv6/multicast | ||
endif | ||
|
||
ifneq (,$(filter emb6_llsec,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/mac/llsec | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/mac/llsec | ||
endif | ||
|
||
ifneq (,$(filter emb6_mac,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/mac | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/mac | ||
endif | ||
|
||
ifneq (,$(filter emb6_netdev2,$(USEMODULE))) | ||
DIRS += $(EMB6_CONTRIB)/netdev2 | ||
endif | ||
|
||
ifneq (,$(filter emb6_rpl,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/net/rpl | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/rpl | ||
endif | ||
|
||
ifneq (,$(filter emb6_sicslowpan,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/net/sicslowpan | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/net/sicslowpan | ||
endif | ||
|
||
ifneq (,$(filter emb6_sock,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/emb6/src/tport | ||
INCLUDES += -I$(EMB6_DIR)/emb6/inc/tport | ||
endif | ||
|
||
ifneq (,$(filter emb6_utils,$(USEMODULE))) | ||
DIRS += $(EMB6_DIR)/utils/src | ||
INCLUDES += -I$(EMB6_DIR)/utils/inc | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MODULE = emb6_contrib | ||
|
||
include $(RIOTBASE)/Makefile.base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (C) Freie Universität Berlin | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
* General Public License v2.1. See the file LICENSE in the top level | ||
* directory for more details. | ||
*/ | ||
|
||
/** | ||
* @{ | ||
* | ||
* @file | ||
* @author Martine Lenders <[email protected]> | ||
*/ | ||
|
||
#include "emb6/netdev2.h" | ||
|
||
#include "etimer.h" | ||
#include "board_conf.h" | ||
|
||
#define ENABLE_DEBUG (0) | ||
#include "debug.h" | ||
|
||
uint8_t board_conf(s_ns_t *ps_nStack) | ||
{ | ||
if (ps_nStack != NULL) { | ||
ps_nStack->inif = &emb6_netdev2_driver; | ||
etimer_init(); | ||
return ps_nStack->inif->init(ps_nStack); | ||
} | ||
else { | ||
DEBUG("Network stack pointer is NULL"); | ||
return 0; | ||
} | ||
} | ||
|
||
/** @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MODULE = emb6_conn_udp | ||
|
||
include $(RIOTBASE)/Makefile.base |
Oops, something went wrong.