stm32f429i-disco: enable configuration of framebuffer support for the ltdc controller

Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
This commit is contained in:
Gregory Nutt 2014-12-19 14:02:26 -06:00
parent 4e5c2b7976
commit 61c927904f
2 changed files with 42 additions and 1 deletions

View File

@ -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

View File

@ -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