From 1fb4789e1bcb8648fcb3122aac56297bbf8fce27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= <mail@cgundogan.de> Date: Thu, 6 Oct 2016 15:57:31 +0200 Subject: [PATCH] auto_init: add ndn-riot --- sys/auto_init/auto_init.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/auto_init/auto_init.c b/sys/auto_init/auto_init.c index ef809d82b8..7d47c6334d 100644 --- a/sys/auto_init/auto_init.c +++ b/sys/auto_init/auto_init.c @@ -84,6 +84,9 @@ #include "net/skald.h" #endif +#ifdef MODULE_NDN_RIOT +#include "ndn-riot/ndn.h" +#endif #define ENABLE_DEBUG (0) #include "debug.h" @@ -265,6 +268,12 @@ void auto_init(void) auto_init_gnrc_uhcpc(); #endif +/* initialize NDN module after the network devices are initialized */ +#ifdef MODULE_NDN_RIOT + DEBUG("Auto init NDN module.\n"); + ndn_init(); +#endif + /* initialize sensors and actuators */ #ifdef MODULE_AUTO_INIT_SAUL DEBUG("auto_init SAUL\n"); -- GitLab