Initialize the device if a default value is seen on the GPIO
config pins.
Fix up some coverity and samplerate floating point exception
bugs in the si5338 code.
Change the flash FPGA option to be -L instead of -H.
Make the version strings be long options only, no short ones.
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.
This commit adds the command line and libbladeRF support for flashing an image
to flash so that the bladeRF will auto-load the image when it boots. An rbf can
be loaded by running `bladeRF-cli -H ./hostedx40.rbf`. This will cause the FX3
firmware to load the FPGA image from flash the next time the unit boots, this
should not cause any problems reprogramming the device after it's already
loaded. To disable the auto-load feature after enabling it run
`bladeRF-cli -H X`, this destroys the FPGA image stored in flash.
There is no touch.exe that ships with the SDK on Windows, touch must not be used
in the Makefile. mkdir can also exit with status code 1, indicating it cannot
create an already existing directory, this should not stop the build from
continuing.
Sometimes (when we only read from the device) when we want speed and only read
from the flash it is useful to ignore certain parts of the read procedure.
Generally a SPI call should not finish unless CyFxSpiWaitForStatus() will return
immediately on the next invocation.
Changed the tuning algorithm to try to minimize accesses to the
peripheral. Not 100% convinced it comes up with the same results as the
original algorithm, so both are back-to-back currently.
This command moves some non-version items out of the "version" command,
and also prints information from a device's associated bladerf_devinfo.
Related changes to tracked files snuck in on me in
cf552e30e5.
'value' could have be truncated on systems where sizeof(unsigned long) >
sizeof(unsigned int). As it is unlikely that someone will use such a
system, this is mainly to keep consistent with the other functions in
this file.
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.)