From 513671256fe287033b8874d352fdf34bf6a14bea Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 29 Dec 2013 09:46:57 -0600 Subject: NxWidgets server initialization must be performed in the kernel when NxWdigets is built in kernel mode --- apps/NxWidgets/Kconfig | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/NxWidgets/Kconfig b/apps/NxWidgets/Kconfig index 0ee006aba..b6ac4fb7d 100644 --- a/apps/NxWidgets/Kconfig +++ b/apps/NxWidgets/Kconfig @@ -26,9 +26,17 @@ config NXWIDGETS_FLICKERFREE lower-performance flicker-reductions measures where-ever thay may 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 int "LCD Device Number" default 0 + depends on NXWIDGETS_EXTERNINIT || NX_LCDDRIVER ---help--- LCD device number (in case there are more than one LCDs connected). Default: 0 @@ -39,6 +47,22 @@ config NXWIDGETS_VPLANE ---help--- 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 int "NX Server priority" default 110 @@ -57,6 +81,8 @@ config NXWIDGETS_SERVERSTACK ---help--- NX server thread stack size (in multi-user mode). Default 2048 +endif # NXWIDGET_SERVERINIT + config NXWIDGETS_CLIENTPRIO int "NX Client Priority" default 100 @@ -78,10 +104,7 @@ config NXWIDGETS_LISTENERSTACK ---help--- NX listener thread stack size (in multi-user mode). Default 2048 -config NXWIDGETS_EXTERNINIT - bool "Extern LCD Initialization" - ---help--- - Define to support external display initialization. +endif # NX_MULTIUSER config NXWIDGET_EVENTWAIT bool "Event Waiting" -- cgit v1.2.3