2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO
|
|
|
|
bool "NX graphics \"Hello, World!\" example"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable the NX graphics \"Hello, World!\" example
|
|
|
|
|
2013-06-02 18:33:57 +02:00
|
|
|
if EXAMPLES_NXHELLO
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_VPLANE
|
|
|
|
int "Video Plane"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The plane to select from the framebuffer driver for use in the test.
|
|
|
|
Default: 0
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_DEVNO
|
|
|
|
int "Video Device Number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The LCD device to select from the LCD driver for use in the test:
|
|
|
|
Default: 0
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_BPP
|
|
|
|
int "Bits-Per-Pixel"
|
|
|
|
default 32
|
|
|
|
---help---
|
2013-06-23 22:39:56 +02:00
|
|
|
Pixels per pixel to use. Valid options include 1, 2, 4, 8, 16, 24,
|
2013-06-02 18:33:57 +02:00
|
|
|
and 32. Default is 32.
|
|
|
|
|
|
|
|
|
|
|
|
comment "Example Color Configuration"
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_DEFAULT_COLORS
|
|
|
|
bool "Use Default Colors"
|
|
|
|
default y
|
|
|
|
|
|
|
|
if !EXAMPLES_NXHELLO_DEFAULT_COLORS
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_BGCOLOR
|
|
|
|
hex "Background color"
|
|
|
|
default 0x0
|
|
|
|
---help---
|
|
|
|
The color of the background. Default depends on config
|
|
|
|
EXAMPLES_NXHELLO_BPP.
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_FONTCOLOR
|
|
|
|
hex "Background font color"
|
|
|
|
default 0x0
|
|
|
|
---help---
|
|
|
|
The color of the fonts used in the background window. Default
|
|
|
|
depends on config EXAMPLES_NXHELLO_BPP.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
comment "Example Font Configuration"
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_DEFAULT_FONT
|
|
|
|
bool "Use Default Font"
|
|
|
|
default y
|
|
|
|
|
|
|
|
if !EXAMPLES_NXHELLO_DEFAULT_FONT
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_FONTID
|
|
|
|
int "Background font ID"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
Selects the font used in the background window (see font ID numbers
|
|
|
|
in include/nuttx/nx/nxfonts.h)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config EXAMPLES_NXHELLO_EXTERNINIT
|
|
|
|
bool "External Device Initialization"
|
|
|
|
default n
|
2015-04-01 00:41:48 +02:00
|
|
|
depends on LIB_BOARDCTL
|
|
|
|
select BOARDCTL_GRAPHICS
|
2013-06-02 18:33:57 +02:00
|
|
|
---help---
|
|
|
|
The driver for the graphics device on this platform requires some
|
|
|
|
unusual initialization. This is the case, for example, for SPI LCD/OLED
|
|
|
|
devices. If this configuration is selected, then the platform code
|
|
|
|
must provide an LCD initialization function with a prototype like:
|
|
|
|
|
|
|
|
#ifdef CONFIG_NX_LCDDRIVER
|
2015-04-01 00:20:21 +02:00
|
|
|
FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno);
|
2013-06-02 18:33:57 +02:00
|
|
|
#else
|
2015-04-01 00:20:21 +02:00
|
|
|
FAR struct fb_vtable_s *board_graphics_setup(unsigned int devno);
|
2013-06-02 18:33:57 +02:00
|
|
|
#endif
|
|
|
|
|
2015-04-01 00:20:21 +02:00
|
|
|
and must also define: CONFIG_LIB_BOARDCTL=y and
|
|
|
|
CONFIG_BOARDCTL_GRAPHICS=y so that the boardctl() interface
|
|
|
|
will be available in order to access this function.
|
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|