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
This commit is contained in:
parent
c9f3eb292c
commit
b27824ec34
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user