A simple event logger has been added to the firmware to replace
the use of CyU3PDebugPrint() calls. This is intended to provide access
to errors and diagnostic information without requiring JTAG access.
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.
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.
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.
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.
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.
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.
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.)
- 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
- 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
- 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
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.