summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 03:58:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-17 03:58:06 +0000
commit9a38bd92b56049c9c7aa7f861fe04b97069581ed (patch)
tree876f90caa03e9231069c6f47c8a8dc96db28d620 /nuttx/include
parentca89c0d7c4d4500d0b685417303dcb59b5a0e2aa (diff)
downloadpx4-nuttx-9a38bd92b56049c9c7aa7f861fe04b97069581ed.tar.gz
px4-nuttx-9a38bd92b56049c9c7aa7f861fe04b97069581ed.tar.bz2
px4-nuttx-9a38bd92b56049c9c7aa7f861fe04b97069581ed.zip
Need to generalize the planeinfo type as well
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2600 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/nx.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/nuttx/include/nuttx/nx.h b/nuttx/include/nuttx/nx.h
index 20e0c517d..1392367b1 100644
--- a/nuttx/include/nuttx/nx.h
+++ b/nuttx/include/nuttx/nx.h
@@ -68,14 +68,17 @@
#define NX_MOUSE_CENTERBUTTON 0x02
#define NX_MOUSE_RIGHTBUTTON 0x04
-/* NX_DRIVERTYPE selects either the framebuffer or LCD driver. A define is
- * used instead of a typedef to avoid type mismatches.
+/* NX_DRIVERTYPE selects either the framebuffer or LCD driver; NX_PLANINFO_TYPE
+ * hides the difference in the framebuffer and LCD driver plane types. defines
+ * are used instead of a typedefs to avoid type mismatches.
*/
#ifdef CONFIG_NX_LCDDRIVER
-# define NX_DRIVERTYPE struct lcd_dev_s
+# define NX_DRIVERTYPE struct lcd_dev_s
+# define NX_PLANEINFOTYPE struct lcd_planeinfo_s
#else
-# define NX_DRIVERTYPE struct fb_vtable_s
+# define NX_DRIVERTYPE struct fb_vtable_s
+# define NX_PLANEINFOTYPE struct fb_planeinfo_s
#endif
/****************************************************************************