summaryrefslogtreecommitdiff
path: root/apps/examples/adc/adc.h
diff options
context:
space:
mode:
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
****************************************************************************/