Jared Boone
14e90781be
Merge branch 'master' of https://github.com/mossmann/hackrf
2012-10-14 12:37:28 -07:00
Jared Boone
bd2fab0a12
Move USB SET_CONFIGURATION-time initialization of SGPIO and bulk endpoints into a separate function.
...
Initialize transceiver mode at SET_CONFIGURATION time.
Provide switching of transceiver mode via vendor request.
Provide read/write access to MAX2837 registers via vendor requests.
Python utility to dump MAX2837 registers.
Python utility to switch transceiver RX/TX mode.
2012-10-14 12:37:16 -07:00
Jared Boone
a25d48f5d5
Switch default transceiver mode back to RX.
2012-10-14 12:25:22 -07:00
TitanMKD
52cb84959b
Merge branch 'master' of git://github.com/mossmann/hackrf
2012-10-14 18:44:38 +02:00
Will Code
020d15dcc1
Merge pull request #22 from willcode/master
...
Fix 2 more typos in max2837 def file
2012-10-14 05:37:04 -07:00
Will Code
334366aac3
Merge remote-tracking branch 'upstream/master'
2012-10-14 08:15:23 -04:00
TitanMKD
fd2173348f
Merge branch 'master' of git://github.com/mossmann/hackrf
2012-10-14 10:56:02 +02:00
Michael Ossmann
3334a38d24
readme fix
2012-10-13 21:17:36 -06:00
Michael Ossmann
f64e42dbee
updated readme photo from lemondrop/jellybean to jawbreaker
2012-10-13 21:15:12 -06:00
Michael Ossmann
31a31872a5
Merge pull request #21 from jboone/master
...
Transmit support, and various small code consolidations and fixes.
2012-10-13 19:59:10 -07:00
Will Code
283715df0c
Update files that got out of sync somehow.
2012-10-13 20:51:26 -04:00
Jared Boone
f32c6b34ca
Create unions in usb_setup_t so that value, index, and length can be read as words, not just high/low bytes.
2012-10-13 17:06:24 -07:00
Jared Boone
3c17bad743
Stall USB endpoint if control request is not handled.
2012-10-13 17:03:28 -07:00
Jared Boone
048feb1316
Miscellaneous USB notes and naming clean-up.
2012-10-13 17:02:55 -07:00
Jared Boone
7e34950b24
Relocate compiler #defines for PACKED, ALIGNED, SECTION.
2012-10-13 17:01:42 -07:00
Jared Boone
d398cfcc1d
Use new ssp_transfer() function instead of ssp_write().
...
Implement max2837_spi_read().
2012-10-13 16:58:22 -07:00
Jared Boone
5a428a460f
Merge branch 'master' of https://github.com/mossmann/hackrf
2012-10-13 13:48:21 -07:00
Will Code
4c9df75d84
max2837: fix a couple math errors in the def file
2012-10-13 16:27:02 -04:00
Will Code
e6593c0f3c
Merge remote-tracking branch 'upstream/master'
2012-10-13 16:02:51 -04:00
Michael Ossmann
0d53da8593
fixed MAX2837 zero length register fields
2012-10-13 13:59:37 -06:00
Will Code
e982854f12
Merge remote-tracking branch 'upstream/master'
2012-10-13 15:56:05 -04:00
Jared Boone
4cf0ba236d
Extended common Makefile to include targets for DFU file generation and programming.
2012-10-13 12:29:03 -07:00
Jared Boone
57866227bf
Remove weird LDSCRIPT that isn't necessary now.
...
Change .bin generation to include only ROM-able sections.
TODO: Is there a better way to do the objcopy? It'd be great to put everything in the "rom" region into the .bin, instead of having to list out -j section for each of the sections that go to ROM.
2012-10-13 11:37:54 -07:00
Jared Boone
168c92a3d0
Now that RxVGA gain control is working correctly, gain needs to be backed WAAAY off to get a usable capture in a fairly noisy 2.4GHz environment.
2012-10-13 11:07:17 -07:00
Jared Boone
f4b6f08500
Fixed incorrect field with for MAX2837 VGAgain_SPI_EN field. For boards that have no B7:B1 connections, this could prove extra problematic...and for boards that do, but aren't driving those pins from the LPC.
2012-10-13 11:06:39 -07:00
TitanMKD
5b6b3d0c4e
Merge branch 'master' of git://github.com/jboone/hackrf
2012-10-13 13:40:46 +02:00
TitanMKD
939cd7b9bf
Merge branch 'master' of git://github.com/mossmann/hackrf
2012-10-13 13:12:20 +02:00
Jared Boone
8d14de21ce
Fixed prior commit, where I lost the switch between endpoints based on RX or TX mode.
2012-10-12 09:46:49 -07:00
Jared Boone
9824a723b7
Moved invariant in sgpio_configure() loop out of loop. Originally, so I could use the value to calculate another invariant.
2012-10-12 09:45:18 -07:00
Jared Boone
a1af4356b6
Reworked sgpio.c to make use of #defines for fields, instead of hard-coding shifts. Proper.
2012-10-11 20:46:21 -07:00
Jared Boone
9b579232a7
Consolidated single-slice SGPIO configuration functions into single sgpio_configure() function.
2012-10-11 15:45:28 -07:00
Jared Boone
1b5574d2b9
RX and TX sample buffer loops turned out to be the same, so they're consolidated.
2012-10-11 15:19:01 -07:00
Jared Boone
1bad2d8536
Consolidated two "deep" SGPIO configuration functions into one, qualified by transceiver mode (RX or TX). 95-ish % of the code was common.
2012-10-11 15:18:16 -07:00
Jared Boone
6f0fda0bee
Moved transceiver_mode_t to hackrf_core.h.
...
Changed transceiver_mode to volatile, since it's liable to be accessed at interrupt time.
2012-10-11 15:12:25 -07:00
Jared Boone
c0cb64f316
Add support for TX mode.
...
Add getopt control of RX or TX mode.
2012-10-11 13:07:25 -07:00
Jared Boone
fb9ce63f7f
Add (manual) switch for TX and RX mode.
...
Add code for configuring TX mode.
TODO: Consolidate lots of repetitive code.
2012-10-11 13:06:27 -07:00
Jared Boone
8291d7fac0
Add SGPIO configuration function for "deep" (8-slice) TX mode.
2012-10-11 13:04:30 -07:00
Jared Boone
0f81d361c7
Added code to support transmit from usb_test host program.
...
Reorganization of code to support making usb_test a useful utility...
2012-10-10 22:11:44 -07:00
Michael Ossmann
04160f49cc
increased MAX2837 RX output common-mode voltage to maximum
2012-10-10 21:38:03 -06:00
Michael Ossmann
ecfaef57bd
Merge pull request #19 from jboone/master
...
Roll-up of USB-related changes.
2012-10-10 17:14:06 -07:00
Jared Boone
3a9d7432c3
Changed compile optimization flag to -Os from -O2. TitanMKD demonstrated conclusively that it's a good thing.
2012-10-10 16:27:05 -07:00
Jared Boone
d5db378647
Put RFFC5071 code back in place.
2012-10-10 16:17:57 -07:00
Jared Boone
788140f79a
Cast USB buffer address to eliminate compiler warning.
2012-10-10 16:17:23 -07:00
Jared Boone
693e61b31c
Removed block of assembly in favor of C code. TODO: Look at assembly and compiler -O options to avoid assembly.
2012-10-10 16:17:02 -07:00
Jared Boone
0253642b2e
Added extern for usb_set_configuration() to eliminate compiler warning. TODO: Eventually, this should be just a callback, not the complete SET_CONFIGURATION implementation.
2012-10-10 16:15:12 -07:00
Jared Boone
5dbbae6d9c
Removed unused functions to silence warnings.
2012-10-10 16:14:22 -07:00
Jared Boone
8a54e09e15
Elimination of unused argument warnings.
2012-10-10 16:13:37 -07:00
Jared Boone
c02bf358d1
Added license/copyright to several Makefiles.
2012-10-10 15:50:31 -07:00
Jared Boone
092c5b7b0f
Removed removing of .usbram section from .bin file output. Because there's no more .usbram section!
2012-10-10 15:42:30 -07:00
Jared Boone
09b768631e
Tragic, but simple and effective libusb test program for reading data from the HackRF bulk IN endpoint, and dumping it to a file.
2012-10-10 15:22:41 -07:00