summaryrefslogtreecommitdiff
path: root/apps/NxWidgets/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-30 12:39:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-30 12:39:23 -0600
commit8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b (patch)
treeb45ebeacd667bd749ceaf1e54b1952a9747ce7ac /apps/NxWidgets/Kconfig
parent740fa31fee4328e095cfb62a2a9128c858d7f062 (diff)
downloadnuttx-8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b.tar.gz
nuttx-8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b.tar.bz2
nuttx-8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b.zip
NxWM::CTouchscreen: Add CONFIG_NXWM_TOUCHSCREEN_DEVINIT to suppress attempts to initialize the touchscreen from NxWM in the kernel build
Diffstat (limited to 'apps/NxWidgets/Kconfig')
-rw-r--r--apps/NxWidgets/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/NxWidgets/Kconfig b/apps/NxWidgets/Kconfig
index 8399e23c4..5f956df54 100644
--- a/apps/NxWidgets/Kconfig
+++ b/apps/NxWidgets/Kconfig
@@ -738,6 +738,22 @@ if NXWM_TOUCHSCREEN
comment "Touchscreen device settings"
+config NXWM_TOUCHSCREEN_DEVINIT
+ bool "Touchscreen Device Initialization"
+ default y
+ depends on !NUTTX_KERNEL
+ ---help---
+ It this option is selected, then the NxWM:CTouchscreen listener
+ thread will call a function arch_tcinitialize(NXWM_TOUCHSCREEN_DEVNO)
+ in order to instantiate the touchscreen driver at path
+ NXWM_TOUCHSCREEN_DEVPATH. If NXWM_TOUCHSCREEN_DEVINIT is not
+ selected, then the NxWM:CTouchscreen listener thread will assume
+ that the driver has already been initialized at
+ NXWM_TOUCHSCREEN_DEVPATH.
+
+ NOTE that in the kernel build, all touchscreen initialize must be
+ performed in kernel logic prior to the execution of NxWM.
+
config NXWM_TOUCHSCREEN_DEVNO
int "Touchscreen Device Number"
default 0