95 Commits

Author SHA1 Message Date
Hoernchen
05008fbe48 tools: fix more warnings 2013-06-11 12:59:02 +02:00
Hoernchen
ecdaf40fb7 lib: un-break msvc 2013-06-11 12:55:10 +02:00
Michael Ossmann
d55a591175 fix printf format warnings 2013-06-10 08:03:14 -06:00
Michael Ossmann
fcae60b77a fix type-punning warning with -fstrict-aliasing 2013-06-10 08:01:03 -06:00
Hoernchen
8ab20d5d35 tools: operator precedence, precision 2013-06-09 01:04:32 +02:00
Hoernchen
fe7558fcf3 lib/fw: rename the sample rate function 2013-06-09 00:09:46 +02:00
Sylvain Munaut
791476b422 libhackrf: Update the library with new fractional sample rate API
And send the new USB command

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-09 00:08:18 +02:00
Michael Ossmann
f522e8a326 Merge pull request #75 from Hoernchen/siclock
see commits
2013-06-07 20:34:28 -07:00
Michael Ossmann
f88d206340 Merge pull request #74 from TitanMKD/master
Fix management hackrf_spiflash invalid filename or error to open for read/write
2013-06-07 20:31:44 -07:00
Hoernchen
cf8f7644c9 fix indent, fix unused vars 2013-06-07 23:46:45 +02:00
Hoernchen
c7142aad95 tools: calculate the multisynth output and print it 2013-06-07 21:29:30 +02:00
Hoernchen
675c9493e3 lib: rename the define, gcc already defines BIG_ENDIAN 2013-06-07 20:36:50 +02:00
TitanMKD
54ef9c9508 hackrf_spiflash added checks & error on fileopen() error for read & write. 2013-06-07 19:37:37 +02:00
Hoernchen
d3d9038697 lib: actually handle the value returned by the fw when setting the gains 2013-06-07 18:17:55 +02:00
Hoernchen
222d518bb7 lib: make BE people happy 2013-06-07 15:30:49 +02:00
Hoernchen
cd7da974d5 lib: fractional sample rates 2013-06-07 14:29:14 +02:00
Michael Ossmann
f60cfd677f Merge pull request #68 from smunaut/pending
Misc patches I needed to make it work properly
2013-06-06 18:15:40 -07:00
Alexander Neumann
d60f382c07 Correct help text for hackrf_transfer
Option for 5 MHz sample-rate was removed, show correct minimal
sample-rate of 8 MHz
2013-06-06 23:27:46 +02:00
Sylvain Munaut
fce132d266 libhackrf: Fix early exit of transfer thread in case of syscal interruption
libusb can return LIBUSB_ERROR_INTERRUPTED and it's not really an error,
just a sign some syscall got interrupted by something. Don't abort on
that.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-06 22:55:06 +02:00
Sylvain Munaut
02509f2f44 libhackrf: Add a pkgconfig .pc file to allow auto-discovery of prefix
Shamelessly copied from librtlsdr.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-06 22:53:57 +02:00
Hoernchen
4c39d15a84 tools: add gain control 2013-05-30 13:01:31 +02:00
Hoernchen
b7687c718f lib: fix mingw 2013-05-29 21:08:31 +02:00
Hoernchen
762f6054e9 tools: fix hackrf_si5351c to print ms6 and 7
6 and 7 are integer only. Also fixes printing of the output divider
value.
2013-05-29 19:41:37 +02:00
Michael Ossmann
14257a0032 fix #define false 1 2013-05-28 22:50:54 -06:00
Hoernchen
233c56c79d libhackrf/firmware: merge txvga gain into one gain range of 0-47 2013-05-29 00:53:41 +02:00
Hoernchen
551b7dc011 libhackrf: findlibhackrf should try to find libhackrf in /usr/include, too 2013-05-28 23:29:46 +02:00
Hoernchen
c2f09c082d lib/msvc: do not swallow the static lib 2013-05-28 22:58:07 +02:00
Hoernchen
e16cafd9a1 host: modify the cmake build system, there is a new top dir cmake file that builds everything 2013-05-28 22:48:40 +02:00
Hoernchen
270043990d tools: msvc signal handling 2013-05-28 19:04:09 +02:00
Hoernchen
a9c301cfd4 windows, pt3 2013-05-27 14:02:15 +02:00
Hoernchen
d18159cf62 libhackrf: gain control 2013-05-27 14:01:21 +02:00
Hoernchen
2200e4c109 windows, pt2 2013-05-27 14:01:20 +02:00
Hoernchen
dea06b2732 windows 2013-05-27 14:01:20 +02:00
TitanMKD
d127d1a664 hackrf-tools fixed install by default to (path)/bin 2013-05-23 21:11:08 +02:00
TitanMKD
b4af69ac38 hackrf-tools fixed make install and added make uninstall feature.
libhackrf added make uninstall feature.
Thanks to horizon for the hint for cmake uninstall script.
2013-05-23 20:53:23 +02:00
TitanMKD
a38c20d440 Fixed hackrf-tools CMake scripts to build them out of tree. 2013-05-18 10:25:01 +02:00
TitanMKD
cc74842b78 Fix FindLIBHACKRF.cmake 2013-05-18 00:03:00 +02:00
TitanMKD
18932692ab Updated hackrf_transfer(host) and ubs_performance(firmware) extended frequency range from 5MHz to 6800MHz. 2013-05-17 23:41:32 +02:00
TitanMKD
0fc46cb91a Added cmake script to find libhackrf. 2013-05-17 23:39:19 +02:00
TitanMKD
221337793c Moved host/libhackrf/examples to host/hackrf-tools 2013-05-17 01:14:34 +02:00
TitanMKD
345794fdb9 Moved host/libhackrf/examples to host/hackrf-tools 2013-05-17 01:13:24 +02:00
TitanMKD
bf964e769d New license for libhackrf based on http://opensource.org/licenses/BSD-3-Clause 2013-05-17 00:00:46 +02:00
Jared Boone
d0e609429d Merge branch 'master' of https://github.com/mossmann/hackrf 2013-05-11 16:59:00 -07:00
Jared Boone
8dec5cb31a Tweak C/CXX_FLAGS to separate language standard used for C and C++ files. 2013-05-10 18:12:09 -07:00
TitanMKD
418680aed2 Fixed libhackrf, hackrf_cpldjtag (host) & usb_performance (firmware) to update CPLD through USB.
Use latest CPLD bitstream with following command line:
hackrf_cpldjtag.exe -x hackrf\hardware\jellybean\sgpio_if\default.xsvf
2013-05-09 00:29:42 +02:00
TitanMKD
5225477164 * Modified API hackrf_is_streaming() now it returns an int HACKRF_TRUE when streaming is running.
* Added new hackrf_error especially for streaming to return more details.
* Adding management of usb transfer cancelled for hackrf_stop_rx()/hackrf_stop_tx().
* Added robustness on hackrf_close() to correctly close libusb related stuff even if USB device is removed or other problems.
* Fixed threading problems (start, stop() then start() ...).
* Cleanup the whole code.
2013-05-08 15:03:30 +02:00
TitanMKD
9749466512 Cleanup wave_file_hdr declaration for string WAVE ... thanks Hoernchen for the info. 2013-04-11 19:57:19 +02:00
TitanMKD
ead843ec2a hackrf_spiflash modified -l argument is not used anymore with -w argument, file len is automatically read. 2013-04-07 18:57:30 +02:00
TitanMKD
294e958472 sgpio_if (top.vhd) CPLD VHDL fix for IQ/aliasing problems for ADC. (cpldjtagprog => sgpio_if_xsvf.h updated to rebuild).
usb_performance.c SGPIO IQ fix for ADC (QI->IQ) for new CPLD (use usb_performance_rom_to_ram version else there is some packet lost even at 10Mhz sampling rate => make -f Makefile_rom_to_ram.)
2013-04-04 19:43:30 +02:00
TitanMKD
3eb757c7d8 Merge branch 'master' of git://github.com/mossmann/hackrf 2013-04-04 19:18:55 +02:00