From 8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 30 Dec 2013 12:39:23 -0600 Subject: NxWM::CTouchscreen: Add CONFIG_NXWM_TOUCHSCREEN_DEVINIT to suppress attempts to initialize the touchscreen from NxWM in the kernel build --- apps/NxWidgets/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'apps') 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 -- cgit v1.2.3