Commit graph

19 commits

Author SHA1 Message Date
Jon Szymaniak
77f8aadb25 libbladeRF: [WIP] Cleanup of backend open and probe 2013-08-11 15:52:08 -04:00
Jon Szymaniak
2288858aaf libbladeRF: [WIP] Changed bladerf_open() interfaces to return status.
The open routines now return status, allowing the caller to
differentiate between I/O failures and an invalid device specifier.

This commit still contains some in-progress known bugs with
some (avoidable) invalid memory accesses.
2013-08-10 18:19:16 -04:00
Jon Szymaniak
ee919d3aa1 libbladeRF: [WIP] Fixed a bugs in FX3 flashing (libusb backend)
Also included is the addition of a get_device_speed() to the
backend function table. Querying the device speed has been moved out
of the backend open() routines, and up to the top-level in bladerf.c.
2013-08-10 13:52:01 -04:00
Jon Szymaniak
28bfd30de5 libbladeRF: [WIP] *UNTESTED* Added FX3 flashing to libusb backend
Commiting to sync up for a dev sprint today. If you're pulling HEAD
to test out the latest and greatest, you'll likely want to avoid this
changest for the time being.
2013-08-10 10:07:56 -04:00
Jon Szymaniak
dcdf944de2 libbladeRF: [WIP] Finished up backend probe() implementations
Resolved segfaults and memory leaks introduced in last few commits.
2013-08-07 23:32:17 -04:00
Brian Padalino
4a7656adf4 libusb: [WIP] Probe modifications. 2013-08-06 22:58:04 -04:00
Jon Szymaniak
876566b44d libbladeRF: [WIP] In the process of adding backend probe() routines
This commit is a developer sync up -- it has not been built or tested.
2013-08-06 22:11:33 -04:00
Brian Padalino
61cd4ba3d9 lib: Change the FPGA programmer to always set the appropriate interface before attempting to program. 2013-08-06 21:43:24 -04:00
Jon Szymaniak
4f7092402b libbladeRF: [WIP] Removed extraneous device init from linux backend.
A couple little non-functional macro changes in the libusb backend as
well...
2013-08-06 00:37:11 -04:00
Jon Szymaniak
bba53afe0a libbladeRF: [WIP] Changed return values for libusb backend's fpga prog
By returning the result, notably from end_fpga_programming(), we
wind up returning a non-zero return value where 0=success and <0=error
are expected.

However, I'm not sure we should be checking the result from the vendor
command response in these routines. Would it be a good idea to
ensure the FPGA is reset after issuing BLADE_USB_CMD_BEGIN_PROG?

There is a FPGA status poll loop afterwards, so I'm inclined to say
we can ignore the fpga status in the end programming command.
2013-08-06 00:15:22 -04:00
Jon Szymaniak
91b95f6acb libbladeRF: [WIP] Fixed a few bad pointer dereferences and assertions 2013-08-05 01:35:13 -04:00
Brian Padalino
02cd151115 lib: libusb backend should be able to tx/rx samples now. 2013-08-05 00:08:33 -04:00
Brian Padalino
14657308d6 cli+lib: TX/RX interface changes. 2013-08-04 22:18:06 -04:00
Jon Szymaniak
79a8bccb60 libbladeRF: [WIP] Fixed use after free in libusb backend error handling 2013-08-04 21:56:57 -04:00
Brian Padalino
460fd4d672 cli+lib: [WIP] libusb and cli changes.
Currently the FPGA loads and register reads/writes work.

Need to get samples sending/receiving.
2013-08-04 21:51:59 -04:00
Brian Padalino
cb7766d1bd backend/libusb: Open and close now works. 2013-08-04 19:44:07 -04:00
Jon Szymaniak
c323fb553d libbladeRF: [WIP] First cut at path from top-level to backend opens
Nightly check-in. This currently fails to run - there's likely
a number of assertion failures and segfaults to address.
2013-08-03 01:23:03 -04:00
Jon Szymaniak
e12fcbf347 libbladeRF: [WIP] header file cleanup 2013-08-02 19:59:47 -04:00
Jon Szymaniak
e277b9b15e libbladeRF: [WIP] Further file renaming 2013-08-01 23:49:00 -04:00
Renamed from linux/lib/src/backends/libusb.c (Browse further)