NxWidgets server initialization must be performed in the kernel when NxWdigets is built in kernel mode

This commit is contained in:
Gregory Nutt 2013-12-29 09:46:57 -06:00
parent e7184c27db
commit a42656813f

View File

@ -26,9 +26,17 @@ config NXWIDGETS_FLICKERFREE
lower-performance flicker-reductions measures where-ever thay may lower-performance flicker-reductions measures where-ever thay may
be available. be available.
config NXWIDGETS_EXTERNINIT
bool "External display Initialization"
default 0
depends on NXWIDGET_SERVERINIT
---help---
Define to support external display initialization.
config NXWIDGETS_DEVNO config NXWIDGETS_DEVNO
int "LCD Device Number" int "LCD Device Number"
default 0 default 0
depends on NXWIDGETS_EXTERNINIT || NX_LCDDRIVER
---help--- ---help---
LCD device number (in case there are more than one LCDs connected). LCD device number (in case there are more than one LCDs connected).
Default: 0 Default: 0
@ -39,6 +47,22 @@ config NXWIDGETS_VPLANE
---help--- ---help---
Only a single video plane is supported. Default: 0 Only a single video plane is supported. Default: 0
if NX_MULTIUSER
config NXWIDGET_SERVERINIT
bool "Start server"
default y
depends on !NUTTX_KERNEL
---help---
If this option is selected, then the NxWidgets::CNxServer class will
bring up the NX server when it is initialized. If this option is
not selected then the NxWidgets::CNxServer constructor
initialization logic will assume that the NX server has been started
by other, external logic and will simply attempt to connect to the
server.
if NXWIDGET_SERVERINIT
config NXWIDGETS_SERVERPRIO config NXWIDGETS_SERVERPRIO
int "NX Server priority" int "NX Server priority"
default 110 default 110
@ -57,6 +81,8 @@ config NXWIDGETS_SERVERSTACK
---help--- ---help---
NX server thread stack size (in multi-user mode). Default 2048 NX server thread stack size (in multi-user mode). Default 2048
endif # NXWIDGET_SERVERINIT
config NXWIDGETS_CLIENTPRIO config NXWIDGETS_CLIENTPRIO
int "NX Client Priority" int "NX Client Priority"
default 100 default 100
@ -78,10 +104,7 @@ config NXWIDGETS_LISTENERSTACK
---help--- ---help---
NX listener thread stack size (in multi-user mode). Default 2048 NX listener thread stack size (in multi-user mode). Default 2048
config NXWIDGETS_EXTERNINIT endif # NX_MULTIUSER
bool "Extern LCD Initialization"
---help---
Define to support external display initialization.
config NXWIDGET_EVENTWAIT config NXWIDGET_EVENTWAIT
bool "Event Waiting" bool "Event Waiting"