diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-28 19:48:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-28 19:48:26 +0000 |
commit | 2def040cb811a71cf5e59effb304c47897640b5a (patch) | |
tree | d5af02e86fca6db39ff126655f20eb43ccacb13e /nuttx/configs/stm3220g-eval/Kconfig | |
parent | f01a56f6ca729b143cb2a65c108fac534bc76f10 (diff) | |
download | px4-nuttx-2def040cb811a71cf5e59effb304c47897640b5a.tar.gz px4-nuttx-2def040cb811a71cf5e59effb304c47897640b5a.tar.bz2 px4-nuttx-2def040cb811a71cf5e59effb304c47897640b5a.zip |
Bring STM3220G-EVAL board configurations to same level as STM3240G-EVAL
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4779 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3220g-eval/Kconfig')
-rw-r--r-- | nuttx/configs/stm3220g-eval/Kconfig | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/nuttx/configs/stm3220g-eval/Kconfig b/nuttx/configs/stm3220g-eval/Kconfig index 7ca890fe8..05f0cc5ea 100644 --- a/nuttx/configs/stm3220g-eval/Kconfig +++ b/nuttx/configs/stm3220g-eval/Kconfig @@ -16,4 +16,82 @@ config ARCH_BUTTONS ---help--- "Support interfaces to use buttons provided by the board." +config STM3220G_LCD + bool "Select support for the STM3210E-EVAL LCD" + default y + depends on STM32_FSMC + +choice + prompt "STM3220G-EVAL LCD Orientation" + default LCD_LANDSCAPE + depends on STM3220G_LCD + +config LCD_LANDSCAPE + bool "320x240 landscape display" + ---help--- + Define for 320x240 display "landscape" support. Default is this 320x240 + "landscape" orientation. + + For the STM3220G-EVAL board, the edge opposite from the row of buttons + is used as the top of the display in this orientation. + +config LCD_RLANDSCAPE + bool "320x240 reverse landscape display" + ---help--- + Define for 320x240 display "reverse landscape" support. Default is this 320x240 + "landscape" orientation. + + For the STM3220G-EVAL board, the edge next to the row of buttons + is used as the top of the display in this orientation. + +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. + + In this orientation, the top of the display is to the left + of the buttons (if the board is held so that the buttons are at the + botton of the board). + +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. + + In this orientation, the top of the display is to the right + of the buttons (if the board is held so that the buttons are at the + botton of the board). + +endchoice + +config LCD_RDSHIFT + int "LCD data shift" + default 5 + depends on STM3220G_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 STM3220G_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 STM3220G_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 |