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_NXLINES
|
|
|
|
bool "NX graphics lines example"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable the X graphics lines example
|
|
|
|
|
|
|
|
if EXAMPLES_NXLINES
|
2012-11-08 00:55:49 +01:00
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_VPLANE
|
|
|
|
int "Graphics Plane"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The plane to select from the frame-buffer driver for use in the test. Default: 0
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_DEVNO
|
|
|
|
int "Graphics Device Number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The LCD device to select from the LCD driver for use in the test: Default: 0
|
|
|
|
|
2014-03-01 19:32:03 +01:00
|
|
|
config EXAMPLES_NXLINES_DEFAULT_COLORS
|
|
|
|
bool "Use default colors"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Select this option to let the NXLINES example pick the colors. Otherwise,
|
|
|
|
you may select the exact colors to use in hex format.
|
|
|
|
|
2012-11-08 00:55:49 +01:00
|
|
|
config EXAMPLES_NXLINES_BGCOLOR
|
|
|
|
hex "Background Color"
|
|
|
|
default 0x00
|
2014-03-01 19:32:03 +01:00
|
|
|
depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
|
2012-11-08 00:55:49 +01:00
|
|
|
---help---
|
|
|
|
The color of the background. Default depends on EXAMPLES_NXLINES_BPP.
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_LINEWIDTH
|
|
|
|
int "Line Width"
|
|
|
|
default 16
|
|
|
|
---help---
|
|
|
|
Selects the width of the lines in pixels (default: 16)
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_LINECOLOR
|
|
|
|
hex "Line Color"
|
|
|
|
default 0x00
|
2014-03-01 19:32:03 +01:00
|
|
|
depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
|
2012-11-08 00:55:49 +01:00
|
|
|
---help---
|
|
|
|
The color of the central lines drawn in the background window. Default
|
|
|
|
depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_BORDERWIDTH
|
|
|
|
int "Border Width"
|
|
|
|
default 16
|
|
|
|
---help---
|
|
|
|
The width of the circular border drawn in the background window. (default: 16).
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_BORDERCOLOR
|
|
|
|
hex "Border Color"
|
|
|
|
default 0x00
|
2014-03-01 19:32:03 +01:00
|
|
|
depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
|
2012-11-08 00:55:49 +01:00
|
|
|
---help---
|
|
|
|
The color of the circular border drawn in the background window. Default
|
|
|
|
depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_CIRCLECOLOR
|
|
|
|
hex "Circle Color"
|
|
|
|
default 0x00
|
2014-03-01 19:32:03 +01:00
|
|
|
depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
|
2012-11-08 00:55:49 +01:00
|
|
|
---help---
|
|
|
|
The color of the circular region filled in the background window. Default
|
|
|
|
depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_BPP
|
|
|
|
int "Bits Per Pixel"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
Pixels per pixel to use. Valid options include 2, 4, 8, 16, 24, and 32.
|
|
|
|
Default is 16.
|
|
|
|
|
|
|
|
config EXAMPLES_NXLINES_EXTERNINIT
|
|
|
|
bool "External Device Initialization"
|
|
|
|
default false
|
2015-04-01 00:41:48 +02:00
|
|
|
depends on LIB_BOARDCTL
|
|
|
|
select BOARDCTL_GRAPHICS
|
2012-11-08 00:55:49 +01:00
|
|
|
---help---
|
|
|
|
The driver for the graphics device on this platform requires some unusual
|
|
|
|
initialization. This is the for, for example, SPI LCD/OLED devices. If
|
|
|
|
this configuration is selected, then the platform code must provide an LCD
|
|
|
|
initialization function with a prototype like:
|
|
|
|
|
|
|
|
#ifdef NX_LCDDRIVER
|
2015-04-01 00:20:21 +02:00
|
|
|
FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno);
|
2012-11-08 00:55:49 +01:00
|
|
|
#else
|
2015-04-01 00:20:21 +02:00
|
|
|
FAR struct fb_vtable_s *board_graphics_setup(unsigned int devno);
|
2012-11-08 00:55:49 +01: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.
|
2014-03-01 19:32:03 +01:00
|
|
|
|
2015-04-01 00:20:21 +02:00
|
|
|
endif
|