summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/nxwmconfig.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-11 00:05:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-11 00:05:25 +0000
commita280d993608d0c40ad0b4efc8adcbf72f67d53a4 (patch)
tree0c718467856492451acfb8af51db3d59abad08fb /NxWidgets/nxwm/include/nxwmconfig.hxx
parent68f3044b5099572850a9e81a1c63161c20809547 (diff)
downloadnuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.tar.gz
nuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.tar.bz2
nuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.zip
NxWM: Finishes touchscreen implementation; NuttX: Standardize touchscreen initialization interfaces for all boards
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4721 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/nxwmconfig.hxx')
-rw-r--r--NxWidgets/nxwm/include/nxwmconfig.hxx34
1 files changed, 34 insertions, 0 deletions
diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx
index 4e08b0481..4e51cea1d 100644
--- a/NxWidgets/nxwm/include/nxwmconfig.hxx
+++ b/NxWidgets/nxwm/include/nxwmconfig.hxx
@@ -42,6 +42,8 @@
#include <nuttx/config.h>
+#include <nuttx/input/touchscreen.h>
+
#include "nxconfig.hxx"
#include "crlepalettebitmap.hxx"
@@ -322,12 +324,43 @@
#endif
/* Touchscreen device *******************************************************/
+/**
+ * Touchscreen device settings
+ *
+ * CONFIG_NXWM_TOUCHSCREEN_DEVNO - Touchscreen device minor number, i.e., the
+ * N in /dev/inputN. Default: 0
+ * CONFIG_NXWM_TOUCHSCREEN_DEVNO - The full path to the touchscreen device.
+ * Default: "/dev/input0"
+ * CONFIG_NXWM_TOUCHSCREEN_SIGNO - The realtime signal used to wake up the
+ * touchscreen listener thread. Default: 5
+ */
+
+#ifndef CONFIG_NXWM_TOUCHSCREEN_DEVNO
+# define CONFIG_NXWM_TOUCHSCREEN_DEVNO 0
+#endif
#ifndef CONFIG_NXWM_TOUCHSCREEN_DEVPATH
# define CONFIG_NXWM_TOUCHSCREEN_DEVPATH "/dev/input0"
#endif
+#ifndef CONFIG_NXWM_TOUCHSCREEN_SIGNO
+# define CONFIG_NXWM_TOUCHSCREEN_SIGNO 5
+#endif
+
/* Calibration display ******************************************************/
+/**
+ * Calibration display settings:
+ *
+ * CONFIG_NXWM_CALIBRATION_BACKGROUNDCOLOR - The background color of the
+ * touchscreen calibration display. Default: Same as
+ * CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR
+ * CONFIG_NXWM_CALIBRATION_LINECOLOR - The color of the lines used in the
+ * touchscreen calibration display. Default: MKRGB(0, 0, 128) (dark blue)
+ * CONFIG_NXWM_CALIBRATION_BACKGROUNDCOLOR - The background color of the
+ * touchscreen calibration display. Default: MKRGB(255, 255, 255) (white)
+ * CONFIG_NXWM_CALIBRATION_ICON - The ICON to use for the touchscreen
+ * calibration application. Default: NxWM::g_calibrationBitmap
+ */
#ifndef CONFIG_NXWM_CALIBRATION_BACKGROUNDCOLOR
# define CONFIG_NXWM_CALIBRATION_BACKGROUNDCOLOR CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR
@@ -344,6 +377,7 @@
#ifndef CONFIG_NXWM_CALIBRATION_ICON
# define CONFIG_NXWM_CALIBRATION_ICON NxWM::g_calibrationBitmap
#endif
+
/****************************************************************************
* Global Function Prototypes
****************************************************************************/