2014-01-06 10:10:47 +01:00
|
|
|
/*
|
2017-10-19 22:52:18 +02:00
|
|
|
* Copyright (C) 2008, 2009, 2010 Kaspar Schleiser <kaspar@schleiser.de>
|
2014-02-03 22:47:31 +01:00
|
|
|
* Copyright (C) 2013 INRIA
|
2015-09-27 18:58:30 +02:00
|
|
|
* Copyright (C) 2013 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2014-01-06 10:10:47 +01:00
|
|
|
*
|
2014-07-31 19:45:27 +02:00
|
|
|
* 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.
|
2014-01-06 10:10:47 +01:00
|
|
|
*/
|
|
|
|
|
2014-02-03 22:47:31 +01:00
|
|
|
/**
|
|
|
|
* @ingroup examples
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Default application that shows a lot of functionality of RIOT
|
|
|
|
*
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
2015-09-27 18:58:30 +02:00
|
|
|
* @author Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2014-02-03 22:47:31 +01:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2014-01-06 10:10:47 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "thread.h"
|
|
|
|
#include "shell.h"
|
|
|
|
|
2015-09-09 11:35:50 +02:00
|
|
|
#ifdef MODULE_NETIF
|
|
|
|
#include "net/gnrc/pktdump.h"
|
|
|
|
#include "net/gnrc.h"
|
|
|
|
#endif
|
|
|
|
|
2014-01-25 11:22:09 +01:00
|
|
|
int main(void)
|
|
|
|
{
|
2015-09-09 11:35:50 +02:00
|
|
|
#ifdef MODULE_NETIF
|
2016-06-07 11:06:58 +02:00
|
|
|
gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL,
|
|
|
|
gnrc_pktdump_pid);
|
2015-09-09 11:35:50 +02:00
|
|
|
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
|
|
|
|
#endif
|
|
|
|
|
2014-01-06 10:10:47 +01:00
|
|
|
(void) puts("Welcome to RIOT!");
|
|
|
|
|
2015-07-14 18:42:46 +02:00
|
|
|
char line_buf[SHELL_DEFAULT_BUFSIZE];
|
|
|
|
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|