From 505963a3568ba0dc23cb0cb7b3efee58f83a49ea Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 30 Jul 2012 16:51:43 +0000 Subject: 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 --- apps/examples/adc/adc.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/examples/adc/adc.h') 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 ****************************************************************************/ -- cgit v1.2.3