diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-30 16:51:43 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-30 16:51:43 +0000 |
commit | cb77f5961df901626b4f4cb3e1d5672f6a94b5f3 (patch) | |
tree | 41f9e4861aa9914bbcf36241710b609ce1681ba1 /apps/examples/adc/adc.h | |
parent | a4f9a7805d2ed730798b4da73d3513258f393908 (diff) | |
download | px4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.tar.gz px4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.tar.bz2 px4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.zip |
Add support for testing multiple ADC, PWM, and QE devices
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4993 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/adc/adc.h')
-rw-r--r-- | apps/examples/adc/adc.h | 11 |
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 ****************************************************************************/ |