1644 Commits

Author SHA1 Message Date
Dominic Spill
9cfa4048e9 Free config descriptor once we have the number of interfaces 2015-06-29 13:41:45 +01:00
Dominic Spill
f3a9e66924 Remove duplicate call to set configuration
+ tidy calls to libusb_close()
2015-06-29 13:08:41 +01:00
Dominic Spill
1acd6a6ad6 Fix GitHub issue #163 - Detach the kernel driver automatically 2015-06-26 17:50:27 +01:00
Chris Kuethe
edf8c23cfd Derp. That's what I get for hacking after bedtime... 2015-05-29 09:25:24 -07:00
Dominic Spill
a1b8535ac0 Merge pull request #158 from hessu/feature/multidev
Multiple device support - fixes issue #87
2015-05-29 17:13:03 +01:00
Chris Kuethe
94b37453b7 these don't need to be errors any more 2015-05-29 00:32:20 -07:00
Chris Kuethe
faddb1b320 squish invalid gain values to acceptable levels 2015-05-29 00:26:14 -07:00
Dominic Spill
8c8ce4d511 Merge pull request #176 from dominicgs/cmake_udev_group
Attempt to detect correct group for udev rule
2015-05-27 20:22:44 +01:00
Chris Kuethe
2570f35260 vga gain must be a multiple of 2, not 8
allow both args to be checked before bailing out
2015-05-25 17:38:24 -07:00
Chris Kuethe
ea46e4435b explain which gain setting was wrong
because sometimes you don't see your typos at 3am.
2015-05-25 17:31:53 -07:00
Heikki Hannikainen
3f523326fd Fix compiling on GCC 4.9 ('for' loop initial declarations not allowed with -std=gnu90) 2015-05-25 09:58:40 +03:00
Dominic Spill
a931b4b16d Merge pull request #164 from ckuethe/master
quick reminder of gain control mappings
2015-05-21 17:52:37 -07:00
Dominic Spill
d8ae5e37b0 Attempt to detect correct group for udev rule 2015-05-15 14:40:04 +01:00
Dominic Spill
de81c54e4e Fix discovery of libusb 1.0 for FreeBSD 2015-04-26 16:54:22 +01:00
Dominic Spill
755a9f67ae Merge pull request #160 from mrbubble62/patch-2
Use C89 declarations to support MSVC2012
2015-04-24 07:21:53 +01:00
Tomasz CEDRO
4dc991e79d Added information on FreeBSD build.
Signed-off-by: Tomasz CEDRO <CeDeROM@tlen.pl>
2015-04-08 03:33:41 +02:00
Tomasz CEDRO
4592d38871 Fixed pkgdata install path on FreeBSD.
Signed-off-by: Tomasz CEDRO <CeDeROM@tlen.pl>
2015-04-08 03:33:33 +02:00
Chris Kuethe
8f9db4456b quick reminder of gain control mappings
So that I don't have to keep googling for this every time I forget which
knob is which.

From http://nine.pairlist.net/pipermail/hackrf-dev/2014-March/000276.html
2015-04-04 12:55:54 -07:00
Jared Boone
a678a0c87b Wiki images of narrowest baseband filter at 2MHz and 8MHz sampling rate. 2015-04-03 11:47:20 -07:00
mrbubble62
19d22eb838 Update hackrf.c
Small change to allow build in Visual Studio 2012
2015-03-02 02:40:06 -05:00
mrbubble62
bc8d1d060c Update README.md 2015-03-02 02:32:54 -05:00
Heikki Hannikainen
7c95f8bb5f hackrf_init: only call libusb_init() once 2015-02-24 14:56:19 +02:00
Heikki Hannikainen
1fae679af3 device enumeration: Return usb_board_ids as an enum 2015-02-24 12:28:07 +02:00
Heikki Hannikainen
9b9466f02a libhackrf: The usb firmware reports board type as USB product id. Provide hackrf_usb_board_id_name() to decode that. 2015-02-24 12:15:05 +02:00
Heikki Hannikainen
c0b3638cce Do not break hackrf_open() API, provide a hackrf_open_by_serial() instead for the new functionality. 2015-02-24 07:43:45 +02:00
Heikki Hannikainen
893fef3fcf Bug fix, open the correct device in hackrf_device_list_open 2015-02-24 01:28:13 +02:00
Heikki Hannikainen
d10dd1945c hackrf_info: Adjust output to print USB device identification string and device index number, before trying to open. 2015-02-24 01:13:48 +02:00
Heikki Hannikainen
856d9a6354 libhackrf: hackrf_device_list() API for device enumeration and opening of any device (with or without serial numbers).
hackrf_info uses hackrf_device_list to list devices, with or without serial number API support.
2015-02-24 01:13:42 +02:00
Heikki Hannikainen
33e20bda0c hackrf_cpldjtag: added -d for device serial number 2015-02-24 01:13:36 +02:00
Heikki Hannikainen
6aa5f00186 hackrf_spiflash: added -d for device serial number 2015-02-24 01:13:31 +02:00
Heikki Hannikainen
b14d77a173 Adjust debug printf's a bit 2015-02-24 01:13:24 +02:00
Heikki Hannikainen
8e21b9882f Permit serial number without leading zeros so you don't have to type as much. In fact, permit any suffix of the serial number. 2015-02-24 01:13:18 +02:00
Heikki Hannikainen
c9f8bb2a05 libhackrf: refactor serial number searching to hackrf_open_usb() 2015-02-24 01:13:13 +02: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
50a6622ff8 nudged refs for assembly diagram 2015-01-27 10:13:09 -07: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