In all up_initialize() functions, automatically initialize TUN driver is so configureded

This commit is contained in:
Gregory Nutt
2015-09-06 09:35:29 -06:00
parent b30e6a696e
commit 26eada3446
9 changed files with 63 additions and 0 deletions
+7
View File
@@ -45,6 +45,7 @@
#include <nuttx/board.h>
#include <nuttx/fs/fs.h>
#include <nuttx/net/loopback.h>
#include <nuttx/net/tun.h>
#include <nuttx/syslog/ramlog.h>
#include <nuttx/syslog/syslog_console.h>
@@ -201,6 +202,12 @@ void up_initialize(void)
(void)localhost_initialize();
#endif
#ifdef CONFIG_NET_TUN
/* Initialize the TUN device */
(void)tun_initialize();
#endif
/* Initialize USB -- device and/or host */
up_usbinitialize();