mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
In all up_initialize() functions, automatically initialize TUN driver is so configureded
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <nuttx/board.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/net/loopback.h>
|
||||
#include <nuttx/net/tun.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -188,5 +189,11 @@ void up_initialize(void)
|
||||
(void)localhost_initialize();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET_TUN
|
||||
/* Initialize the TUN device */
|
||||
|
||||
(void)tun_initialize();
|
||||
#endif
|
||||
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user