summaryrefslogtreecommitdiff
path: root/apps/examples/touchscreen/tc_main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-04-01 22:00:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-04-01 22:00:37 +0000
commit87590afa9ca772243c261e6c1b8478565bd2771a (patch)
treed7a3161c5dea29510630f239e027dc32bac968fc /apps/examples/touchscreen/tc_main.c
parentf7122813d51018e5d3460a30596d2320a08ef740 (diff)
downloadnuttx-87590afa9ca772243c261e6c1b8478565bd2771a.tar.gz
nuttx-87590afa9ca772243c261e6c1b8478565bd2771a.tar.bz2
nuttx-87590afa9ca772243c261e6c1b8478565bd2771a.zip
More naming changes associated with earlier renaming of LP17xx up_spiinitialize; LPC178x SSP support; Open1788 SSP and touchscreen support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5811 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/touchscreen/tc_main.c')
-rw-r--r--apps/examples/touchscreen/tc_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/touchscreen/tc_main.c b/apps/examples/touchscreen/tc_main.c
index 79b6b65a3..d49902612 100644
--- a/apps/examples/touchscreen/tc_main.c
+++ b/apps/examples/touchscreen/tc_main.c
@@ -88,7 +88,7 @@ int tc_main(int argc, char *argv[])
{
struct touch_sample_s sample;
ssize_t nbytes;
-#if defined(CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN) || defined(CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES)
+#if defined(CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN) || CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES > 0
long nsamples;
#endif
int fd;
@@ -106,7 +106,7 @@ int tc_main(int argc, char *argv[])
nsamples = strtol(argv[1], NULL, 10);
}
message("tc_main: nsamples: %d\n", nsamples);
-#elif defined(CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES)
+#elif CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES > 0
message("tc_main: nsamples: %d\n", CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES);
#endif
@@ -141,7 +141,7 @@ int tc_main(int argc, char *argv[])
#if defined(CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN)
for (; nsamples > 0; nsamples--)
-#elif defined(CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES)
+#elif CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES > 0
for (nsamples = 0; nsamples < CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES; nsamples++)
#else
for (;;)