diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-15 18:57:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-15 18:57:24 +0000 |
commit | eac348a697436ceec946239162a85abdd1fd5b7d (patch) | |
tree | a0dddfc34d871773e242d34a8a037c2c71fe3ad6 /nuttx/examples/nx/nx_main.c | |
parent | a778f0c7e076b4bab911945ee2630d767448d147 (diff) | |
download | px4-nuttx-eac348a697436ceec946239162a85abdd1fd5b7d.tar.gz px4-nuttx-eac348a697436ceec946239162a85abdd1fd5b7d.tar.bz2 px4-nuttx-eac348a697436ceec946239162a85abdd1fd5b7d.zip |
Finish framebuffer support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2672 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nx/nx_main.c')
-rw-r--r-- | nuttx/examples/nx/nx_main.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/examples/nx/nx_main.c b/nuttx/examples/nx/nx_main.c index eac7c12b1..06f0c53ec 100644 --- a/nuttx/examples/nx/nx_main.c +++ b/nuttx/examples/nx/nx_main.c @@ -419,7 +419,19 @@ static inline int nxeg_suinitialize(void) FAR NX_DRIVERTYPE *dev; int ret; -#ifdef CONFIG_NX_LCDDRIVER +#if defined(CONFIG_EXAMPLES_NX_EXTERNINIT) + /* Use external graphics driver initialization */ + + message("nxeg_initialize: Initializing external graphics device\n"); + dev = up_nxdrvinit(CONFIG_EXAMPLES_NX_DEVNO); + if (!dev) + { + message("nxeg_initialize: up_nxdrvinit failed, devno=%d\n", CONFIG_EXAMPLES_NX_DEVNO); + g_exitcode = NXEXIT_EXTINITIALIZE; + return ERROR; + } + +#elif defined(CONFIG_NX_LCDDRIVER) /* Initialize the LCD device */ message("nxeg_initialize: Initializing LCD\n"); |