Add more LCD-related Kconfig logic; Create a Kconfig file for NxWidgets
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5189 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
eaa1d41b02
commit
e3531087d3
6 changed files with 111 additions and 5 deletions
|
@ -3397,3 +3397,6 @@
|
||||||
initial check-in is only for the framework.
|
initial check-in is only for the framework.
|
||||||
* configs/shenzhou/src/up_ssd1289.c: Bit-banging driver is
|
* configs/shenzhou/src/up_ssd1289.c: Bit-banging driver is
|
||||||
code complete.
|
code complete.
|
||||||
|
* configs/shenzhou/src/up_lcd.c: Oops. Shenzhou LCD does not
|
||||||
|
have an SSD1289 controller. Its an ILI93xx. Ported the
|
||||||
|
STM3240G-EVAL ILI93xx driver to work on the Shenzhou board.
|
||||||
|
|
7
Kconfig
7
Kconfig
|
@ -286,6 +286,13 @@ config DEBUG_GRAPHICS
|
||||||
---help---
|
---help---
|
||||||
Enable NX graphics debug output (disabled by default)
|
Enable NX graphics debug output (disabled by default)
|
||||||
|
|
||||||
|
config DEBUG_LCD
|
||||||
|
bool "Enable low-leve LCD debug output"
|
||||||
|
default n
|
||||||
|
depends on LCD
|
||||||
|
---help---
|
||||||
|
Enable low level debug output from the LCD driver (disabled by default)
|
||||||
|
|
||||||
config DEBUG_I2C
|
config DEBUG_I2C
|
||||||
bool "Enable I2C debug output"
|
bool "Enable I2C debug output"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -4,4 +4,76 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
if ARCH_BOARD_SHENZHOU
|
if ARCH_BOARD_SHENZHOU
|
||||||
|
|
||||||
|
if LCD
|
||||||
|
menu "LCD Controller Selection"
|
||||||
|
|
||||||
|
comment "Disable Unused LCD Controllers"
|
||||||
|
|
||||||
|
config STM32_ILI1505_DISABLE
|
||||||
|
bool "Disable ILI1505"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI1505 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9300_DISABLE
|
||||||
|
bool "Disable ILI9300"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9300 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9320_DISABLE
|
||||||
|
bool "Disable ILI9320"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9320 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9321_DISABLE
|
||||||
|
bool "Disable ILI9321"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9321 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9325_DISABLE
|
||||||
|
bool "Disable ILI9325"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9325 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9328_DISABLE
|
||||||
|
bool "Disable ILI9328"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9328 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9331_DISABLE
|
||||||
|
bool "Disable ILI9331"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9331 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
config STM32_ILI9919_DISABLE
|
||||||
|
bool "Disable ILI9919"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This may be defined to disable support for the ILI9919 LCD controller
|
||||||
|
You might want to eliminate unused LCD controll support in order to
|
||||||
|
reduce the FLASH footprint.
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -135,8 +135,7 @@
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/* Configuration **********************************************************************/
|
/* Configuration **********************************************************************/
|
||||||
/*
|
/* CONFIG_STM32_ILI1505_DISABLE may be defined to disable the LCD_ILI1505
|
||||||
* CONFIG_STM32_ILI1505_DISABLE may be defined to disable the LCD_ILI1505
|
|
||||||
* CONFIG_STM32_ILI9300_DISABLE may be defined to disable the LCD_ILI9300
|
* CONFIG_STM32_ILI9300_DISABLE may be defined to disable the LCD_ILI9300
|
||||||
* CONFIG_STM32_ILI9320_DISABLE may be defined to disable the LCD_ILI9320
|
* CONFIG_STM32_ILI9320_DISABLE may be defined to disable the LCD_ILI9320
|
||||||
* CONFIG_STM32_ILI9321_DISABLE may be defined to disable the LCD_ILI9321
|
* CONFIG_STM32_ILI9321_DISABLE may be defined to disable the LCD_ILI9321
|
||||||
|
|
|
@ -2,6 +2,21 @@
|
||||||
# For a description of the syntax of this configuration file,
|
# For a description of the syntax of this configuration file,
|
||||||
# see misc/tools/kconfig-language.txt.
|
# see misc/tools/kconfig-language.txt.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
config LCD_NOGETRUN
|
||||||
|
bool "Write-only LCD"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Many LCD hardware interfaces provide only minimal graphics capability. In
|
||||||
|
particulary, many simple LCD interfaces are write only. That is we, can
|
||||||
|
write graphics data to the LCD device memory, but we cannot read it back.
|
||||||
|
If the LCD hardware does not support reading the graphics memory, then
|
||||||
|
this option should be defined so that the NX layer can taking alternative
|
||||||
|
measures when the LCD is not readable. For example, if the LCD is not
|
||||||
|
readable, then NX will not attempt to support transparency.
|
||||||
|
|
||||||
|
See also NX_WRITEONLY in the graphics support menu.
|
||||||
|
|
||||||
config LCD_MAXCONTRAST
|
config LCD_MAXCONTRAST
|
||||||
int "LCD maximum contrast"
|
int "LCD maximum contrast"
|
||||||
default 63 if NOKIA6100_S1D15G10
|
default 63 if NOKIA6100_S1D15G10
|
||||||
|
|
|
@ -11,6 +11,16 @@ config NX
|
||||||
|
|
||||||
if NX
|
if NX
|
||||||
|
|
||||||
|
config NX_LCDDRIVER
|
||||||
|
bool "LCD driver"
|
||||||
|
default y
|
||||||
|
depends on LCD
|
||||||
|
---help---
|
||||||
|
By default, the NX graphics system uses the frame buffer driver interface
|
||||||
|
defined in include/nuttx/fb.h. However, if LCD is support is enabled,
|
||||||
|
this this option is provide to select, instead, the LCD driver interface
|
||||||
|
defined in include/nuttx/lcd/lcd.h.
|
||||||
|
|
||||||
config NX_NPLANES
|
config NX_NPLANES
|
||||||
int "Number of Color Planes"
|
int "Number of Color Planes"
|
||||||
default 1
|
default 1
|
||||||
|
@ -21,8 +31,8 @@ config NX_NPLANES
|
||||||
|
|
||||||
config NX_WRITEONLY
|
config NX_WRITEONLY
|
||||||
bool "Write-only Graphics Device"
|
bool "Write-only Graphics Device"
|
||||||
default y if NX_LCDDRIVER && NX_LCDDRIVER
|
default y if NX_LCDDRIVER && LCD_NOGETRUN
|
||||||
default n if !NX_LCDDRIVER || !NX_LCDDRIVER
|
default n if !NX_LCDDRIVER || !LCD_NOGETRUN
|
||||||
---help---
|
---help---
|
||||||
Define if the underlying graphics device does not support read operations.
|
Define if the underlying graphics device does not support read operations.
|
||||||
Automatically defined if NX_LCDDRIVER and LCD_NOGETRUN are
|
Automatically defined if NX_LCDDRIVER and LCD_NOGETRUN are
|
||||||
|
|
Loading…
Reference in a new issue