summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-06 11:59:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-06 11:59:41 -0600
commit35c00972da41e12f4fb0590f4b4d45be91a31bfa (patch)
treec108e3dc1ce6c65c0111cd5a5adbff2521728ac9 /apps/nshlib/nsh.h
parent0b7ec28d62b4499189c474ee5cf29ec1212ff57a (diff)
downloadpx4-nuttx-35c00972da41e12f4fb0590f4b4d45be91a31bfa.tar.gz
px4-nuttx-35c00972da41e12f4fb0590f4b4d45be91a31bfa.tar.bz2
px4-nuttx-35c00972da41e12f4fb0590f4b4d45be91a31bfa.zip
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.
Diffstat (limited to 'apps/nshlib/nsh.h')
-rw-r--r--apps/nshlib/nsh.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h
index 1b76c19af..245690517 100644
--- a/apps/nshlib/nsh.h
+++ b/apps/nshlib/nsh.h
@@ -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