NSH networking: There is now a configuration option that will bring up the network on an separate thread. Since the network bring-up is asynchronous, there are not serial console start-up delays due to the network negotiation time.

This commit is contained in:
Gregory Nutt
2014-08-06 11:59:41 -06:00
parent 291697ba8d
commit dc57af80fc
4 changed files with 117 additions and 8 deletions

View File

@@ -104,7 +104,9 @@
# define CONFIG_NSH_TMPDIR "/tmp"
#endif
/* Networking support */
/* Networking support. Make sure that all non-boolean configuration
* settings have some value.
*/
#ifndef CONFIG_NSH_IPADDR
# define CONFIG_NSH_IPADDR 0x0a000002
@@ -126,6 +128,14 @@
# define CONFIG_NSH_MACADDR 0x00e0deadbeef
#endif
#ifndef CONFIG_NSH_NETINIT_THREAD_STACKSIZE
# define CONFIG_NSH_NETINIT_THREAD_STACKSIZE 1568
#endif
#ifndef CONFIG_NSH_NETINIT_THREAD_PRIORITY
# define CONFIG_NSH_NETINIT_THREAD_PRIORITY 100
#endif
#ifndef CONFIG_NET
# undef CONFIG_NSH_ARCHMAC
#endif