Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
1b4607ab
Commit
1b4607ab
authored
8 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
auto_init: initialize gnrc_rpl
parent
b986ac33
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.pseudomodules
+1
-0
1 addition, 0 deletions
Makefile.pseudomodules
sys/auto_init/auto_init.c
+9
-0
9 additions, 0 deletions
sys/auto_init/auto_init.c
sys/net/gnrc/routing/rpl/gnrc_rpl_auto_init.c
+54
-0
54 additions, 0 deletions
sys/net/gnrc/routing/rpl/gnrc_rpl_auto_init.c
with
64 additions
and
0 deletions
Makefile.pseudomodules
+
1
−
0
View file @
1b4607ab
PSEUDOMODULES
+=
auto_init_gnrc_rpl
PSEUDOMODULES
+=
conn
PSEUDOMODULES
+=
conn
PSEUDOMODULES
+=
conn_ip
PSEUDOMODULES
+=
conn_ip
PSEUDOMODULES
+=
conn_tcp
PSEUDOMODULES
+=
conn_tcp
...
...
This diff is collapsed.
Click to expand it.
sys/auto_init/auto_init.c
+
9
−
0
View file @
1b4607ab
...
@@ -256,4 +256,13 @@ void auto_init(void)
...
@@ -256,4 +256,13 @@ void auto_init(void)
#endif
#endif
#endif
/* MODULE_AUTO_INIT_SAUL */
#endif
/* MODULE_AUTO_INIT_SAUL */
#ifdef MODULE_AUTO_INIT_GNRC_RPL
#ifdef MODULE_GNRC_RPL
extern
void
auto_init_gnrc_rpl
(
void
);
auto_init_gnrc_rpl
();
#endif
#endif
/* MODULE_AUTO_INIT_GNRC_RPL */
}
}
This diff is collapsed.
Click to expand it.
sys/net/gnrc/routing/rpl/gnrc_rpl_auto_init.c
0 → 100644
+
54
−
0
View file @
1b4607ab
/*
* Copyright (C) 2016 Cenk Gündoğan <mail@cgundogan.de>
*
* 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.
*
*/
/*
* @ingroup gnrc_rpl
* @{
*
* @file
* @brief Auto initialization for gnrc_rpl
*
* @author Cenk Gündoğan <mail@cgundogan.de>
*/
#ifdef MODULE_AUTO_INIT_GNRC_RPL
#include
"net/gnrc.h"
#include
"net/gnrc/rpl.h"
#define ENABLE_DEBUG (0)
#include
"debug.h"
void
auto_init_gnrc_rpl
(
void
)
{
#if (GNRC_NETIF_NUMOF == 1)
kernel_pid_t
ifs
[
GNRC_NETIF_NUMOF
];
gnrc_netif_get
(
ifs
);
DEBUG
(
"auto_init_gnrc_rpl: initializing RPL on interface %"
PRIkernel_pid
"
\n
"
,
ifs
[
0
]);
gnrc_rpl_init
(
ifs
[
0
]);
return
;
#elif defined(GNRC_RPL_DEFAULT_NETIF)
if
(
gnrc_netif_exist
(
GNRC_RPL_DEFAULT_NETIF
))
{
DEBUG
(
"auto_init_gnrc_rpl: initializing RPL on interface %"
PRIkernel_pid
"
\n
"
,
GNRC_RPL_DEFAULT_NETIF
);
gnrc_rpl_init
(
GNRC_RPL_DEFAULT_NETIF
);
return
;
}
DEBUG
(
"auto_init_gnrc_rpl: could not initialize RPL on interface %"
PRIkernel_pid
" - "
"interface does not exist
\n
"
,
GNRC_RPL_DEFAULT_NETIF
);
return
;
#else
DEBUG
(
"auto_init_gnrc_rpl: please specify an interface by setting GNRC_RPL_DEFAULT_NETIF
\n
"
);
#endif
}
#else
typedef
int
dont_be_pedantic
;
#endif
/* MODULE_AUTO_INIT_GNRC_RPL */
/** @} */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment