Jared Boone
549c943979
Add USB control of LPF baseband filter.
...
Add max2837_set_lpf_bandwidth() function to choose available LPF filter bandwidth based on bandwidth in Hz.
Change configuration of MAX2837 to set LPF_EN and FT at max2837_setup(), not in max2837_rx() or max2837_tx() (which was overriding prior filter configuration).
2012-10-17 17:00:36 -07:00
Jared Boone
9c4a0e94b0
Factor out sample_rate_set() from cpu_clock_init().
...
Implement switching between several supported sampling rates for Jellybean and Jawbreaker.
Commit bits of the Si5351C USB request support that I apparently missed in a prior commit.
2012-10-17 16:57:26 -07:00
Jared Boone
d4da08a3d7
Oops! Forgot to change MAX2837 mode from RX to TX when transceiver mode is changed.
...
Initialize MAX5864 earlier, in "transceiver" mode (where both ADC and DAC are active), and then shift SSP1 into MAX2837 mode and leave it there, for faster tuning and RX/TX switching.
2012-10-17 15:59:47 -07:00
Jared Boone
6babcbe579
Add USB vendor requests to read/write Si5351C registers.
2012-10-17 11:57:44 -07:00
Jared Boone
7fdfde9314
Make use of i2c0_init() argument to control duty cycle, when APB1 clock shifts from IRC (~12MHz) to PLL1 (204MHz).
2012-10-17 11:48:35 -07:00
Jared Boone
63b1a25979
Consolidate a few clock setup tasks that repeat among many projects into cpu_clock_init().
2012-10-17 11:45:30 -07:00
Jared Boone
34b4729cfe
Whacked the usb_test project, which was transformed into libhackrf.
...
Moved the Python utilities (such as they are) into a host/python directory.
2012-10-16 20:46:41 -07:00
Jared Boone
0ad2ad3c9a
Merge branch 'master' of https://github.com/mossmann/hackrf
2012-10-16 20:33:50 -07:00
Jared Boone
91a9bf5ca3
Initial commit of libhackrf.
2012-10-16 20:33:41 -07:00
Michael Ossmann
27b4bab680
updated PCB specs to match sunstone
2012-10-16 20:00:23 -06:00
Michael Ossmann
0e420db0c8
plot options, zone updates
2012-10-16 18:05:17 -06:00
Jared Boone
38b6382c5a
Add a guard for stream data file read/write, to ensure fd is valid.
2012-10-16 16:58:36 -07:00
Jared Boone
6cd8da6930
Return of the hand-optimized assembly for SGPIO read and write interrupt.
...
Reset only the one SGPIO slice flag that is actually causing the interrupt.
2012-10-16 16:57:35 -07:00
Jared Boone
1391bfc61e
Flip endian-ness on USB MAX2837 register read request.
2012-10-16 16:56:25 -07:00
Michael Ossmann
f249898f8b
fixed missing GND on U18
2012-10-16 14:02:00 -06:00
Michael Ossmann
c1005740ba
silkscreen zone for writing
2012-10-16 13:41:48 -06:00
Michael Ossmann
356dbe2132
updated date on silkscreen
2012-10-16 13:40:21 -06:00
Jared Boone
4cc865de54
Swapped constant names for HackRF VID and PID. Fortunately, I also had them backward in my call to libusb... Now the names are right!
2012-10-15 15:55:44 -07:00
TitanMKD
34420d3911
Merge branch 'master' of git://github.com/mossmann/hackrf
2012-10-14 22:13:37 +02:00
Michael Ossmann
537b7da06a
Merge pull request #23 from jboone/master
...
Crude USB vendor request API
2012-10-14 13:00:33 -07:00
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