Commit graph

17 commits

Author SHA1 Message Date
Jon Szymaniak
5b6bcf4512 drivers: Updated bladeRF DeviceDesc
Updated description to match what is currently being used with libusb-based drivers.
2014-12-19 16:07:36 -05:00
Jon Szymaniak
51a0fb4ea3 drivers: Added FX3 bootloader to customized cyusb3.inf 2014-12-18 15:29:31 -05:00
Jon Szymaniak
0b7f43712c libbladeRF: Added support for Cypress Windows Driver & API backend
A USB backend based atop of the Cypress CyAPI (which is based atop the
Cypress CyUSB3 driver) has been introduced. This is intended to provide
Windows users with an additional driver to use if they encounter issues
with their USB host controller and libusb.

To build and use this backend, the Cypress FX3 SDK must be installed and
the following CMake flags should be provided:
    -DENABLE_BACKEND_CYAPI=Yes -DFX3_SDK_PATH=<path to SDK>

A modified cyusb3.inf is provided in host/drivers/windows/cyusb3. Upon
performing a build this inf file and the associated driver files from
the FX3 SDK will be copied into the "output" directory along with the
bladeRF.dll and bladeRF-cli.exe. To install the driver, point the
Windows driver update to this location and accept the warning about the
driver being unsigned; this occurs because the Cypress driver wasn't
signed with bladeRF VID/PID values.

The libbladeRF device string for this backend is: "cypress"

Many thanks go out to LazyDodo for all his efforts in spearheading the
development of this backend -- much of this code is either his doing or
is directly based upon his efforts.
2014-10-12 21:55:26 -04:00
Jon Szymaniak
0d00dbc8e2 driver/linux: Updated README.md
Added note that this driver should not be used in its current form.
2014-07-05 12:20:10 -04:00
Robert Ghilduta
e861baf4bd linux driver: fix RX routines
This commit improves buffer accounting and locking in the RX paths.
2014-04-29 05:57:27 -04:00
Robert Ghilduta
52ce004079 linux driver: fix TX routines
This commit improves buffer accounting and locking in the TX paths.
2014-04-29 05:55:09 -04:00
Robert Ghilduta
1bcafeb1fb linux driver: remove timeouts from read and write
read() and write() calls are now blocking calls
2014-04-29 05:54:29 -04:00
Jon Szymaniak
625694eaa5 license: License changes on various portions of the codebase
Where possible (and with contributor permission), items have been
changed to LGPLv2.1 or MIT licenses to avoid issues with any proprietary
libraries from vendors (HDL and FW), allow static linking (with headless
mode operation in mind), and to generally present users with more
permissive licenses.

File headers and the COPYING have been updated accordingly. Third party
sources have been either removed, replaced, or relocated in the source
tree, in accordance with the licenses decided upon for each part of the tree.

Contributor Assignment Agreements have been added, and it is required
that these be submitted before significant patches and pull requests
are accepted.
2013-10-27 00:17:35 -04:00
Jon Szymaniak
3168175f48 linux_driver: Applied structure renaming from ab36a93813 2013-10-05 02:40:53 -04:00
Guido Paliot
d0c0485fbe Fixed missing bracket and c&p error in bladeRF.c, removed dup defines, moved define from .c to .h 2013-09-01 20:58:33 +02:00
Jon Szymaniak
ba0bd67793 Removed vim swap file 2013-08-27 00:17:04 -04:00
Robert Ghilduta
10ffba1b39 Add device reset functionality
This commit adds the much needed device reset functionality that allows the
device to reset after an upgrade and start running the new firmware.
2013-08-25 18:21:07 -07:00
Robert Ghilduta
da7a0e16e8 libbladeRF: change to using alt_settings
This commit correctly changes the bladeRF's behavior by using mutually exclusive
alternate interface settings. Interfaces are not guaranteed to be exist one at a
time, thus they are unfit for use as an operating mode index.
2013-08-25 15:16:52 -07:00
Jon Szymaniak
b7c335a69a Merge branch 'dev-libusb_support' into bladerf
This merge introduces libusb-1.0 support into libbladeRF. This is now
preferred over the Linux driver backend for the time being, as it will
allow quicker ports to Windows and OSX. The Linux driver will be
significantly refactored and improved at a later time; it is not
recommended for use with this set of changes.

As of this commit, Windows and OSX builds are still works in progress.
Linux builds have been tested and verified.

** Important **
This branch also introduces CMake support, code base reorganization, and
significant API changes. Please review the updated API header (best viewed
via the Doxygen-generated html files.)

If you've been working out of the bladerf branch, it is recommended that
you clean up the following:

1. Uninstall Linux kernel module, if you have it loading at boot
2. Remove installed libbladeRF files (libbladeRF.h, pkg-config, files, .so's)
3. Remove installed CLI program
4. Remove udev rules

Please review the new "Getting started" text and the instructions in the
README.md and  host/README.md files for the new build procedure.

Manually resolved Conflicts:
	README.md
	host/drivers/linux/bladeRF.c
	host/utilities/bladeRF-cli/src/interactive/interactive.h
	linux/lib/src/bladerf.c
2013-08-25 13:53:13 -04:00
Jon Szymaniak
db6066e8f8 linux_driver: Fixed build that was broken by 894f0f48d6 2013-08-22 21:27:25 -04:00
Jon Szymaniak
e303076921 First cut at functioning CMake setup (Linux-only)
Further revisions will be needed to do some cleanup, as well as
address Windows & OSX support.
2013-08-13 01:24:58 -04:00
Jon Szymaniak
6323d15990 libbladeRF & CLI: [WIP] In the process of switching over to CMake
*Warning:* This is a broken nightly commit.

If not obvious, quite a bit of rearranging has been done.

The build script(s) for libbladeRF is mostly complete. This still
requires further configuration of debug builds and version info being
used to populate a version header.

Some cleanup has been done in the (formerly apps, now) utilities
directory. There's no CMake support in here yet...that's comming in the
next commit.
2013-08-12 03:24:16 -04:00