summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-19 14:02:26 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-19 14:02:26 -0600
commit5903b69272e51437b8f486f67b49860ae51db25c (patch)
treeb805bdadb91cfba422648e0b7debc4469d5cf033 /nuttx
parent4941fc9839c8de4ba96eda55b32125eb817ef0c4 (diff)
downloadpx4-nuttx-5903b69272e51437b8f486f67b49860ae51db25c.tar.gz
px4-nuttx-5903b69272e51437b8f486f67b49860ae51db25c.tar.bz2
px4-nuttx-5903b69272e51437b8f486f67b49860ae51db25c.zip
stm32f429i-disco: enable configuration of framebuffer support for the ltdc controller
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/configs/stm32f429i-disco/Kconfig38
-rw-r--r--nuttx/configs/stm32f429i-disco/src/Makefile5
2 files changed, 42 insertions, 1 deletions
diff --git a/nuttx/configs/stm32f429i-disco/Kconfig b/nuttx/configs/stm32f429i-disco/Kconfig
index f79ec5ac9..49c503583 100644
--- a/nuttx/configs/stm32f429i-disco/Kconfig
+++ b/nuttx/configs/stm32f429i-disco/Kconfig
@@ -174,4 +174,42 @@ config STM32F429I_DISCO_ILI9341_LCDDEVICE
corresponding to the configured ili9341 lcd device in the driver
section.
+config STM32F429I_DISCO_ILI9341_FBIFACE
+ bool "Enable support for nuttx frambuffer interface"
+ default n
+ depends on STM32F429I_DISCO_ILI9341 && STM32_LTDC
+ ---help---
+ Enable lcd driver support for the nuttx framebuffer interface to displaying
+ data via ltdc controller of the stm32f429i mcu.
+
+if STM32F429I_DISCO_ILI9341_FBIFACE
+
+choice
+ prompt "LCD Orientation"
+ default STM32F429I_DISCO_ILI9341_FBIFACE_PORTRAIT
+ ---help---
+ Configure display orientation.
+
+config STM32F429I_DISCO_ILI9341_FBIFACE_LANDSCAPE
+ bool "Landscape orientation"
+ ---help---
+ Define for "landscape" orientation support.
+
+config STM32F429I_DISCO_ILI9341_FBIFACE_PORTRAIT
+ bool "Portrait orientation"
+ ---help---
+ Define for "portrait" orientation support.
+
+config STM32F429I_DISCO_ILI9341_FBIFACE_RLANDSCAPE
+ bool "Reverse landscape orientation"
+ ---help---
+ Define for "reverse landscape" orientation support.
+
+config STM32F429I_DISCO_ILI9341_FBIFACE_RORTRAIT
+ bool "Reverse portrait display"
+ ---help---
+ Define for "reverse portrait" orientation support.
+
+endchoice
+endif
endif
diff --git a/nuttx/configs/stm32f429i-disco/src/Makefile b/nuttx/configs/stm32f429i-disco/src/Makefile
index 895751e4e..93ba4835b 100644
--- a/nuttx/configs/stm32f429i-disco/src/Makefile
+++ b/nuttx/configs/stm32f429i-disco/src/Makefile
@@ -76,7 +76,10 @@ ifeq ($(CONFIG_STM32F429I_DISCO_ILI9341),y)
CSRCS += stm32_ili93414ws.c
endif
-ifeq ($(CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE),y)
+ifeq ($(and \
+ $(CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE), \
+ $(CONFIG_STM32F429I_DISCO_ILI9341_FBIFACE), \
+ $(CONFIG_STM32_LTDC)),)
CSRCS += stm32_lcd.c
endif