summaryrefslogtreecommitdiff
path: root/nuttx/examples/nx/nx_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-29 16:02:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-29 16:02:05 +0000
commit28e31db34fcdf639b830836d94bdbda3c11a43b3 (patch)
treec85e646d063216815197921176984db08b7dae07 /nuttx/examples/nx/nx_internal.h
parent5cd294a991d603dd6f6bf1fda02b7c10e725d2c7 (diff)
downloadpx4-nuttx-28e31db34fcdf639b830836d94bdbda3c11a43b3.tar.gz
px4-nuttx-28e31db34fcdf639b830836d94bdbda3c11a43b3.tar.bz2
px4-nuttx-28e31db34fcdf639b830836d94bdbda3c11a43b3.zip
Add more configuration checking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1345 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nx/nx_internal.h')
-rw-r--r--nuttx/examples/nx/nx_internal.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/nuttx/examples/nx/nx_internal.h b/nuttx/examples/nx/nx_internal.h
index 6ae52869b..ce1f61771 100644
--- a/nuttx/examples/nx/nx_internal.h
+++ b/nuttx/examples/nx/nx_internal.h
@@ -53,10 +53,6 @@
# define CONFIG_EXAMPLES_NX_VPLANE 0
#endif
-#ifndef CONFIG_EXAMPLES_NX_STACKSIZE
-# define CONFIG_EXAMPLES_NX_STACKSIZE 2048
-#endif
-
#ifndef CONFIG_EXAMPLES_NX_BGCOLOR
# define CONFIG_EXAMPLES_NX_BGCOLOR ' '
#endif
@@ -69,6 +65,21 @@
# define CONFIG_EXAMPLES_NX_COLOR2 '2'
#endif
+#ifdef CONFIG_NX_MULTIUSER
+# ifdef CONFIG_DISABLE_MQUEUE
+# error "The multi-threaded example requires MQ support (CONFIG_DISABLE_MQUEUE=n)"
+# endif
+# ifdef CONFIG_DISABLE_SIGNALS
+# error "This example requires signal support (CONFIG_DISABLE_SIGNALS=n)"
+# endif
+# ifndef CONFIG_EXAMPLES_NX_STACKSIZE
+# define CONFIG_EXAMPLES_NX_STACKSIZE 2048
+# endif
+# ifndef CONFIG_EXAMPLES_NX_SERVERPRIO
+# define CONFIG_EXAMPLES_NX_SERVERPRIO 100
+# endif
+#endif
+
/* Debug ********************************************************************/
#ifdef CONFIG_CPP_HAVE_VARARGS