summaryrefslogtreecommitdiff
path: root/apps/examples/nxconsole/nxcon_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-27 22:33:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-27 22:33:15 +0000
commit3f871cbbae8fc67b704f267fadbb932046afd5ca (patch)
tree111caacdbfa612f833be4c211ac0cfd537ccadcc /apps/examples/nxconsole/nxcon_internal.h
parent92d2b1784ad67d066b589a7e6923b4f76ca84bb2 (diff)
downloadpx4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.gz
px4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.bz2
px4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.zip
Updaes for NX Console
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4531 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxconsole/nxcon_internal.h')
-rw-r--r--apps/examples/nxconsole/nxcon_internal.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/examples/nxconsole/nxcon_internal.h b/apps/examples/nxconsole/nxcon_internal.h
index a4bcd851b..5aaabfe97 100644
--- a/apps/examples/nxconsole/nxcon_internal.h
+++ b/apps/examples/nxconsole/nxcon_internal.h
@@ -71,8 +71,26 @@
# define CONFIG_EXAMPLES_NXCON_VPLANE 0
#endif
+/* Pixel depth. If non provided, pick the smallest enabled pixel depth */
+
#ifndef CONFIG_EXAMPLES_NXCON_BPP
-# define CONFIG_EXAMPLES_NXCON_BPP 32
+# if !defined(CONFIG_NX_DISABLE_1BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 1
+# elif !defined(CONFIG_NX_DISABLE_2BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 2
+# elif !defined(CONFIG_NX_DISABLE_4BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 4
+# elif !defined(CONFIG_NX_DISABLE_8BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 8
+# elif !defined(CONFIG_NX_DISABLE_16BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 16
+//#elif !defined(CONFIG_NX_DISABLE_24BPP)
+//# define CONFIG_NXCONSOLE_BPP 24
+# elif !defined(CONFIG_NX_DISABLE_32BPP)
+# define CONFIG_EXAMPLES_NXCON_BPP 32
+# else
+# error "No pixel depth provided"
+# endif
#endif
/* Background color */