mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 11:33:33 +08:00
PGA11x driver belongs in analog/ not input/
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4978 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -58,6 +58,12 @@ ifeq ($(CONFIG_ADC),y)
|
||||
|
||||
CSRCS += adc.c
|
||||
|
||||
# Amplifiers/multiplexers
|
||||
|
||||
ifeq ($(CONFIG_ADC_PGA11X),y)
|
||||
CSRCS += pga11x.c
|
||||
endif
|
||||
|
||||
# Include ADC device drivers
|
||||
|
||||
ifeq ($(CONFIG_ADC_ADS125X),y)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* drivers/input/pga11x.c
|
||||
* drivers/analog/pga11x.c
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -48,9 +48,9 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/input/pga11x.h>
|
||||
#include <nuttx/analog/pga11x.h>
|
||||
|
||||
#if defined(CONFIG_INPUT) && defined(CONFIG_INPUT_PGA11X)
|
||||
#if defined(CONFIG_ADC) && defined(CONFIG_ADC_PGA11X)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -576,5 +576,5 @@ int pga11x_enable(PGA11X_HANDLE handle)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_INPUT && CONFIG_INPUT_PGA11X */
|
||||
#endif /* CONFIG_ADC && CONFIG_ADC_PGA11X */
|
||||
|
||||
@@ -63,10 +63,6 @@ ifneq ($(CONFIG_INPUT_STMPE811_TEMP_DISABLE),y)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_INPUT_PGA11X),y)
|
||||
CSRCS += pga11x.c
|
||||
endif
|
||||
|
||||
# Include input device driver build support
|
||||
|
||||
DEPPATH += --dep-path input
|
||||
|
||||
Reference in New Issue
Block a user