656 Commits

Author SHA1 Message Date
Michael Ossmann
4bee6b87c4 updated toolchain URL 2016-05-17 18:13:30 -06:00
Dominic Spill
b278f059d0 Merge pull request #224 from schneider42/fix-hackrf-disabled-unused-clocks
fix(hackrf-core): Disable unused clock outputs
2016-01-22 18:24:08 +00:00
Dominic Spill
0418d13e72 Add dummy byte for w25q80bv fast read command timing 2016-01-18 19:42:13 +00:00
Dominic Spill
6522caa2ce Merge "abstract buses" and "fix sgpio example to work with signed samples" 2016-01-16 10:40:22 +00:00
Dominic Spill
75dfc5c2cb Merge branch 'sgpio_rx_samples_signed' of https://github.com/jboone/hackrf into jboone-sgpio_rx_samples_signed 2016-01-16 10:37:43 +00:00
Dominic Spill
eec30d817b Merge pull request #229 from dominicgs/dfu_build_fix
Support both commonly available versions of dfu-util (0.7/0.8)
2016-01-14 18:22:21 +00:00
Dominic Spill
87f59de104 Merge "abstract buses" changes with "fix SPI flash read" 2015-12-20 15:28:29 +00:00
Dominic Spill
b985d9c899 Merge branch 'abstract_buses' of https://github.com/jboone/hackrf into jboone-abstract_buses 2015-12-18 12:24:43 +00:00
Dominic Spill
90bc36c9da Support both commonly available versions of dfu-util (0.7/0.8) 2015-12-17 19:09:29 +00:00
Tobias Schneider
84d800eaeb fix(hackrf-core): Disable unused clock outputs
They generate noise and are most likely not used
2015-11-14 21:35:39 +01:00
Jared Boone
2022cc6351 Only perform W25Q80BV setup once, at startup.
hackrf_usb firmware does not run from SPI flash once the ROM bootloader is done. Simplify assumptions by initializing SPI flash once, early. Do not initialize it every 256 bytes that are read from or written to the device.
2015-08-28 13:03:40 -07:00
Jared Boone
a4e447cb9e Use W25Q80BV read function to retrieve SPI flash contents. 2015-08-28 12:50:07 -07:00
Jared Boone
7c98d3e14b Add W25Q80BV function to fast-read from device. 2015-08-28 12:48:05 -07:00
Jared Boone
83d79be584 Push rf_path_set_direction() calls into test functions.
The tx_test() is now put into TX mode.
2015-08-24 10:20:57 -07:00
Jared Boone
f128a15117 Reduce mag^2 threshold a bit. 2015-08-17 11:15:58 -07:00
Jared Boone
149cd4effc Configure SGPIO slice mode early. 2015-08-17 11:15:40 -07:00
Jared Boone
69db61c5c1 Remove extra SGPIO API calls.
Functions are now performed in rf_path_set_direction().
2015-08-17 11:14:55 -07:00
Jared Boone
adbc5a6f26 Fix calculation of mag^2. 2015-08-17 11:14:14 -07:00
Jared Boone
f2c0531bc2 Change frequency to center of 2.4GHz ISM. 2015-08-17 11:12:52 -07:00
Jared Boone
6f9e7fdab8 Adapt code to signed samples.
Necessary due to change in CPLD to produce signed samples.
2015-08-15 10:03:12 -07:00
Michael Ossmann
af13e756d9 turn off RF amplifier at end of transmission, fixes bug #178 2015-07-08 16:37:49 -06:00
Dominic Spill
d3ce4779e9 Fix inconsistent indentation 2015-07-07 07:23:48 +01:00
Dominic Spill
ce9ad343e0 Fix issue #113 - CPLD update fails on Windows
Using the patch from @supersat
2015-07-06 21:25:01 +01:00
Heikki Hannikainen
35b9e0bea0 Create a #define/constant for the usb_descriptor_string_serial_number length.
Clean up a compilation warning, libusb headers do not like the 'const'.
2015-02-24 01:13:06 +02:00
Heikki Hannikainen
9e92adda79 Refactor obtaining LPC serial number and chip ID into separate API and header/source files. Remove from main().
Create a usb_set_descriptor_by_serial_number(), called before USB stack is started.
2015-02-24 01:12:49 +02:00
Jared Boone
9dbe967bf2 Serial number firmware and host-side changes. Very hacky at this point.
Among the TODOs:
* Refactor obtaining LPC serial number and chip ID into separate API and header/source files. Remove from main().
* Create a usb_set_serial_number_descriptor() or similar function to be called before USB stack is started.
* Ensure USB serial number descriptor is valid even if code forgets to initialize the serial number before the USB stack is started. May be as simple as providing default initializer for usb_descriptor_string_serial_number[].
* Create a #define/constant for the usb_descriptor_string_serial_number length.
* Identify what's causing intermittent crashes in hackrf_transfer when no serial number is specified. I'm probably misusing getopt.
* Permit serial number without leading zeros so you don't have to type as much.
* Add support for serial number argument in other hackrf_* tools.
* Provide libhackrf support for enumerating multiple HackRFs, so that hackrf_info can list all devices. May require an additional libhackrf function, outside of hackrf_open().

