diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-25 18:58:45 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-25 18:58:45 +0000 |
commit | 15d84f957fd8b047809dfd5c810ad1b5b46651f0 (patch) | |
tree | 5dcec345cb88947eaf93995f409b89ea499bbe90 /nuttx/include | |
parent | 38220dd6d0e25705266094553f5affb662e3b756 (diff) |
PGA11x driver belongs in analog/ not input/
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4978 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/analog/pga11x.h (renamed from nuttx/include/nuttx/input/pga11x.h) | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/nuttx/include/nuttx/input/pga11x.h b/nuttx/include/nuttx/analog/pga11x.h index f60d7830d5..1d26feff45 100644 --- a/nuttx/include/nuttx/input/pga11x.h +++ b/nuttx/include/nuttx/analog/pga11x.h @@ -1,5 +1,5 @@ /**************************************************************************** - * include/nuttx/input/pga11x.h + * include/nuttx/analog/pga11x.h * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> @@ -38,8 +38,8 @@ * ****************************************************************************/ -#ifndef __INCLUDE_NUTTX_INPUT_PGA11X_H -#define __INCLUDE_NUTTX_INPUT_PGA11X_H +#ifndef __INCLUDE_NUTTX_ANALOG_PGA11X_H +#define __INCLUDE_NUTTX_ANALOG_PGA11X_H /**************************************************************************** * Included Files @@ -48,16 +48,17 @@ #include <nuttx/config.h> #include <nuttx/spi.h> -#if defined(CONFIG_INPUT) && defined(CONFIG_INPUT_PGA11X) +#if defined(CONFIG_ADC) && defined(CONFIG_ADC_PGA11X) /**************************************************************************** * Pre-Processor Definitions ****************************************************************************/ /* Configuration ************************************************************/ -/* Prerequisites: CONFIG_INPUT=y +/* Prerequisites: + * CONFIG_ADC=y is needed to enable support for analog input devices * - * CONFIG_INPUT_PGA11X - * Enables support for the PGA11X driver (Needs CONFIG_INPUT) + * CONFIG_ADC_PGA11X + * Enables support for the PGA11X driver (Needs CONFIG_ADC) * CONFIG_PGA11X_SPIFREQUENCY * SPI frequency. Default 1MHz * CONFIG_PGA11X_DAISYCHAIN @@ -71,7 +72,11 @@ * device will require a customized SPI interface to distinguish them * When SPI_SELECT is called with devid=SPIDEV_MUX. * - * Other settings that effect the driver: CONFIG_SPI_OWNBUS, CONFIG_DEBUG_SPI. + * Other settings that effect the driver: + * CONFIG_SPI_OWNBUS -- If the PGA117 is enabled, this must be set to 'y' + * if the PGA117 is the only device on the SPI bus; + * CONFIG_DEBUG_SPI -- With CONFIG_DEBUG and CONFIG_DEBUG_VERBOSE, +* this will enable debug output from the PGA117 driver. */ #ifndef CONFIG_PGA11X_SPIFREQUENCY @@ -288,5 +293,5 @@ EXTERN int pga11x_enable(PGA11X_HANDLE handle); } #endif -#endif /* CONFIG_INPUT && CONFIG_INPUT_PGA11X */ -#endif /* __INCLUDE_NUTTX_INPUT_PGA11X_H */ +#endif /* CONFIG_ADC && CONFIG_ADC_PGA11X */ +#endif /* __INCLUDE_NUTTX_ANALOG_PGA11X_H */ |