Added bladeRF module.
git-svn-id: http://voip.null.ro/svn/yate@5979 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
25f901c930
commit
81160c04ed
|
@ -0,0 +1,66 @@
|
|||
; This file holds configuration for bladerf module
|
||||
|
||||
[general]
|
||||
|
||||
; priority: integer: Priority of radio create message handler
|
||||
; Defaults to 90
|
||||
;priority=90
|
||||
|
||||
; fpga_load: boolean: Load FPGA from file on device open
|
||||
; Allowed values:
|
||||
; Boolean yes: Always load
|
||||
; Boolean no: Don't load (not recommended)
|
||||
; auto: Check if already loaded. Load only if check fails or not loaded
|
||||
; Defaults to boolean 'yes' if missing or invalid
|
||||
;fpga_load=yes
|
||||
|
||||
; fpga_file_115: string: 115KLE FPGA file to load
|
||||
;fpga_file_115=${modulepath}/server/bts/hostedx115.rbf
|
||||
|
||||
; fpga_file_40: string: 40KLE FPGA file to load
|
||||
;fpga_file_40=${modulepath}/server/bts/hostedx40.rbf
|
||||
|
||||
; tx_fpga_corr_phase: integer: TX FPGA PHASE correction
|
||||
; Interval allowed: [-4096..4096]
|
||||
; Defaults to 0 if missing or invalid
|
||||
;tx_fpga_corr_phase=0
|
||||
|
||||
; tx_powerbalance: float: TX I/Q power balance
|
||||
; Interval allowed: (0..2)
|
||||
; Defaults to 1 if missing or invalid
|
||||
;tx_powerbalance=1
|
||||
|
||||
|
||||
[libusb]
|
||||
; This section configures libusb backend related data
|
||||
|
||||
; debug_level: libusb debug level
|
||||
; Default to 0 (no debug messages)
|
||||
;debug_level=0
|
||||
|
||||
; ctrl_transfer_timeout: integer: Control transfer timeout in milliseconds
|
||||
; This parmeter is applied on device creation
|
||||
; Allowed interval: [200 .. 2000]
|
||||
; Defaults to 500
|
||||
;ctrl_transfer_timeout=500
|
||||
|
||||
; bulk_transfer_timeout: integer: Bulk transfer timeout in milliseconds
|
||||
; This parmeter is applied on device creation
|
||||
; Allowed interval: [200 .. 2000]
|
||||
; Defaults to 500
|
||||
;bulk_transfer_timeout=500
|
||||
|
||||
|
||||
[test_name]
|
||||
; This section configures a test
|
||||
; There may be more than one test section
|
||||
|
||||
; Parameters starting with 'init:' can be used to run device commands after creation
|
||||
; and before power up
|
||||
; Handled commands:
|
||||
; txpattern=circle/zero/random/comma_separated_list_of_values
|
||||
; samplerate=device_sample_rate
|
||||
; filter=device_filter_bandwidth
|
||||
; txfrequency=tx_frequency_in_hertz
|
||||
; rxfrequency=rx_frequency_in_hertz
|
||||
|
27
configure.ac
27
configure.ac
|
@ -1450,6 +1450,33 @@ AC_SUBST(ZLIB_INC)
|
|||
AC_SUBST(ZLIB_LIB)
|
||||
|
||||
|
||||
HAVE_LIBUSB=no
|
||||
LIBUSB_INC=""
|
||||
LIBUSB_LIB=""
|
||||
AC_ARG_WITH(libusb,AC_HELP_STRING([--with-libusb=DIR],[use libusb DIR (default /usr)]),[ac_cv_use_libusb=$withval],[ac_cv_use_libusb=/usr])
|
||||
if [[ "x$ac_cv_use_libusb" != "xno" ]]; then
|
||||
AC_MSG_CHECKING([for libusb in $ac_cv_use_libusb])
|
||||
if [[ -f "$ac_cv_use_libusb/include/libusb-1.0/libusb.h" ]]; then
|
||||
# Save current system libs and include dirs and restore them after trying to link
|
||||
SAVE_LIBS="$LIBS"
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
LIBS="$LIBS -lusb-1.0"
|
||||
CFLAGS="$CFLAGS -I$ac_cv_use_libusb/include/libusb-1.0"
|
||||
AC_TRY_LINK([#include <libusb.h>],[libusb_get_version();],[HAVE_LIBUSB=yes],[HAVE_LIBUSB=no])
|
||||
LIBS="$SAVE_LIBS"
|
||||
CFLAGS="$SAVE_CFLAGS"
|
||||
if [[ "$HAVE_LIBUSB" = "yes" ]]; then
|
||||
LIBUSB_INC="-I$ac_cv_use_libusb/include/libusb-1.0"
|
||||
LIBUSB_LIB="-lusb-1.0"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT([$HAVE_LIBUSB])
|
||||
fi
|
||||
AC_SUBST(HAVE_LIBUSB)
|
||||
AC_SUBST(LIBUSB_INC)
|
||||
AC_SUBST(LIBUSB_LIB)
|
||||
|
||||
|
||||
HAVE_QT4=no
|
||||
QT4_INC=""
|
||||
QT4_LIB=""
|
||||
|
|
|
@ -37,6 +37,9 @@ OPENSSL_LIB := @OPENSSL_LIB@
|
|||
HAVE_ZLIB := @HAVE_ZLIB@
|
||||
ZLIB_INC := @ZLIB_INC@
|
||||
ZLIB_LIB := @ZLIB_LIB@
|
||||
HAVE_LIBUSB := @HAVE_LIBUSB@
|
||||
LIBUSB_INC := @LIBUSB_INC@
|
||||
LIBUSB_LIB := @LIBUSB_LIB@
|
||||
SED := sed
|
||||
DEFS :=
|
||||
INCLUDES := -I.. -I@top_srcdir@
|
||||
|
@ -196,6 +199,11 @@ COREDUMP_INC := -DHAVE_COREDUMPER @COREDUMPER_INC@
|
|||
COREDUMP_LIB := @COREDUMPER_LIB@
|
||||
endif
|
||||
|
||||
ifneq (@HAVE_LIBUSB@,no)
|
||||
PROGS := $(PROGS) radio/ybladerf.yate
|
||||
endif
|
||||
|
||||
|
||||
LOCALFLAGS =
|
||||
LOCALLIBS =
|
||||
EXTERNFLAGS =
|
||||
|
@ -415,6 +423,12 @@ server/ysnmpagent.yate: ../libyateasn.so ../libs/ysnmp/libysnmp.a
|
|||
server/ysnmpagent.yate: LOCALFLAGS = -I@top_srcdir@/libs/yasn -I@top_srcdir@/libs/ysnmp
|
||||
server/ysnmpagent.yate: LOCALLIBS = -L../libs/ysnmp -lysnmp -lyateasn
|
||||
|
||||
radio/ybladerf.yate: ../libyateradio.so
|
||||
radio/ybladerf.yate: LOCALFLAGS = -I@top_srcdir@/libs/yradio
|
||||
radio/ybladerf.yate: LOCALLIBS = -lyateradio
|
||||
radio/ybladerf.yate: EXTERNFLAGS = $(LIBUSB_INC)
|
||||
radio/ybladerf.yate: EXTERNLIBS = $(LIBUSB_LIB)
|
||||
|
||||
../libyatesig.so ../libs/ysig/libyatesig.a: @top_srcdir@/libs/ysig/yatesig.h
|
||||
$(MAKE) -C ../libs/ysig
|
||||
|
||||
|
@ -459,3 +473,6 @@ server/ysnmpagent.yate: LOCALLIBS = -L../libs/ysnmp -lysnmp -lyateasn
|
|||
|
||||
../libs/ysnmp/libysnmp.a: @top_srcdir@/libs/ysnmp/yatesnmp.h
|
||||
$(MAKE) -C ../libs/ysnmp
|
||||
|
||||
../libyateradio.so ../libs/yradio/libyateradio.a: @top_srcdir@/libs/yradio/yateradio.h
|
||||
$(MAKE) -C ../libs/yradio
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue