LPC17 LCD driver is code complete and in need of testing

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5788 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2013-03-26 20:06:53 +00:00
parent 9635633be5
commit 43fa294ec9
4 changed files with 22 additions and 2 deletions

View File

@ -191,7 +191,7 @@ CONFIG_LPC17_GPDMA=y
#
# SDIO Configuration
#
# CONFIG_SDIO_DMA is not defined
# CONFIG_SDIO_DMA is not set
# CONFIG_SDIO_WIDTH_D1_ONLY is not set
#

View File

@ -185,7 +185,7 @@ CONFIG_LPC17_GPDMA=y
#
# SDIO Configuration
#
# CONFIG_SDIO_DMA is not defined
# CONFIG_SDIO_DMA is not set
# CONFIG_SDIO_WIDTH_D1_ONLY is not set
#

View File

@ -48,6 +48,7 @@
#include "up_internal.h"
#include "lpc17_emc.h"
#include "lpc17_gpio.h"
#include "open1788.h"
@ -106,6 +107,14 @@ void lpc17_boardinitialize(void)
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
#endif
/* Enable the LCD backlight (unless we can defer this to a later
* initialization phase.
*/
#if defined(CONFIG_LPC17_LCD) && !defined(CONFIG_BOARD_INITIALIZE)
lpc17_configgpio(GPIO_LCD_BL);
#endif
}
/****************************************************************************
@ -124,6 +133,12 @@ void lpc17_boardinitialize(void)
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
{
/* Enable the LCD backlight */
#ifdef CONFIG_LPC17_LCD
lpc17_configgpio(GPIO_LCD_BL);
#endif
/* Perform NSH initialization here instead of from the NSH. This
* alternative NSH initialization is necessary when NSH is ran in user-space
* but the initialization function must run in kernel space.

View File

@ -111,6 +111,11 @@
#define GPIO_SD_CD (GPIO_INTBOTH | GPIO_PULLUP | GPIO_PORT0 | GPIO_PIN13)
/* LCD ******************************************************************************/
/* Backlight enable, P2[1]. Initial state is ON */
#define GPIO_LCD_BL (GPIO_OUTPUT | GPIO_VALUE_ONE | GPIO_PORT2 | GPIO_PIN1)
/************************************************************************************
* Public Types
************************************************************************************/