2283 Commits

Author SHA1 Message Date
ggatis
38f6d4c828 Update hackrf_sweep.c
change if ( fd != NULL ) to if ( ( fd != NULL ) && ( fd != stdout ) )
before fclose( fd );
2020-06-16 13:55:50 +03:00
Michael Ossmann
43e6f99fe8 Merge pull request #702 from miek/dont_reinit_endpoints
Don't re-init bulk endpoints on every set_transceiver_mode call
2020-02-11 07:49:08 -07:00
Mike Walters
d8250c6396 Don't re-init bulk endpoints on every set_transceiver_mode call
Previously the firmware would re-initialise the bulk endpoints on
every transceiver mode change including a USB data toggle reset,
which could cause the first bulk packet (512-bytes) to be dropped
by the host if the PID no longer matched.
2020-02-10 15:46:55 +00:00
Michael Ossmann
92ee144714 Merge pull request #699 from miek/ui_disable
Add option to disable HackRF UI
2020-01-22 14:35:58 -07:00
Mike Walters
4aac303480 Add option to disable HackRF UI
Fixes #608
2020-01-22 21:23:30 +00:00
Michael Ossmann
7e025f3e46 Merge pull request #698 from miek/operacake_init_fixes
Operacake GPIO init fixes
2020-01-22 10:34:08 -07:00
Michael Ossmann
4e75a25882 Merge pull request #697 from mossmann/sample-rates
remove specific sample rate recommendations
2020-01-22 10:10:55 -07:00
Mike Walters
c6e1a5f7f7 Fix Operacake GPIO mode initialisation 2020-01-22 14:21:03 +00:00
Mike Walters
05b1650a6a Rename hackrf-ui.[ch]
Every other source file uses underscores! :(
2020-01-22 14:20:23 +00:00
Michael Ossmann
ecd82e81c1 remove specific sample rate recommendations
HackRF One supports arbitrary sample rates from 2 Msps to 20 Msps.  In
early development we had ideas about preferred sample rates that we no
longer consider valid.
2020-01-22 06:39:08 -07:00
Michael Ossmann
ba26b742a9 Merge pull request #692 from miek/m0_sgpio
Use the M0 core to handle SGPIO samples
2020-01-20 17:22:03 -07:00
Michael Ossmann
76817e1b99 Merge pull request #691 from miek/sgpio_debug
Add SGPIO debug CPLD image & host tools
2020-01-20 17:16:34 -07:00
Mike Walters
4d23acd2fd Add sgpio_debug tools 2020-01-20 23:33:44 +00:00
Mike Walters
f59b1e9c15 cpld/sgpio_debug: Add TX/RX counters to check SGPIO
For RX, this replaces received samples with an 8-bit incrementing counter.
This allows for identification of any dropped or repeated samples across the
SGPIO interface.

For TX, this compares transmitted samples against another 8-bit incrementing
counter, and raises pin B2AUX1 if they don't match. This should be used with
a tool on the host-side that transmits a matching counter.
2020-01-20 23:33:41 +00:00
Mike Walters
77f9c124f7 cpld/sgpio_debug: Start with copy of sgpio_if 2020-01-20 23:30:50 +00:00
Mike Walters
e76eace09d Use the M0 to collect SGPIO samples 2020-01-20 14:22:30 +00:00
Mike Walters
3e2ca4e6c3 Bring up the M0 & blink TX LED 2020-01-20 14:22:30 +00:00
Michael Ossmann
058276d010 Merge pull request #671 from yhetti/acrylic_case
Acrylic case
2020-01-06 16:47:28 -07:00
Michael Ossmann
8ff56c615f Merge pull request #661 from mgesteiro/hackrf_transfer-fix
FIXED: remove garbage at the end when capturing to stdout ('-r -')
2020-01-06 16:43:14 -07:00
Matioupi
1442014a80 Modified hackrf_stop_tx and hackrf_stop_rx to first join the transfer thread
before setting the receiver to OFF mode (cf. issue #650)
2020-01-06 16:37:05 -07:00
Michael Ossmann
208fae7538 Merge pull request #645 from jboone/master
Sync up PortaPack UI changes.
2020-01-06 16:31:28 -07:00
Michael Ossmann
1569737109 Merge pull request #607 from dominicgs/portapack_ui_opera_cake_coexistence
Allow portapack and opera cake to coexist and still enable the PP UI
2020-01-06 16:28:58 -07:00
Michael Ossmann
06eb9192cd Merge pull request #672 from mossmann/clang-fix
Fix OSX travis builds
2019-12-17 15:39:52 -07:00
Mike Walters
dcb98f7f51 Get FFTW library dir 2019-12-10 18:46:51 +00:00
Mike Walters
d9897e03b1 Fix FFTW include dir 2019-12-10 18:46:51 +00:00
Mike Walters
74790c3076 travis: Use a newer OSX image 2019-12-10 18:46:51 +00:00
Michael Ossmann
37c32abc37 use ARMmbed gcc 2019-12-10 18:46:40 +00:00
Taylor Streetman
f443094e66 Removed old SoB directory; added new 'acrylic_case' directory 2019-12-09 16:31:40 -07:00
mgesteiro
c2d2492d41 FIXED: remove garbage at the end when capturing to stdout ('-r -') 2019-11-12 09:03:51 +01:00
Taylor Streetman
8f41cdf446 replaced acrylic case .dxf file with rev2 .dxf file 2019-10-30 10:47:24 -06:00
Jared Boone
923f9fe617 Merge remote-tracking branch 'mossmann/master' 2019-09-26 10:01:37 -07:00
Michael Ossmann
e9c6c2d2e6 sharebrained is the cmake master and we are all unworthy 2019-09-25 23:15:49 -06:00
Jared Boone
6b474cbbd7 Merge remote-tracking branch 'mossmann/master' 2019-09-23 13:35:29 -07:00
Michael Ossmann
b9558ba910 update libopencm3 to avoid unsafe yaml.load() 2019-09-01 15:12:16 -06:00
Jared Boone
ef5b907295 CPLD: Remove checksum function from libhackrf and hackrf_info.
The checksum calculation process was causing the CPLD configuration to reload from flash. With the new SRAM loading mechanism, flash contents may not be up to date, so the CPLD bitstream may regress to the point of not working or not working correctly. This commit is a short-term fix for mossmann/hackrf issue #609.
2019-03-27 12:16:39 -07:00
Jared Boone
53e8d698c7 CMake: Extracted custom binary targets into a macro.
Less error-prone, making changes across the (now three) different binaries for each project.
2019-03-27 11:18:24 -07:00
Jared Boone
cb821e4602 CMake: Separate run-from-RAM and DFU binaries.
PortaPack uses the run-from-RAM build for HackRF mode, but doesn't want the serial number to show up as "RunningFromRAM".
2019-03-27 10:44:26 -07:00
Jared Boone
1b7ef4212d PortaPack: Show RX/TX "waves" when radio is operating. 2019-03-22 10:14:34 -07:00
Jared Boone
f0a45e3f0e PortaPack: Change initial UI radio topology to match boot state.
So the RX amp isn't rendered for a moment at power-up.
2019-03-21 11:16:06 -07:00
Jared Boone
6e5b31d579 PortaPack: Add display of clock reference source. 2019-03-20 20:18:49 -07:00
Jared Boone
190c3972f4 Clock reference: Add UI hook. Simplify selection code. 2019-03-20 20:18:25 -07:00
Jared Boone
027a0eca97 rad1o: Fix #include. 2019-03-20 20:16:24 -07:00
Jared Boone
a535a9bb6b PortaPack: Clear the baseband RX gain label on TX. 2019-03-20 19:09:10 -07:00
Jared Boone
78e27001aa PortaPack: Make label-drawing functions take a label enum. 2019-03-20 19:08:44 -07:00
Jared Boone
84463eb0e1 PortaPack: Improve speed of frequency rendering.
To reduce impact on hackrf_sweep speed.
2019-03-20 16:33:32 -07:00
Jared Boone
ddec31c0a2 PortaPack: Double draw speed of UI, which was impacting hackrf_sweep. 2019-03-20 16:01:49 -07:00
Jared Boone
891eaa9e62 Clock reference: Return enum for selected clock source. 2019-03-20 14:38:18 -07:00
Jared Boone
2531d486f9 Merge branch 'hygiene_again' into develop 2019-03-20 14:28:12 -07:00
Jared Boone
dccb748216 PortaPack: Add check for PortaPack clock reference, use if present.
Wow, it takes a lot of ugly code to keep blinky happy...
2019-03-20 13:27:20 -07:00
Jared Boone
46fd11af5b Si5351C: Extract best block source function into hackrf_core.
It's not an Si5351C driver thing, but a HackRF thing. Also added a driver function to check if CLKIN signal is valid, and made use of it, instead of opaque register read code.
2019-03-20 11:16:44 -07:00