summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/Kconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-26 22:10:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-26 22:10:40 +0000
commita25451807c7806c182b03d148accead73d93849f (patch)
tree52aa741de46fad256f2880248f8b73a13f1e8470 /nuttx/configs/stm3240g-eval/Kconfig
parent03faa738d6105b1ec06125bc3232a7d5295414fe (diff)
downloadpx4-nuttx-a25451807c7806c182b03d148accead73d93849f.tar.gz
px4-nuttx-a25451807c7806c182b03d148accead73d93849f.tar.bz2
px4-nuttx-a25451807c7806c182b03d148accead73d93849f.zip
Add completed LCD driver for the STM3240G-EVAL
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4662 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/Kconfig')
-rw-r--r--nuttx/configs/stm3240g-eval/Kconfig58
1 files changed, 58 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/Kconfig b/nuttx/configs/stm3240g-eval/Kconfig
index a451e1b73..e47bd4121 100644
--- a/nuttx/configs/stm3240g-eval/Kconfig
+++ b/nuttx/configs/stm3240g-eval/Kconfig
@@ -16,4 +16,62 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config STM3240G_LCD
+ bool "Select support for the STM3210E-EVAL LCD"
+ default y
+ depends on STM32_FSMC
+
+choice
+ prompt "STM3240G-EVAL LCD Orientation"
+ default LCD_LANDSCAPE
+ depends on STM3240G_LCD
+
+config LCD_LANDSCAPE
+ bool "320x240 landscape display"
+ ---help---
+ Define for 320x240 display "landscape" support. Default is this 320x240
+ "landscape" orientation (this setting is informative only... not used).
+
+config LCD_PORTRAIT
+ bool "240x320 portrait display"
+ ---help---
+ Define for 240x320 display "portrait" orientation support. In this
+ orientation, the STM3210E-EVAL's LCD ribbon cable is at the bottom of
+ the display. Default is 320x240 "landscape" orientation.
+
+config LCD_RPORTRAIT
+ bool "240x320 reverse portrait display"
+ ---help---
+ Define for 240x320 display "reverse portrait" orientation support. In
+ this orientation, the STM3210E-EVAL's LCD ribbon cable is at the top
+ of the display. Default is 320x240 "landscape" orientation.
+
+endchoice
+
+config LCD_RDSHIFT
+ int "LCD data shift"
+ default 5
+ depends on STM3240G_LCD
+ ---help---
+ When reading 16-bit gram data, there appears to be a shift in the returned
+ data. This value fixes the offset. Default 5.
+
+config CONFIG_STM32_ILI9320_DISABLE
+ bool "Disable LCD_ILI9320 (and LCD_ILI9321) support"
+ default n
+ depends on STM3240G_LCD
+ ---help---
+ The LCD driver dynamically selects the LCD based on the reported LCD
+ ID value. However, code size can be reduced by suppressing support for
+ individual LCDs using this option.
+
+config CONFIG_STM32_ILI9325_DISABLE
+ bool "Disable LCD_ILI9325 support"
+ default n
+ depends on STM3240G_LCD
+ ---help---
+ The LCD driver dynamically selects the LCD based on the reported LCD
+ ID value. However, code size can be reduced by suppressing support for
+ individual LCDs using this option
+
endif