Jared Boone
d13e80b520
With bgamari's new USB configuration for CPLD, be sure to turn up CPU clock to maximum.
2013-09-16 15:21:28 -07:00
Jared Boone
c0274cd2d3
Merge remote-tracking branch 'bgamari/usb' into bgamari_usb_merge
...
Conflicts:
firmware/hackrf_usb/hackrf_usb.c
firmware/hackrf_usb/usb.c
firmware/hackrf_usb/usb_queue.c
firmware/hackrf_usb/usb_queue.h
firmware/hackrf_usb/usb_standard_request.c
2013-09-16 15:18:14 -07:00
Ben Gamari
67a181ac36
hackrf_usb: Update transceiver_mode on all configuration changes
2013-09-14 18:24:26 -04:00
Ben Gamari
64ef3f71c0
hackrf_usb: Make main loop non-blocking
2013-09-14 18:24:26 -04:00
Ben Gamari
3ba8d33de8
hackrf: Enter cpld_update from main loop
...
Otherwise we never respond to SET_CONFIGURATION
2013-09-14 18:24:26 -04:00
Ben Gamari
dc9c6c9667
cpld: Stream CPLD data from host
...
Previously CPLD programming involved a large 64kbyte buffer into which
the the entire bitstream would be completely downloaded, and at which
point the programming process would commence. This is needlessly
wasteful of memory. Moreover, it could lead to USB timeouts as the
firmware needs to wait the entire duration of the programming process
before returning an ACK to the host after the final SETUP data phase
packet.
Instead, we now receive 512 byte chunks of the bitstream and stream them
to the CPLD one at a time. We wait for each packet to be streamed out to
the CPLD before ACKing the packet to prevent active data being
overwritten.
2013-09-14 18:24:25 -04:00
Ben Gamari
4773ee5a53
hackrf_usb: Port to use usb_queue
2013-09-14 18:24:25 -04:00
Jared Boone
b893b0a694
Merge remote-tracking branch 'bgamari/usb' into bgamari_usb_merge
...
Conflicts:
firmware/hackrf_usb/hackrf_usb.c
firmware/libopencm3
2013-09-06 15:20:58 -07:00
Jared Boone
6c0d803647
Cleaned up management of SGPIO and transceiver mode state vs. USB configuration state. This should help with power management. It may also be necessary when operating at low speed (48MHz), to keep the SGPIO interrupts from chewing up ALL available CPU cycles.
2013-09-04 16:27:43 -07:00
Jared Boone
1f5b979fd9
Added usb_set_configuration_changed_cb() call that bgamari fixed in his as-yet-unmerged USB branch.
2013-09-04 16:24:19 -07:00
Jared Boone
189d245868
Merge remote-tracking branch 'TitanMKD/master' into titanmkd_overclock_fix
...
Conflicts:
firmware/hackrf_usb/hackrf_usb.c
2013-09-04 12:41:03 -07:00
TitanMKD
24ed48d93a
Fix for "issues/62 fix PLL1 overclock bug" see hackrf_core.c -> cpu_clock_init()
...
Fix for "issues/78 startup current too high" see hackrf_core.c -> New functions cpu_clock_pll1_low_speed()/cpu_clock_pll1_max_speed() & hackrf_usb.c to switch low_speed/max_speed.
2013-08-28 22:01:57 +02:00
Ben Gamari
14526cd1c2
hackrf_usb: Be more careful in transceiver_mode check
2013-07-07 17:50:53 -04:00
Ben Gamari
3e3a57e3ce
hackrf_usb: Don't attempt to schedule transfers when OFF
...
The endpoints are disabled so no good will come of this
2013-07-07 17:50:53 -04:00
Ben Gamari
abb0b3f928
hackrf_usb: Forgotten initialization
2013-07-07 17:50:53 -04:00
Ben Gamari
df97b6584b
hackrf_usb: Port to usb_queue
2013-07-07 17:50:53 -04:00
Ben Gamari
96f8621ad9
hackrf_usb: Port things away from schedule_wait
2013-07-07 17:50:07 -04:00
Ben Gamari
dfdfad2bf0
hackrf_usb: Port to usb_queue
2013-07-07 17:50:07 -04:00
Ben Gamari
42b7391918
usb: Begin shuffling transfer management to usb_queue
2013-07-07 17:48:54 -04:00
Ben Gamari
1bbe375746
A few more changes due to the libopencm3 merge
2013-07-07 17:48:54 -04:00
Ben Gamari
ddd7d8ca71
Fix NVIC interrupt macro names
...
In libopencm3 master the NVIC macros are prefixed with NVIC_ not
NVIC_M4_
2013-07-07 17:48:54 -04:00
Ben Gamari
0972829ce5
usb: Rework configuration change notification
2013-07-01 00:25:22 -04:00
Hoernchen
b33f534da0
firmware, lib: update comments, doc
2013-06-17 12:32:12 +02:00
Hoernchen
839a1a170f
fw: dc offset correction fix
...
pins b7 & b6 are floating, disable re-triggering
selecting a different HPC_STOP fixes the dc offset drift
disabling and enabling rx/tx after tuning triggers the dc offset
correction
2013-06-16 20:26:02 +02:00
Hoernchen
3f6c91a5db
firmware: automagically update freq when changing the if freq
2013-06-16 20:25:36 +02:00
Hoernchen
8063bd8207
firmware: if precision
2013-06-16 20:24:32 +02:00
Hoernchen
a6696de1d2
fw: ack
2013-06-16 20:24:19 +02:00
Hoernchen
bee537dc01
firmware: rffc frac, if gain
2013-06-16 20:23:47 +02:00
Hoernchen
fe7558fcf3
lib/fw: rename the sample rate function
2013-06-09 00:09:46 +02:00
Sylvain Munaut
f0c7fe66f1
firmware: New fractional sample rate algorithm and usb command
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-09 00:08:18 +02:00
Hoernchen
1925649a01
firmware: fractional sample rates
2013-06-07 14:29:14 +02:00
Hoernchen
233c56c79d
libhackrf/firmware: merge txvga gain into one gain range of 0-47
2013-05-29 00:53:41 +02:00
Hoernchen
abc3cd1f4f
firmware: gain control
2013-05-27 14:01:22 +02:00
Michael Ossmann
389cbc6ac4
renamed usb_performance to hackrf_usb
2013-05-18 08:51:34 -06:00