From 9853b62e735b360998077b55f7ddcbeb01fb5d29 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 19 Dec 2014 14:02:26 -0600 Subject: [PATCH] stm32f429i-disco: enable configuration of framebuffer support for the ltdc controller Signed-off-by: Marco Krahl --- configs/stm32f429i-disco/Kconfig | 38 +++++++++++++++++++++++++++ configs/stm32f429i-disco/src/Makefile | 5 +++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/configs/stm32f429i-disco/Kconfig b/configs/stm32f429i-disco/Kconfig index f79ec5ac98..49c5035836 100644 --- a/configs/stm32f429i-disco/Kconfig +++ b/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/configs/stm32f429i-disco/src/Makefile b/configs/stm32f429i-disco/src/Makefile index 895751e4e7..93ba4835bd 100644 --- a/configs/stm32f429i-disco/src/Makefile +++ b/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