summaryrefslogtreecommitdiff
path: root/nuttx/drivers/lcd/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-20 15:27:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-20 15:27:56 -0600
commit618aca9ee111bedba35cc414ee54302d074a2410 (patch)
treeb9d2fe12f58c7a265d5431225ad4bd9a885b6130 /nuttx/drivers/lcd/Kconfig
parenta049aba3dd939808136c019000122dd0bf019a33 (diff)
downloadpx4-nuttx-618aca9ee111bedba35cc414ee54302d074a2410.tar.gz
px4-nuttx-618aca9ee111bedba35cc414ee54302d074a2410.tar.bz2
px4-nuttx-618aca9ee111bedba35cc414ee54302d074a2410.zip
rivers: enable usage of ili9341
This enables build and configuration of the ili9341 lcd interface driver. Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
Diffstat (limited to 'nuttx/drivers/lcd/Kconfig')
-rw-r--r--nuttx/drivers/lcd/Kconfig121
1 files changed, 120 insertions, 1 deletions
diff --git a/nuttx/drivers/lcd/Kconfig b/nuttx/drivers/lcd/Kconfig
index 46569b77e..cfbbdd894 100644
--- a/nuttx/drivers/lcd/Kconfig
+++ b/nuttx/drivers/lcd/Kconfig
@@ -100,6 +100,7 @@ config P14201_FRAMEBUFFER
All pixel writes must be aligned to byte boundaries.
The latter limitation effectively reduces the 128x96 disply to 64x96.
+
endif
config LCD_NOKIA6100
@@ -203,6 +204,7 @@ config NOKIA6100_RGBORD
---help---
Display RGB order, 0 or 1, Default: 0
Required LCD driver settings:
+
endif
config LCD_MIO283QT2
@@ -283,7 +285,6 @@ config LCD_UG2864HSWEG01
Required SPI driver settings:
SPI_CMDDATA - Include support for cmd/data selection.
-
config LCD_UG2832HSWEG04
bool "UG-2832HSWEG04 OLED Display Module"
default n
@@ -540,6 +541,124 @@ config LCD_RLANDSCAPE
endchoice
+config LCD_ILI9341
+ bool "ILI9341 LCD Single Chip Driver"
+ default n
+ ---help---
+ LCD Single Chip Driver, ILI9341, ILI Technology Corp. Used
+ with the STM32F429i Discovery Board.
+
+ Required LCD driver settings:
+ LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
+ LCD_MAXPOWER should be 1: 0=off, 1=on
+
+config LCD_ILI9341_NINTERFACES
+ int "Number of supported display driver"
+ range 1 2
+ default 1
+ depends on LCD_ILI9341
+ ---help---
+ Define the number of supported displays driven by a ili9341 LCD Single
+ Chip Driver.
+
+config LCD_ILI9341_IFACE0
+ bool "(1) LCD Display"
+ depends on LCD_ILI9341_NINTERFACES = 1 || LCD_ILI9341_NINTERFACES = 2
+ ---help---
+ Configure first LCD Display.
+
+if LCD_ILI9341_IFACE0
+choice
+ prompt "LCD Orientation"
+ default LCD_ILI9341_IFACE0_LANDSCAPE
+ ---help---
+ Configure display orientation.
+
+config LCD_ILI9341_IFACE0_LANDSCAPE
+ bool "Landscape orientation"
+ ---help---
+ Define for "landscape" orientation support.
+
+config LCD_ILI9341_IFACE0_PORTRAIT
+ bool "Portrait orientation"
+ ---help---
+ Define for "portrait" orientation support.
+
+config LCD_ILI9341_IFACE0_RLANDSCAPE
+ bool "Reverse landscape orientation"
+ ---help---
+ Define for "reverse landscape" orientation support.
+
+config LCD_ILI9341_IFACE0_RPORTRAIT
+ bool "Reverse portrait display"
+ ---help---
+ Define for "reverse portrait" orientation support.
+
+endchoice
+
+choice
+ prompt "Color format"
+ default LCD_ILI9341_IFACE0_RGB565
+ ---help---
+ LCD color format.
+
+config LCD_ILI9341_IFACE0_RGB565
+ bool "16 bpp RGB565 color format"
+ ---help---
+ 16 bpp RGB565 color format
+
+endchoice
+endif
+
+config LCD_ILI9341_IFACE1
+ bool "(2) LCD Display"
+ depends on LCD_ILI9341_NINTERFACES = 2
+ ---help---
+ Configure second LCD Display.
+
+if LCD_ILI9341_IFACE1
+choice
+ prompt "LCD Orientation"
+ default LCD_ILI9341_IFACE1_LANDSCAPE
+ ---help---
+ Configure display orientation.
+
+config LCD_ILI9341_IFACE1_LANDSCAPE
+ bool "Landscape orientation"
+ ---help---
+ Define for "landscape" orientation support.
+
+config LCD_ILI9341_IFACE1_PORTRAIT
+ bool "Portrait orientation"
+ ---help---
+ Define for "portrait" orientation support.
+
+config LCD_ILI9341_IFACE1_RLANDSCAPE
+ bool "Reverse landscape orientation"
+ ---help---
+ Define for "reverse landscape" orientation support.
+
+config LCD_ILI9341_IFACE1_RPORTRAIT
+ bool "Reverse portrait display"
+ ---help---
+ Define for "reverse portrait" orientation support.
+
+endchoice
+
+choice
+ prompt "Color format"
+ default LCD_ILI9341_IFACE1_RGB565
+ ---help---
+ LCD color format.
+
+config LCD_ILI9341_IFACE1_RGB565
+ bool "16 bpp RGB565 color format"
+ ---help---
+ 16 bpp RGB565 color format
+
+endchoice
+endif
+
comment "Alphanumeric/Segment LCD Devices"
config LCD_LCD1602