summaryrefslogtreecommitdiff
path: root/apps/examples/adc/adc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-30 16:51:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-30 16:51:43 +0000
commit505963a3568ba0dc23cb0cb7b3efee58f83a49ea (patch)
tree41f9e4861aa9914bbcf36241710b609ce1681ba1 /apps/examples/adc/adc.h
parente3feaf63eccee5e555ab006d7f8216057cd1e31b (diff)
downloadnuttx-505963a3568ba0dc23cb0cb7b3efee58f83a49ea.tar.gz
nuttx-505963a3568ba0dc23cb0cb7b3efee58f83a49ea.tar.bz2
nuttx-505963a3568ba0dc23cb0cb7b3efee58f83a49ea.zip
Add support for testing multiple ADC, PWM, and QE devices
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4993 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/adc/adc.h')
-rw-r--r--apps/examples/adc/adc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/examples/adc/adc.h b/apps/examples/adc/adc.h
index 214ecc6c8..9f79db92a 100644
--- a/apps/examples/adc/adc.h
+++ b/apps/examples/adc/adc.h
@@ -48,7 +48,7 @@
/* Configuration ************************************************************/
/* CONFIG_NSH_BUILTIN_APPS - Build the ADC test as an NSH built-in function.
* Default: Built as a standalone problem
- * CONFIG_EXAMPLES_ADC_DEVPATH - The path to the ADC device. Default: /dev/adc0
+ * CONFIG_EXAMPLES_ADC_DEVPATH - The default path to the ADC device. Default: /dev/adc0
* CONFIG_EXAMPLES_ADC_NSAMPLES - If CONFIG_NSH_BUILTIN_APPS
* is defined, then the number of samples is provided on the command line
* and this value is ignored. Otherwise, this number of samples is
@@ -94,6 +94,15 @@
* Public Types
****************************************************************************/
+struct adc_state_s
+{
+ bool initialized;
+ FAR char *devpath;
+#if defined(CONFIG_NSH_BUILTIN_APPS) || defined(CONFIG_EXAMPLES_ADC_NSAMPLES)
+ int count;
+#endif
+};
+
/****************************************************************************
* Public Variables
****************************************************************************/