Skip to content

Commit 138d113

Browse files
committed
Adapt default application
1 parent ece2378 commit 138d113

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

examples/default/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RIOTBASE ?= $(CURDIR)/../..
2222
# Comment this out to disable code in RIOT that does safety checking
2323
# which is not needed in a production environment but helps in the
2424
# development process:
25-
CFLAGS += -DDEVELHELP
25+
# CFLAGS += -DDEVELHELP
2626

2727
# Change this to 0 show compiler invocation lines by default:
2828
QUIET ?= 1
@@ -34,10 +34,12 @@ USEMODULE += shell
3434
USEMODULE += shell_commands
3535
USEMODULE += ps
3636
USEMODULE += vtimer
37-
USEMODULE += defaulttransceiver
3837
USEMODULE += config
38+
USEMODULE += ng_netbase
39+
USEMODULE += ng_nomac
40+
USEMODULE += ng_tapnet
41+
USEMODULE += ng_ipv6_netif
3942

40-
FEATURES_OPTIONAL += transceiver
4143
FEATURES_OPTIONAL += config
4244
FEATURES_OPTIONAL += periph_rtc
4345

examples/default/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include <stdio.h>
2626
#include <string.h>
2727

28+
#include "ng_tapnet.h"
29+
#include "net/ng_nomac.h"
2830
#include "thread.h"
2931
#include "posix_io.h"
3032
#include "shell.h"
@@ -147,6 +149,8 @@ static void shell_putchar(int c)
147149
(void) putchar(c);
148150
}
149151

152+
static char nomac_stack[KERNEL_CONF_STACKSIZE_PRINTF];
153+
150154
int main(void)
151155
{
152156
shell_t shell;
@@ -166,6 +170,9 @@ int main(void)
166170

167171
(void) puts("Welcome to RIOT!");
168172

173+
ng_nomac_init(nomac_stack, KERNEL_CONF_STACKSIZE_DEFAULT, PRIORITY_MAIN - 1,
174+
"ng_tapnet", (ng_netdev_t *) &ng_tapnet);
175+
169176
shell_init(&shell, NULL, UART0_BUFSIZE, shell_readc, shell_putchar);
170177

171178
shell_run(&shell);

0 commit comments

Comments
 (0)