Rey Tucker
ac55b6edeb
host: libbladeRF: add per-device query of supported loopback modes
...
* host: libbladeRF: add bladerf_get_loopback_modes
Returns a pointer to an array of supported loopback modes.
* host: libbladeRF: add bladerf_is_loopback_mode_supported()
Tests if a given loopback mode is supported on a device
2018-02-05 16:34:14 -05:00
Rey Tucker
84e1b5d099
host: libbladeRF: use common macro for channel decoding
2018-02-05 15:35:28 -05:00
Rey Tucker
ee2c85d02a
host: bladeRF-cli: refactor out str<->channel conversions
2018-02-05 15:35:28 -05:00
Rey Tucker
dab88815b1
host: libbladeRF: add BLADERF_CHANNEL_IS_TX() macro
...
Convenience macro that evals to true if the argument is a TX channel,
false otherwise.
2018-02-05 15:35:28 -05:00
Rey Tucker
14e7f317a2
host: common/conversions: add str2channel
...
Converts from a string to a bladerf_channel
2018-02-05 15:35:28 -05:00
Rey Tucker
b9db604801
host: common/conversions: add firmware and rf_bist loopback options
2018-02-05 15:35:28 -05:00
Brian Glod
5832522f68
hdl: ip/nuand: Move arbiter source files to .qip
2018-02-01 15:05:13 -05:00
Brian Glod
21f6c5a7cb
hdl: ip/adi: Move util_upack source files to .qip
...
This is for cleanup purposes; util_upack is not used in either bladeRF
platform.
2018-02-01 15:05:10 -05:00
Brian Glod
201712d487
hdl: ip/adi: Move util_cpack source files to .qip
...
This is for cleanup purposes; util_cpack is not used in either bladeRF
platform.
2018-02-01 15:05:06 -05:00
Brian Glod
aad5f4314a
hdl: ip/adi: Move axi_dmac source files to .qip
...
This is for cleanup purposes; axi_dmac is not used in either bladeRF
platform.
2018-02-01 15:04:16 -05:00
Brian Glod
5174a7f9e3
hdl: Update README.md
...
- Update Quartus version
- Update Altera --> Intel
2018-01-31 14:18:07 -05:00
Brian Glod
4ac61d1a3f
hdl/build: Add FPGA size to work directory name
...
Allows even more builds to occur simultaneously.
2018-01-26 20:07:40 -05:00
Brian Glod
4f9a59aafd
hdl/build: Fix clearing of work directory
...
Don't wipe the entire work directory, only wipe the work/$platform
directory. This allows us to run builds of multiple platforms
simultaneously.
2018-01-26 17:47:04 -05:00
Brian Glod
52db62b53b
hdl: Clarify Quartus version comment
...
The Quartus version specified in the platform.conf file is the minimum
expected Quartus version for the platform to build successfully.
Older versions may or may not work, your mileage may vary!!
2018-01-26 13:53:18 -05:00
Rey Tucker
fe211170f2
host: bladeRF-cli/generate.bash: fix pandoc warning
...
pandoc emits a warning if a title is not specified for the
page.
Also: cleanup
2018-01-15 19:24:12 -05:00
Rey Tucker
2f906c5e5e
host: bladeRF-cli: improve cmd_help.h generation
...
generate.bash now allows specification of paths to awk, date, grep, and
so forth; this will permit it to be used in very weird environments.
generate.bash now uses bash built-ins whenever possible.
generate.bash checks the existence of necessary non-built-in commands
before doing anything, and prints a useful error if they're wrong.
Only try doing generate.bash if pandoc and bash are installed.
2018-01-15 19:13:58 -05:00
Rey Tucker
ad0e61049a
host: cmake: make the search for libtecla quiet
...
This eliminates an unnecessary "libtecla not found" error during cmake.
2018-01-15 19:13:58 -05:00
Rey Tucker
fced701f87
host: libbladeRF/thirdparty/adi: fix errno conflicts
...
The various macros for error numbers are already defined in
errno.h, so we can just include that and avoid conflicts with
other OSes (e.g. OS X).
2018-01-15 19:09:47 -05:00
Rey Tucker
e9e735ca9e
host: libbladeRF/bladerf.c: don't use alias attribute
...
This works great with name-brand gcc on Linux, but unfortunately
it is not supported by clang on OS X. So, do it the hard way.
2018-01-15 19:09:47 -05:00
Rey Tucker
1518d174a4
host: libbladeRF: include malloc dir on OS X
...
The ad9361 software includes malloc.h, which is actually located
in /usr/include/malloc/malloc.h on OS X.
2018-01-15 19:09:47 -05:00
Rey Tucker
db79697bf1
host: libbladeRF: fix compile error on empty struct
...
clang on OS X complains thus:
error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]
2018-01-15 19:09:47 -05:00
Rey Tucker
857e301156
host: bladeRF-cli: fix implicit-fallthrough warning
...
This should fix it, and allow it to build with compilers which aren't
GCC 7+.
2018-01-15 17:56:50 -05:00
Rey Tucker
1bf9f4e9af
host: common/host_config.h: add macro for fallthrough cases
...
GCC 7.x adds a warning for implicit fallthroughs in switch cases. We
intentionally do this sometimes, so adding an EXPLICIT_FALLTHROUGH macro
to denote this.
The __attribute__((fallthrough)) on a null statement is only supported
by GCC 7.x as well, hence the macro.
2018-01-15 17:55:17 -05:00
Brian Glod
4fdc92ca27
host: bladeRF-cli: Intentional case fallthrough
...
Add compiler attribute to denote that the case fallthrough is
intentional and to not throw a warning about it.
2018-01-15 13:35:27 -05:00
Brian Glod
f06679bf78
host: libbladeRF_test: Fix GCC undefined operation
...
"state->idx = (++state->idx)" is undefined behavior for the compiler
2018-01-15 13:31:24 -05:00
Rey Tucker
1b066d7ca9
host: libbladeRF_test: test_digital_loopback fixes
...
Make test_digital_loopback work with bladeRF micro
General cleanup/modernization
2018-01-12 18:07:19 -05:00
Rey Tucker
4333df103f
hdl: bladerf-micro: simulation fixes/updates
...
Add missing stuff for simulation
Add a loopback testbench
2018-01-12 17:41:49 -05:00
Rey Tucker
e7c8ef33af
hdl: bladerf-micro: reduce loopback FIFO length
...
We can get by with a smaller loopback FIFO, which will save some RAMs.
2018-01-12 17:40:57 -05:00
Rey Tucker
b4c52b67bc
hdl: ip/nuand: update sample_stream_tb for MIMO
2018-01-12 17:40:27 -05:00
Rey Tucker
252e9ac243
hdl: ip/nuand: update simulation build script
2018-01-12 17:39:22 -05:00
Rey Tucker
89d2309253
hdl: bladerf-micro: add flow control for loopback
...
When performing loopback tests, it is likely that the loopback FIFO will
fill up, causing undetected sample loss. This commit checks for this
condition and pauses the flow of TX samples until the RX side can catch
up.
2018-01-12 17:35:44 -05:00
Rey Tucker
6acfb6a700
hdl: fifo_reader: add flow control for FIFO reads
...
Adds a fifo_holdoff port that, when asserted, will pause the flow of
fifo_reads until de-asserted.
2018-01-12 17:32:11 -05:00
Rey Tucker
41e21dc1cb
host: bladeRF-cli: fix uninitialized status var in cmd_poke
...
Fixes clang warning:
poke.c:137:24: error: variable 'status' is used uninitialized whenever
'if' condition is false [-Werror ,-Wsometimes-uninitialized]
Realistically, there is no way that 'status' could be used on line 141
without one of f, f2, or f3 being true (thus setting the value), due to
the test on 132. There is no harm in initializing it anyway, though.
2017-12-22 16:04:02 -05:00
Rey Tucker
bc0d8169d8
host: libbladeRF: doc, consistency fixes
...
Update bladerf_rf_switch_config struct to use "rfic" instead of "ad9361"
for genericness and consistency.
Also clean up missing/incorrect documentation in various places.
Fix bladeRF-cli to use proper struct member names for
bladerf_rf_switch_config.
2017-12-22 16:02:22 -05:00
Rey Tucker
877caacd72
host: libbladeRF: add FPGA 0.7.[01] to bladerf2 compat table
2017-12-22 16:01:03 -05:00
Rey Tucker
3eec0ad9ee
host: thirdparty/adi: fix warnings
...
Fixes missing fields in initializers and misuse of abs() (using abs() on
an unsigned int has no effect, and using it on an int64_t risks
truncation)
Also fix up a missing newline in an error printf
2017-12-22 15:59:20 -05:00
Rey Tucker
72a605f16e
hdl: bladerf-micro: add timing constraints
...
Add timing constraints for FX3, AD9361, and I2C/SPI accessories.
2017-12-22 15:56:59 -05:00
Brian Glod
e0e592f479
gitignore: Cleanup
...
Remove references to obsolete files/paths
Add **/.qsys_edit
2017-12-21 16:17:54 -05:00
Brian Glod
51255913f4
hdl: Move message suppression files
...
To platform's build dir
2017-12-21 15:44:54 -05:00
Robert Ghilduta
d44dc27b0a
bladerf: add AGC related cores to Nios
2017-12-21 12:55:09 -05:00
Rey Tucker
051c34d2ec
hdl: bladeRF_nios: fix bladeRF2 builds invof arbiter and AGC
2017-12-21 12:55:09 -05:00
Rey Tucker
31c1a52007
host: bladeRF-cli: fixup merge issue with AGC commands
2017-12-21 12:55:09 -05:00
Rey Tucker
7e36cd38fc
host: libbladeRF: fixup merge issues with bladeRF1 AGC
2017-12-21 12:55:09 -05:00
Rey Tucker
470480d32f
host: libbladeRF_test: fix cmake error from merge
2017-12-21 12:55:09 -05:00
Rey Tucker
a853e81445
clang-format: minor tweak for brackets on lists
...
On array definitions, move the closing brace to its own line
2017-12-21 12:55:09 -05:00
Brian Glod
d061c19a7a
hdl/bladerf: Add message suppression file
2017-12-21 12:55:09 -05:00
Brian Glod
b6f0cb2075
hdl/bladerf-micro: Update message suppression file
...
The line numbering of the Qsys SPI component changed in Quartus
17.1. Updating the suppressed message filter accordingly.
2017-12-21 12:55:09 -05:00
Brian Glod
61de796852
hdl/ip/fifo_writer: Fix bug in pack function
...
Fix bit indices when assembling a sample stream into a FIFO word.
2017-12-21 12:55:09 -05:00
Rey Tucker
903e6053c5
host: bladeRF-cli: add ADF4002 lock status to print
2017-12-21 12:55:09 -05:00
Rey Tucker
1479696aa2
host: bladerf2: add bladerf_adf4002_get_locked fn
...
Determines the lock status of the ADF4002 chip
2017-12-21 12:55:09 -05:00