summaryrefslogtreecommitdiff
path: root/nuttx/examples/nx/nx_main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-20 02:20:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-20 02:20:42 +0000
commit6ea53310e8e8a3368169142116491f45a0195dc2 (patch)
treeecc38e6b3d6bcf63e820c9c5505e4c0df19ad26d /nuttx/examples/nx/nx_main.c
parent1a492f277ccd2a0a0fc8b6d35cb1083fca37a502 (diff)
downloadpx4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.tar.gz
px4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.tar.bz2
px4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.zip
sam3u LCD driver is code complete (but untested)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2619 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nx/nx_main.c')
-rw-r--r--nuttx/examples/nx/nx_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/examples/nx/nx_main.c b/nuttx/examples/nx/nx_main.c
index 0104c4291..b63429a0f 100644
--- a/nuttx/examples/nx/nx_main.c
+++ b/nuttx/examples/nx/nx_main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/nx/nx_main.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -431,6 +431,8 @@ static inline int nxeg_suinitialize(void)
return ERROR;
}
+ /* Get the device instance */
+
dev = up_lcdgetdev(CONFIG_EXAMPLES_NX_DEVNO);
if (!dev)
{
@@ -438,6 +440,10 @@ static inline int nxeg_suinitialize(void)
g_exitcode = NXEXIT_LCDGETDEV;
return ERROR;
}
+
+ /* Turn the LCD on at 75% power */
+
+ (void)dev->setpower(dev, (3*CONFIG_LCD_MAXPOWER/4));
#else
/* Initialize the frame buffer device */