Commit graph

26 commits

Author SHA1 Message Date
Vanya A. Sergeev
5f06a3565a firmware_common: add bladerf2 usb pid 2017-12-21 12:54:55 -05:00
Jon Szymaniak
850a110b84 firmware_common: Updated VID/PID with USB-IF registered VID
Nuand has been assigned a VID of: 2CFO
2016-04-06 17:36:01 -04:00
Jon Szymaniak
ff6f2b1cf1 firmware_common: Added command ID for reading FW log entries 2015-12-28 16:10:39 -05:00
Jon Szymaniak
67109af361 libbladeRF, nios: Moved legacy packet format definitions
The definition of the legacy FX3 UART <-> FPGA packet format
has been moved to a top-level fpga_common directory. This
directory will be used to store headers and source files
shared between host code and NIOS II code.
2015-06-18 18:34:28 -04:00
Jon Szymaniak
a2c4713de6 firmware_common: Removed ioctl values
These are no longer used, given that the Linux driver is deprecated.
If and when the Linux driver is re-implemented, these should be
placed in a file common to libbladeRF and the driver, not the firmware.
2015-06-18 18:34:28 -04:00
Jon Szymaniak
79aaf43a2a fx3_firmware: Added "device ready" query
This "device ready" status is used to denote that the device is
ready to be configured and used. Until the device becomes "ready"
all control requests will return an error.

This provides libbladeRF with a means to query when the device is done
loading an FPGA from flash, as well as any other firmware-based
initializations that may be needed in the future.
2014-11-06 15:25:48 -05:00
Jon Szymaniak
dadf19eee0 fx3_firmware: Added support for reading back FW loopback state 2014-07-19 13:31:13 -04:00
Robert Ghilduta
fb16748089 fx3_firmware: add the firmware based loopback support 2014-04-04 05:29:37 -07:00
brent
de115d52fb Fix gain/phase address order 2013-12-28 15:42:48 -05:00
brent
5595f05975 IQ correction work improvements 2013-12-28 15:41:42 -05:00
brent
8aa6940e78 remove unused define 2013-12-28 12:46:43 -05:00
brent
e2667c0e0b add version id register
fix iq correction tb to calculate error with a phase adjusted pristine signal
2013-12-28 12:46:43 -05:00
brent
57afdd97e4 pass the dc gain correction through to the fpga 2013-12-28 12:46:43 -05: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
Robert Ghilduta
5c9ffb6351 fx3_firmware: add FPGA flash based auto-load functionality
The FX3 will now look at sector 1024 to determine if there is an image for it
to load from flash. In case there is, it will configure the SPI controller,
enter FPGA config mode, and override the DMA engine to load the image.
2013-10-09 01:11:08 -07:00
Jon Szymaniak
58c13c65a8 fx3_firmware, libbladeRF: Packed FW version structure, moved serial # init
The bladerf_fx3_version structure is transferred as-is. Currently this
likely doesn't pose any isseus for most machines, since it contains only
two uint32_t's. It's now marked to be packed, just to be safe.

The serial number initialization (ExtracSerial()) has been moved before
the CyU3PConnectState() call to remove a potential race condition.

Macro definitions are now provided for string descriptors.
2013-10-04 19:28:35 -04:00
Jon Szymaniak
ab36a93813 libbbladeRF, utilities: Migrating to major.minor.patch for version #'s
The API now presents a version structure that includes major, minor, and
patch versions. It additionally provides a "describe" string which
includes these version items in a string format, with any additional
annotations (such as git revision and dirty flag).

This changeset removes the older version functions, breaking reverse
compatibility (intentionally). Bumped minor version to reflect this change.
(The 0.Y.Z series is considered unstable at this time.)
2013-10-03 22:50:43 -04:00
Brian Padalino
d05cc61574 libbladeRF: Support for legacy config interface.
Added checks for the legacy config interface being interface 0 instead
of interface 3 which changed in the v1.4 bump.
2013-09-25 00:31:45 -04:00
Keith Rothman
1d481cefd3 [FX3/libbladeRF] Added explicit calibration cache 2013-09-22 08:07:08 +00:00
Keith Rothman
57116c919a [FX3/libbladeRF] Major refactoring of FX3 application
- Split RF, FPGA load, and firmware methods into seperate .c files
 - Split several vendor requests to eliminate magic glEp0Idx and to allow
   for better error handling
   - Updated libbladeRF to use new vendor requests and properly check return
     code.
 - Changed glSpiPageSize from global to #define
 - Move OTP handling into firmware.c
 - Version bump

Conflicts:

	fx3_firmware/bladeRF.c
2013-09-22 08:06:48 +00:00
Keith Rothman
06c204ff13 Assorted fixes for problems found via USB30CV and USB20CV
- Move and use interface numbers
 - Renumber USB_IF_CONFIG from 0 to 3
 - Introduced 0 alt-interface as a NULL interface
 - Fixed FS descriptor length
 - Implemented GET_STATUS, SET_FEATURE, CLEAR_FEATURE w.r.t. halting bulk streams
 - Added include guards for firmware_common/bladeRF.h
 - Changed guard on suspend/resume requests to key on glUsbConfiguration instead
   of glUsbAltInterface.  This is because suspend/resume requests are on
   interfaces, not endpoints.
 - Addresses github tickets #97, #98, #99
2013-09-21 14:08:29 +00:00
Keith Rothman
d36f91cb7d Initial JUMP_TO_BOOTLOADER support
- Added method to libbladeRF
 - Added new VID/PID pair to udev rule to prevent requiring root access
 - Added jump_to_boot bladeRF-cli command
 - Fixed most warnings in FX3 firmware
2013-09-15 05:32:04 +00:00
Keith Rothman
1c4fa232eb [libbladeRF/bladeRF-cli] Added support booting directly from the FX3 bootloader 2013-09-15 05:31:57 +00: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
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
Jon Szymaniak
894f0f48d6 Moved firmware-host common files. Fixed linux backend build.
Moved common -> firmware_common to avoid confusion with the upcoming
host/common directory.

API changes were  not incorporated into the linux backend in  changeset
8cc9f2a4b5 - this is addressed in this
changeset.
2013-08-22 19:56:03 -04:00
Renamed from common/bladeRF.h (Browse further)