Brian Glod
8673f5803a
ip: opencores: Fix I2C ARST_LVL
...
The OpenCores I2C ARST_LVL was specified as STD_LOGIC in the _hw.tcl
file. But becuase the top-level is Verilog, this causes Qsys to output
a syntactically incorrect value for the parameter. Solved this by
changing the parameter to an integer, limiting the allowed values to 0:1
and only using the LSB in the Verilog HDL.
2017-12-21 12:55:04 -05:00
Ryan Tucker
1211fd3f48
host: bladeRF-cli: skip init if loading FPGA
...
If the -l option is specified to bladeRF-cli, assume there is no
FPGA image loaded and skip the initialization part of bladerf_open.
This literally cuts bladeRF-cli -l time in half (4.8 s to 2.4 s)
because of the lengthy AD9361 init. Additionally, it provides an
escape from situations where the FPGA needs to be reloaded to get
out of a bad state.
2017-12-21 12:55:04 -05:00
Ryan Tucker
5bddc8da29
host: bladerf2: init ina219 before ad9361
...
This is a workaround for persistent USB timeouts after AD9361
init when CMAKE_BUILD_TYPE=Release.
If DEBUG is defined, ad9361_verify_fir_filter_coef reads in all
the FIR filter coeffs from the 9361 and makes sure they are as
expected. If it is NOT defined, it skips this check.
For reasons unknown, if ina219_init is called immediately after
ad9361_ensm_restore_prev_state (the last thing that happens before
ad9361_verify_fir_filter_coef in ad9361_load_fir_filter_coef),
libusb times out and everything goes terribly wrong. Adding a
usleep(100) is sufficient to avoid this.
There does not seem to be a reason why this should make any
difference whatsoever, but this seems to do the trick.
2017-12-21 12:55:04 -05:00
Ryan Tucker
6b2b5164a8
host: ina219: add error logging messages
2017-12-21 12:55:04 -05:00
Ryan Tucker
9c8187e000
host: nios_access.c: debugging/error-logging improvements
2017-12-21 12:55:04 -05:00
Ryan Tucker
a69a19e4c6
hdl: nios/devices.c: combine alt_avalon_spi_command calls
...
We can do this with one call to alt_avalon_spi_command, so we
might as well.
2017-12-21 12:55:04 -05:00
Ryan Tucker
363626f8ef
hdl: nios/devices.c: rename i2c complete_xfer fn
...
For clarify and accuracy, rename si5338_complete_transfer to
i2c_complete_transfer, since it's used for both the SI5338 and
the INA219.
2017-12-21 12:55:04 -05:00
Ryan Tucker
59b7559592
host: bladerf2_init: add log_errors to early returns
...
There are a number of places where bladerf2_init can return early
from a failed initialization attempt. Log a message with error
priority when it happens, to ease troubleshooting.
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
03ee0cd2a4
libbladeRF/bladerf2: add fixmes for future MIMO configuration
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
0c09e664c2
libbladeRF_test: add digital loopback test
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
6be5e8ecf2
libbladeRF_bindings: add python3 binding and example tool
2017-12-21 12:55:04 -05:00
Ryan Tucker
65f19e30bf
libbladeRF: add ad9361 bist loopback mode
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
64a69f569b
libbladeRF: update docs and examples with new API
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
53e3bf6c2c
libbladeRF: update docstring for enable module method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
8e62d0aad6
libbladeRF/backend: fix field order in dummy backend function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
e4f349a2a5
libbladeRF/backend: fix two function prototypes in dummy backend
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
6d1b456d05
libbladeRF: clean up API docs
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
768ddd9364
libbladeRF: strip lms mentions from docs for generic API
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
36b3233c3b
libbladeRF: add union + anon struct to quick tune structure for bladeRF2
...
for future implementation.
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
4527d92e89
libbladeRF: split bladerf 1 & 2 specific APIs into their own header files
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
0b644a4582
bladeRF-cli: fix end of table fields in printset parameter table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
ebcffdd11c
libbladeRF/backend: add nios legacy dummy read/write trigger methods
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
90616767c7
libbladeRF/backend: remove unused id field from usb function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
55f0654b3a
libbladeRF/backend: fix field order in usb driver structure
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
61d7df0cb7
libbladeRF/backend: fix field order in usb backend function tables
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
3c61ce4b55
libbladeRF/bladerf2: fix field order in board function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
7266ccc868
libbladeRF/bladerf1: fix field order in board function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
790b6352c7
libbladeRF/bladerf2: use portable macro for struct designated initializers
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
07f2246a38
libbladeRF/bladerf1: use portable macro for struct designated initializers
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
a5b3a012cd
libbladeRF/bladerf2: implement set correction method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
ba3f38d1fb
libbladeRF/bladerf2: implement get correction method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
eaa8e62260
libbladeRF/bladerf2: remove unused device state calibrated
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
fa7dda55c7
libbladeRF/bladerf1: remove unused device state calibrated
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
0db3fa1c73
libbladeRF/bladerf2: fix error handling for ad9361 api func in set loopback
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
02a26740c1
libbladeRF: move common fx3 firmware methods from bladerf1 to top-level
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
9260495ca9
libbladeRF: move dc/phase/gain correction from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
0f9fbef33e
libbladeRF/bladerf2: mark cancel scheduled retunes method static
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
532534d404
libbladeRF/bladerf1: mark cancel scheduled retunes method static
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
337a084061
libbladeRF/board: rearrange get vctcxo trim with vctcxo trim dac accessors
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
8a42e206f7
libbladeRF: move vctcxo tamer mode from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
5d488173d0
libbladeRF: move config gpio accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
51607bb327
libbladeRF: move trigger control accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
fec3595463
libbladeRF: add doc group for low-level vctcxo trim dac methods
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
660fb291d2
libbladeRF: move spi flash accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
d8c715420d
libbladeRF/bladerf2: fix locking in trim dac read/write
...
also mark the method implementations static.
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
d63471310d
libbladeRF/bladerf1: fix locking in trim dac read/write
...
also mark the implementations static.
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
2dab2a4466
libbladeRF/board: improve heading comment for vctcxo trim dac access methods
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
e54b76cbb3
libbladeRF: add get tuning mode method
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
78f8140655
libbladeRF: move set tuning mode from bladerf1-specific to generic
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
cc57513408
libbladeRF/bladeRF2: move fpga version & capabilities checks to initialize
2017-12-21 12:55:02 -05:00