sr: add new agilent-dmm driver (Agilent U12xxA multimeters)

This commit is contained in:
Bert Vermeulen 2012-09-02 11:58:29 +02:00
parent b84c13d700
commit 6ac0db19f3
4 changed files with 49 additions and 0 deletions

View File

@ -76,6 +76,16 @@ AC_SUBST(SR_LIB_LDFLAGS)
# Logic analyzer hardware support '--enable' options.
# Disabled by default
AC_ARG_ENABLE(agilent-dmm, AC_HELP_STRING([--enable-agilent-dmm],
[enable Agilent DMM driver support [default=no]]),
[HW_AGILENT_DMM="$enableval"],
[HW_AGILENT_DMM=xno])
AM_CONDITIONAL(HW_AGILENT_DMM, test x$HW_AGILENT_DMM = xyes)
if test "x$HW_AGILENT_DMM" = "xyes"; then
AC_DEFINE(HAVE_HW_AGILENT_DMM, 1, [Agilent DMM driver support])
fi
# Disabled by default, unfinished.
AC_ARG_ENABLE(alsa, AC_HELP_STRING([--enable-alsa],
[enable ALSA driver support [default=no]]),
@ -247,6 +257,7 @@ AM_CONDITIONAL(NEED_EZUSB, \
# Serial port helpers only needed for some hardware drivers
AM_CONDITIONAL(NEED_SERIAL, \
test "x$LA_OLS" != xno \
-o "x$HW_AGILENT_DMM" != xno \
-o "x$HW_GENERICDMM" != xno \
)
@ -288,6 +299,7 @@ AC_SUBST(SR_PACKAGE_VERSION)
AC_CONFIG_FILES([Makefile
version.h
hardware/Makefile
hardware/agilent-dmm/Makefile
hardware/alsa/Makefile
hardware/asix-sigma/Makefile
hardware/chronovu-la8/Makefile
@ -332,6 +344,7 @@ done
echo
echo "Enabled hardware drivers:"
echo
echo " - Agilent DMM..................... $HW_AGILENT_DMM"
echo " - ASIX SIGMA/SIGMA2............... $LA_ASIX_SIGMA"
echo " - ChronoVu LA8.................... $LA_CHRONOVU_LA8"
echo " - Demo driver..................... $LA_DEMO"

View File

@ -18,6 +18,7 @@
##
SUBDIRS = \
agilent-dmm \
alsa \
asix-sigma \
chronovu-la8 \
@ -37,6 +38,10 @@ libsigrokhardware_la_SOURCES =
libsigrokhardware_la_LIBADD = \
common/libsigrokhwcommon.la
if HW_AGILENT_DMM
libsigrokhardware_la_LIBADD += agilent-dmm/libsigrokhwagilentdmm.la
endif
if LA_ALSA
libsigrokhardware_la_LIBADD += alsa/libsigrokhwalsa.la
endif

View File

@ -0,0 +1,31 @@
##
## This file is part of the sigrok project.
##
## Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
if HW_AGILENT_DMM
# Local lib, this is NOT meant to be installed!
noinst_LTLIBRARIES = libsigrokhwagilentdmm.la
libsigrokhwagilentdmm_la_SOURCES = \
api.c
libsigrokhwagilentdmm_la_CFLAGS = \
-I$(top_srcdir)
endif

View File