...and anything else that makes this less of a hack.
2015-02-23 19:23:31 +02:00
Michael Ossmann
4e98bc6b1b updated DFU make instructions 2014-12-03 14:58:53 -07:00
Michael Ossmann
017a80604a removed .svn directory that never should have been there 2014-12-03 14:01:35 -07:00
Jared Boone
5363ec3672 Use new GPIO API to abstract GPIO in various drivers.
Had to do it all at once due to name conflicts with API exposed in libopencm3.
Quite invasive patch! Also precipitated an LED API...
2014-11-15 16:26:59 -08:00
Jared Boone
7eee145365 Add "pin" interface to abstract GPIO pins. 2014-11-13 16:12:54 -08:00
Jared Boone
32aea14318 Merge branch 'abstract_i2c' into abstract_buses
Conflicts:
	firmware/common/hackrf_core.c
	firmware/common/hackrf_core.h
	firmware/hackrf-common.cmake
2014-11-13 11:26:41 -08:00
Jared Boone
02cc5814b1 I2C: Interface: Rename init()->start(), add stop(). 2014-11-13 10:32:38 -08:00
Jared Boone
ea136038a9 SPI: Rename spi_t to spi_bus_t to match I2C naming. 2014-11-13 10:16:39 -08:00
Jared Boone
05b8c4c153 SPI: Interface: Rename init()->start(), add stop(). 2014-11-13 09:51:48 -08:00
Jared Boone
28d629e099 Si5351C: Bring I2C wrapper into main driver. 2014-11-12 18:32:00 -08:00
Jared Boone
eb0dea483f I2C: Finish extracting from Si5351C code. 2014-11-12 14:03:27 -08:00
Jared Boone
080a1ba9ac Si5351C: Extract I2C code into single transfer function. 2014-11-12 10:45:26 -08:00
Jared Boone
35b549816a Si5351C: Widen write() data_count argument type to size_t. 2014-11-12 10:38:22 -08:00
Jared Boone
4ea0f28d14 SI5351C: Rewrite si5351c_write_single() to use si5351c_write(). 2014-11-12 10:23:00 -08:00
Jared Boone
721f748677 Si5351C: Change write data arg to be const. 2014-11-12 10:21:34 -08:00
Jared Boone
81dfde2a29 RFFC5071: Remove extraneous #include. 2014-11-10 17:05:31 -08:00
Jared Boone
569f320826 SPI: Pull remaining hardware bits out of MAX2837/5864/W25Q80BV device drivers. 2014-11-10 17:05:19 -08:00
Jared Boone
8ced9415c2 SPI: Remove MAX2837/5864, W25Q80BV driver dependence on target code.
Conflicts:
	firmware/common/tuning.c
2014-11-10 17:05:02 -08:00
Jared Boone
6d57c08e28 MAX2837: Add virtual function for setting device mode. 2014-11-10 17:02:57 -08:00
Jared Boone
905cd2b919 SSP: Merge SSP0 and SSP1 code into single unit.
Conflicts:
	firmware/common/hackrf_core.c
2014-11-10 17:02:45 -08:00
Jared Boone
264ee53d47 SPI: Move SCU/pin config to target layers. 2014-11-10 17:00:25 -08:00
Jared Boone
21eb27c3f3 SSP0: Extract SPI interface from W25Q80BV code. 2014-11-10 17:00:15 -08:00
Jared Boone
79fd31d5d6 SSP1: Fix argument name to match SPI naming. 2014-11-10 17:00:06 -08:00
Jared Boone
b8421cc14f SSP1: Merge MAX2837 and MAX5864 SPI code to use single SPI interface.
Conflicts:
	firmware/common/hackrf_core.c
	firmware/common/hackrf_core.h
2014-11-10 16:59:47 -08:00
Jared Boone
58e3465ce5 W25Q80BV: Finish abstracting SPI code. 2014-11-10 16:55:22 -08:00