2421 Commits

Author SHA1 Message Date
Jamie Smith
d60fb83320 Cleanup of host software CMake build system (#664)
* Clean up the CMake build system and improve the FindFFTW3 module.

* Fixes for Linux build

* Include winsock.h to get struct timeval

* Couple more fixes for MSVC, also add new FindMath module

* Update host build README for new CMake changes (esp. Windows)

* Try to fix Travis OS X build error

* Add docs about pthread-win32

* Whoops, AppVeyor caught a bug in FindFFTW where the includes not being found weren't generating a fatal error.

* Travis rebuild bump

* One more fix: replace hardcoded include paths with a PATH_SUFFIX to standard include paths

* Invert Windows preprocessor flag so it's only needed when using a static build.  This preserves compatibility with the previous system.

* Fix copy-paste error

* Update cmake modules from amber-cmake upstream, incorporate TryLinkLibrary into FindUSB1

* Fix missing include
2021-12-03 14:11:04 -05:00
Martin Ling
e9dd7eb291 Merge pull request #1004 from gibbi/AG-FixRateChange
fix stream glitch on rate change
2021-12-02 16:34:41 +00:00
Andreas Gibhardt
fc8b3c18d6 fix stream glitch on rate change 2021-12-02 16:27:43 +01:00
Michael Ossmann
22267f3b8e Merge pull request #996 from straithe/updateDocumentation
Update docs
2021-11-19 20:05:41 -07:00
straithe
7415764b84 Update docs 2021-11-18 20:16:30 -05:00
Michael Ossmann
26c0f70b6b Merge pull request #995 from greatscottgadgets/transfer-struct-doc
libhackrf: document hackrf_transfer struct
2021-11-18 13:06:03 -07:00
Michael Ossmann
0f4f1addd1 libhackrf: document hackrf_transfer struct 2021-11-17 18:38:00 -07:00
Michael Ossmann
80948a2252 Merge pull request #994 from straithe/master
Remove links to mailing list
2021-11-15 17:49:37 -07:00
straithe
19c99909b2 Remove links to mailing list 2021-11-15 19:29:01 -05:00
Mike Walters
01675961cb Merge pull request #993 from greatscottgadgets/sweep-num_samples
hackrf_sweep: simplify dwell time, bin width, and time stamps
2021-11-15 21:59:12 +00:00
Michael Ossmann
c8695e0a44 hackrf_sweep: correct -w (bin_width) minimum 2021-11-14 12:21:29 -07:00
Michael Ossmann
8a3547e71e hackrf_sweep: improve -w (bin_width) guidance 2021-11-14 12:05:29 -07:00
Michael Ossmann
9856452215 hackrf_sweep: eliminate -n option (num_samples)
The firmware has the capability to dwell on each frequency for a
configurable duration in sweep mode, but the hackrf_sweep host tool did
not behave correctly when asked to use a non-default dwell time. The
option has never worked properly, and it is not a feature anyone seems
to want.
2021-11-14 11:41:56 -07:00
Michael Ossmann
2775279fd0 hackrf_sweep: eliminate time stamp adjustment
We previously attempted to adjust the output time stamp according to the
sample rate and placement of the samples within the USB transfer data,
but the end result was a fixed time offset with respect to the time of
USB transfer completion. We are using only those samples closest to the
end of the transfer, so it makes sense to simply use the time the USB
transfer ends and not try to correct that fixed offset.

It may be possible in the future to have a more accurate time stamp
generated in firmware, but I don't think it is worth complicating the
host code with minor time adjustments until and unless firmware-based
time stamps become available.
2021-11-14 11:20:31 -07:00
Michael Ossmann
bd4b786136 Merge pull request #990 from miek/fix_m0_rebuild
Fix automatic rebuilding of M0 code
2021-11-11 17:03:12 -07:00
Michael Ossmann
74fb86f8bc Do not set USB device address to zero (#987)
When setting the USB configuration to zero  return from the
configured state to the address state according to the USB
specification.
2021-11-10 11:22:08 -05:00
Mike Walters
6d56217762 Fix automatic rebuilding of M0 code
This uses `add_custom_command` to run a cmake script instead of using
`configure_file` directly, which allows for adding dependencies and
creates an ouput that can be depended on.

It also uses `add_custom_command` instead of `add_custom_target` to
create the M0 binary, since custom targets have no output file to depend
on.

Unfortunately, multiple targets cannot depend on the same generated file
or cmake tries to run the generation multiple times in parallel. So, the
.bin/.s generation is now duplicated for each target so they don't
conflict.

fixes #693
2021-11-10 11:31:42 +00:00
Michael Ossmann
d94295edcf add list of hardware revisions (#988) 2021-11-08 18:29:16 -05:00
Michael Ossmann
39017551f1 Merge pull request #986 from straithe/removeTravis
Remove Travis file
2021-11-08 14:14:55 -07:00
straithe
fd99b1e688 Remove Travis file 2021-11-08 16:10:04 -05:00
Michael Ossmann
ec3cf3dac9 Merge pull request #985 from lyusupov/master
sgpio_cpld_stream_rx_set_decimation() is no longer available
2021-11-08 14:08:03 -07:00
Linar Yusupov
909c0ca17f sgpio_cpld_stream_rx_set_decimation() is no longer available 2021-11-08 16:45:11 +03:00
Michael Ossmann
681d0c165b Merge pull request #981 from straithe/updateDocsHackRFPage
Update HackRF one docs page
2021-11-03 15:01:49 -06:00
straithe
5a56fff91a Update HackRF one docs pag 2021-11-02 21:07:20 -04:00
Michael Ossmann
f92d49ab23 Merge pull request #961 from straithe/updatedOperatingSystemsPage
Update installing hackrf software documentation
2021-11-02 16:39:14 -06:00
Michael Ossmann
3589bc4ed3 Merge pull request #950 from miek/operacake-cleanup
Opera Cake CLI/API cleanup
2021-10-28 17:00:55 -06:00
straithe
dcc23c40d0 Remove non-HackRF references 2021-10-25 17:41:12 -04:00
Michael Ossmann
c030776792 Merge pull request #971 from ffontaine/master
cmake/modules/FindFFTW.cmake: fix build without fftw3
2021-10-20 10:45:26 -06:00
Fabrice Fontaine
3e32f46c79 cmake/modules/FindFFTW.cmake: fix build without fftw3
Build on Linux fails if libfftw3 is not available since commit
a8c1fc92e9
which replaced
pkg_check_modules(FFTW REQUIRED fftw3f)
by
find_package(FFTW REQUIRED)

Fix this build failure by updating FindFFTW.cmake to check for fftw3f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-10-15 23:42:03 +02:00
Mike Walters
f5a7132805 hackrf_operacake: make main options mutually exclusive
ref #930
2021-10-15 14:45:38 +01:00
Mike Walters
4ecbd5d2c9 hackrf_operacake: add option for default dwell time
This allows for usage like this:

  $ hackrf_operacake -m time -w 1e6 -t A1 -t A2 -t A3
  $ hackrf_transfer -r /dev/null -s 1e6

ref #930
2021-10-15 14:45:38 +01:00
Mike Walters
38ed075437 operacake: replace hackrf_set_operacake_ranges with hackrf_set_operacake_freq_ranges 2021-10-15 14:45:38 +01:00
Mike Walters
0e68be7771 hackrf_operacake: simplify frequency range parsing 2021-10-15 14:45:38 +01:00
Mike Walters
07a9dd73d8 hackrf_operacake: swap argument order for frequency-switching
ref #930
2021-10-15 14:45:38 +01:00
Mike Walters
f9b923fce2 hackrf_operacake: default to address 0
ref #930
2021-10-15 14:45:38 +01:00
Michael Ossmann
988296c194 Merge pull request #931 from miek/operacake-sctimer
Opera Cake SCTimer-based antenna switching
2021-10-14 18:21:26 -06:00
Mike Walters
e41314f130 operacake: add API function to set port dwell times 2021-10-14 14:41:52 +01:00
Mike Walters
c50ebb1a36 operacake: add time switching mode 2021-10-14 14:41:52 +01:00
Schuyler St. Leger
9ee25ab48a operacake: add support for port switching using SCTimer
Based on Schuyler St. Leger's operacake-sctimer branch
2021-10-14 14:36:18 +01:00
Mike Walters
790b5d35cf operacake: add get/set switching mode functions 2021-10-14 14:36:18 +01:00
Mike Walters
7fd3db9b2b operacake: create struct for operacake state 2021-10-14 14:36:18 +01:00
Michael Ossmann
d84ff8262f Merge pull request #966 from yhetti/h1r8
HackRF One: Change fabrication attr for U4, 17-19, 21 to SMT
2021-10-13 10:26:33 -06:00
Michael Ossmann
b293750691 Merge pull request #967 from miek/fix_m0_copy
Copy M0 image directly from ROM, instead of shadow region.
2021-10-13 10:25:08 -06:00
Mike Walters
7f21c93c33 Copy M0 image directly from ROM, instead of shadow region.
This changes m0_rom_to_ram to read directly from the ROM region, rather
than copying from where .text has been copied to RAM.

Previously the second .text section would be merged with the first one,
so the M0 image would be copied to RAM during `pre_main`. However, on
newer linkers the sections are not merged together so the second .text
section did not get copied to RAM.

fixes #936
2021-10-06 18:40:34 +01:00
Taylor Streetman
19d8bd850b HackRF One: Change fabrication attr for U4, 17-19, 21 to SMT 2021-10-05 17:11:15 -06:00
Michael Ossmann
ac0983fadf Merge pull request #964 from yhetti/h1r8
Adjust pin strapping to indicate revision increment.
2021-09-28 16:44:49 -04:00
Taylor Streetman
66d1f04142 Adjust pin strapping to indicate revision increment. 2021-09-28 13:56:13 -06:00
Michael Ossmann
855440be31 Merge pull request #963 from yhetti/h1r8
HackRF One r8
2021-09-28 12:35:34 -04:00
Taylor Streetman
091ac839b7 HackRF One: Update documentation
Update date codes
Move NT3 on silkscreen
Add VBUSCTRL note to .sch
2021-09-28 10:12:28 -06:00
Michael Ossmann
fb48e629c1 HackRF One: update VBUS sense resistor values 2021-09-27 11:56:03 -06:00