diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-28 17:12:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-28 17:12:11 +0000 |
commit | fd7c0194d583e6f7d60e29f5fdd88b3a68b0d0de (patch) | |
tree | 66aa1997340b2fef132b29401f6bc33c0fe18857 /nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h | |
parent | ff4412a0c33bfc12c87a98e354a092be5c0246a6 (diff) | |
download | px4-nuttx-fd7c0194d583e6f7d60e29f5fdd88b3a68b0d0de.tar.gz px4-nuttx-fd7c0194d583e6f7d60e29f5fdd88b3a68b0d0de.tar.bz2 px4-nuttx-fd7c0194d583e6f7d60e29f5fdd88b3a68b0d0de.zip |
In LPC1788 24-bit color mode, we need to tell NX that the resolution if 32 bpp; Add interfaces to control Open1788 backlight
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5798 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h b/nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h index 1545a7a56..2b560bb47 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_lcd.h @@ -41,6 +41,9 @@ ************************************************************************************/ #include <nuttx/config.h> + +#include <stdbool.h> + #include <nuttx/nx/nxglib.h> #include "chip/lpc17_lcd.h" @@ -81,7 +84,7 @@ # define LPC17_BPP 16 # define LPC17_COLOR_FMT FB_FMT_Y16 #elif defined(CONFIG_LPC17_LCD_BPP24) -# define LPC17_BPP 24 +# define LPC17_BPP 32 /* Only 24 of 32 bits used for RGB */ # define LPC17_COLOR_FMT FB_FMT_RGB24 # ifndef CONFIG_LPC17_LCD_TFTPANEL # error "24 BPP is only available for a TFT panel" @@ -164,7 +167,7 @@ */ /************************************************************************************ - * Name: lpc17_lcdclear + * Name: lpc17_lcdclear * * Description: * This is a non-standard LCD interface just for the LPC17xx. Clearing the display @@ -176,4 +179,17 @@ void lpc17_lcdclear(nxgl_mxpixel_t color); +/************************************************************************************ + * Name: lpc17_backlight + * + * Description: + * If CONFIG_LPC17_LCD_BACKLIGHT is defined, then the board-specific logic must + * provide this interface to turn the backlight on and off. + * + ************************************************************************************/ + +#ifdef CONFIG_LPC17_LCD_BACKLIGHT +void lpc17_backlight(bool blon); +#endif + #endif /* __ARCH_ARM_SRC_LPC17XX_LPC17_LCD_H */ |