1515 Commits

Author SHA1 Message Date
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
Michael Ossmann
7e81647f0d Merge pull request #150 from jboone/hotfix_compiler_warnings_20141110
Hotfix compiler warnings 20141110
2014-11-10 16:53:14 -07:00
Jared Boone
256d6ccef0 Re-scope buffer[] to solve unread array warning. 2014-11-10 11:19:50 -08:00
Jared Boone
e3a841ca24 XSVF: Fix apparent #ifdef scope bug in xsvfDoXCOMMENT() where comments aren't truly ignored. 2014-11-10 11:16:39 -08:00
Jared Boone
75d194e48b Quiet warning about unused arg in xsvfInfoCleanup(). 2014-11-10 11:15:01 -08:00
Jared Boone
9bf640895f Quiet warning about unused args in cpld_buffer_refilled(). 2014-11-10 11:11:49 -08:00
Jared Boone
572fe32393 Add #include to address "sgpio_cpld_stream_rx_set_q_invert" warning. 2014-11-10 11:10:18 -08:00
Michael Ossmann
6935ad625f Merge pull request #140 from cottsay/lib-suffix-fix
fix lib suffixes in pkgconfig
2014-11-04 23:37:38 -07:00
Michael Ossmann
ecab042a3f Merge pull request #141 from cottsay/udev-install-dir
add CMake value to change udev rule destination
2014-11-04 23:37:03 -07:00
Michael Ossmann
f4d7102115 Merge pull request #149 from jboone/hotfix_rffc5071_dirty_read
RFFC5071: Fix to read value from device when register marked dirty.
2014-11-04 23:36:15 -07:00
Michael Ossmann
018db52f11 Merge pull request #148 from jboone/hotfix_max2837_dirty_read
MAX2837: Fix register read when dirty
2014-11-04 23:35:57 -07:00
Michael Ossmann
dcffe7173f Revert "Merge pull request #132 from bgamari/update-libopencm3"
This reverts commit cbe69b3d0b0828e25850e9f3432848d99ec0865d, reversing
changes made to 2f2ca2e630651d97d385d9044149f2f13dd28d05.

I shouldn't have merged that ancient pull request that somehow was
reopened.
2014-11-04 23:25:55 -07:00
Michael Ossmann
cbe69b3d0b Merge pull request #132 from bgamari/update-libopencm3
Update libopencm3
2014-11-04 18:02:39 -07:00
Michael Ossmann
2f2ca2e630 Merge branch 'jboone-firmware_cmake' 2014-11-04 17:54:04 -07:00
Michael Ossmann
dbf43bb06b resolved conflicts and merged jboone:firmware_cmake 2014-11-04 17:53:42 -07:00
Jared Boone
c5d52b6537 RFFC5071: Fix to read value from device when register marked dirty. 2014-11-04 12:48:42 -08:00
Jared Boone
c623e20fae MAX2837: Fix register read when dirty
Regardless of the dirty state of a register, the locally modified (but possibly uncommitted) value will always be returned.
2014-11-04 11:36:53 -08:00
Michael Ossmann
bb9df8a12a Merge pull request #137 from xyb/py
update python examples
2014-09-25 22:35:53 -06:00
Scott K Logan
ea47fd4fbf add CMake value to change udev rule destination 2014-09-21 12:26:08 -05:00
Scott K Logan
c7116b4081 fixed lib suffixes in pkgconfig 2014-09-21 12:22:57 -05:00
xyb
2edd8faac3 try to find Jawbreaker and HackRF One 2014-09-06 23:00:22 +08:00
Michael Ossmann
69c4997727 fixed bug #130, CLKIN failure 2014-08-28 11:34:30 -06:00
Michael Ossmann
21ecd70099 incremented udev rule file number to avoid conflicts 2014-08-28 09:29:03 -06:00
Ben Gamari
ac16a093fc Update libopencm3 2014-08-26 11:22:10 -04:00
Michael Ossmann
635d429a9a DFU instructions update 2014-08-21 22:15:32 -06:00
Michael Ossmann
109d11558e fixed compiler warning 2014-08-21 22:05:20 -06:00
Michael Ossmann
a3dbde7a81 moved udev rules from hackrf-tools to libhackrf 2014-08-21 22:01:26 -06:00
Michael Ossmann
bac53c035e Merge pull request #128 from sophsec/master
Fixed setting of partid in hackrf_board_partid_serialno_read
2014-08-21 20:43:41 -06:00
Michael Ossmann
dcc070c31f Merge pull request #126 from jboone/cpld_tx_q_invert_fix
CPLD TX Q invert fix
2014-08-21 12:11:24 -06:00
Postmodern
2ee29a9e71 Fixed setting of partid in hackrf_board_partid_serialno_read
partid[1] was never being set, so partid[0] would incorrectly be set to partid[1].
2014-08-20 15:29:16 -07:00
Jared Boone
a380713fdd CPLD: Separate RX and TX invert, fix TX invert sense. 2014-08-20 08:38:27 -07:00
Jared Boone
b2f92665ea CPLD: Fix whitespace. 2014-08-20 08:22:47 -07:00
Michael Ossmann
aec97e7470 Merge pull request #125 from jboone/cpld_tx_q_invert
CPLD: Add TX Q invert mechanism.
2014-08-20 00:43:55 -06:00
Jared Boone
ad403fb370 CPLD: Add TX Q invert mechanism. 2014-08-16 17:15:13 -07:00
Michael Ossmann
741941f838 s/Jawbreaker/HackRF/ 2014-08-15 12:31:25 -06:00
Michael Ossmann
c8742572db high-side injection for tuning below 2150 MHz (known bug: baseband spectrum is inverted on TX) 2014-08-15 07:49:13 -06:00
Michael Ossmann
31c82a879a cleaned up signal source mode 2014-08-11 22:58:11 -06:00
Michael Ossmann
19bb8bfb5f Merge pull request #121 from jboone/cleanup_201408
Miscellaneous clean-up
2014-08-11 21:34:51 -06:00
Michael Ossmann
6f2e570829 Merge pull request #119 from jboone/cpld_q_invert
SGPIO API change and CPLD Q channel invert feature.
2014-08-11 21:32:31 -06:00
Michael Ossmann
19ec8b897a Merge pull request #118 from dovecho/master
Add signal source mode to hackrf_transfer
2014-08-11 21:27:44 -06:00
Jared Boone
cd5f0bbb91 Qualify "program" firmware make target to eliminate multiple-definition errors when making entire set of firmware. 2014-08-11 16:44:07 -07:00
Jared Boone
9e95d235b4 Create separate CMake toolchain file. Add references to toolchain file in each firmware CMakeLists.txt. I suspect this can be simpler still, just not sure how, yet... 2014-08-11 16:43:58 -07:00
Jared Boone
4ca1db25a4 Reinstate V=1 make option to see what sections were removed during linking. 2014-08-11 16:43:47 -07:00
Jared Boone
c60caa32fa Ignore firmware/**/build directories for CMake. 2014-08-11 16:43:30 -07:00
Jared Boone
2a7ed069c7 Firmware build system is now CMake, and seems much more sane on the whole. 2014-08-11 16:37:14 -07:00