Jared Boone
e7c6408473
Add comment describing SWITCHCTRL pins vs. RF path configurations.
2013-09-07 20:21:43 -07:00
Jared Boone
d65314db37
Clean up switchctrl code a bit -- redundant #ifdefs and complex if conditions.
2013-09-07 20:20:48 -07:00
Jared Boone
bafe97e302
Extract knowledge of RF path configurations from the RFFC5071 driver.
...
Change initial RF path mode to SWITCHCTRL_SAFE. (Previously started at SWITCHCTRL_SAFE and then immediately switched to SWITCHCTRL_AMP_BYPASS.)
2013-09-07 12:59:57 -07:00
Jared Boone
6dee455ef2
Contain calls to rffc5071_(rx|tr) to a single location.
2013-09-07 12:40:09 -07:00
Jared Boone
518c46a111
Oops, missed a spot where I should've called a MAX2837 mode function.
2013-09-06 23:09:29 -07:00
Jared Boone
b89f43e97e
Replace transceiver_mode dependent MAX2837 mode management with max2837_mode() -> max2837_set_mode() calls.
2013-09-06 22:50:04 -07:00
Jared Boone
a367f84d15
Add MAX2837 mode set/get functions.
2013-09-06 22:29:57 -07:00
Jared Boone
a5c0b5deeb
Add MAX2837 functions to control operating mode.
...
Replace direct manipulation of GPIOs controlling MAX2837 with operating mode functions.
2013-09-06 21:29:31 -07:00
Jared Boone
7c5db57f02
Hide the MAX2837 intermediate frequency behind a function. It also prevents leakage of the freq_*_cache variables.
2013-09-06 16:46:03 -07:00
Jared Boone
1ac3d59875
Update libopencm3 submodule commit.
2013-09-06 16:02:01 -07:00
Jared Boone
5143456d6d
Update libopencm3 submodule commit.
2013-09-06 15:25:34 -07: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
266003f3af
Added two CGU debugging tools:
...
- check_clock.py to decode the frequency monitor result.
- dump_cgu.py to display selected CGU registers in a legible format.
2013-09-04 16:34:20 -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
d76d72665e
Adjusted cpu_clock_pll1_low_speed() to operate at 48MHz, as per several comments with the code. The actual MSEL value was previously selecting 84MHz.
2013-09-04 16:23:32 -07:00
Jared Boone
237bf6ecdb
Pulled redundant PLL1 initialization code from cpu_clock_init(). Called cpu_clock_pll1_low_speed() instead.
2013-09-04 16:22:41 -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
Jared Boone
a90c3b2324
Merge pull request #100 from jboone/master
...
Incorporate bgamari changes for libopencm3 upstream.
2013-09-02 11:10:11 -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
Michael Ossmann
2648107a0b
added dfu-util requirement
2013-08-11 14:56:32 -06:00
Ben Gamari
3642fe9bc6
usb_queue: Kill dead declaration
2013-07-10 10:12:59 -04:00
Ben Gamari
f6b41dbda5
fix2
2013-07-07 23:21:18 -04:00
Ben Gamari
b738cd5294
fix1
2013-07-07 23:21:11 -04:00
Ben Gamari
bb69f655b1
usb_queue: Use while instead of for
2013-07-07 21:58:06 -04:00
Ben Gamari
f50253eaa3
usb_queue: Use ldrex/strex to avoid disabling interrupts
2013-07-07 21:54:25 -04:00
Ben Gamari
e23cc9bd6c
usb_queue: Disable interrupts when allocating transfer
2013-07-07 21:25:31 -04:00
Ben Gamari
cce17c42fd
libopencm3: Update
2013-07-07 21:24:13 -04:00
Ben Gamari
df400eced6
Bump libopencm3
2013-07-07 21:08:57 -04:00
Ben Gamari
4822512dac
Bump libopencm3
2013-07-07 18:51:50 -04:00
Ben Gamari
d30d7309d9
usb_queue: Mark queues as volatile
2013-07-07 17:50:54 -04:00
Ben Gamari
36cf222ef4
usb_queue: Add some interrupt disabling around critical sections
2013-07-07 17:50:53 -04:00
Ben Gamari
14526cd1c2
hackrf_usb: Be more careful in transceiver_mode check
2013-07-07 17:50:53 -04:00
Ben Gamari
9f2dca3e4e
usb_standard_request: Always call configuration_changed_cb
...
For reasons I don't entirely understand, bulk requests are suddenly
ignored after a SET_CONFIGURATION request (even if the configuration did
not change) unless the endpoints are reinitialized. This is done by
configuration_changed_cb, therefore we call it for every request.
2013-07-07 17:50:53 -04:00
Ben Gamari
f12defebc6
usb: Ensure endpoint queue is flushed on disable/init
2013-07-07 17:50:53 -04:00
Ben Gamari
8fdc22f8c8
usb-queue: Add flush utility
2013-07-07 17:50:53 -04:00
Ben Gamari
969647dbef
usb_queue: Update queue before calling completion callback
2013-07-07 17:50:53 -04:00
Ben Gamari
5a70772295
usb_queue: Enable transfer chaining
...
Unfortunately this seems to be slightly broken. While hackrf_transfer
streams fine, things fall apart when disabling streaming. Not sure why
yet.
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
dd81921650
usb_queue: Reduce transfer_pool size
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
b6f9a3699a
usb_queue: Kill assert reference
2013-07-07 17:50:53 -04:00
Ben Gamari
63ce57b306
usb_queue: Clarify comment
2013-07-07 17:50:53 -04:00
Ben Gamari
f1fc4a6d73
usb_queue: Account for completion of multiple transfers
2013-07-07 17:50:53 -04:00
Ben Gamari
13589b8695
usb_queue: Ensure fields get set
2013-07-07 17:50:53 -04:00
Ben Gamari
28fcb2a961
usb_queue: Merge fill_in_transfer into schedule
2013-07-07 17:50:53 -04:00
Ben Gamari
1d9119fd8a
usb: Ensure TERMINATE bit gets set
2013-07-07 17:50:53 -04:00
Ben Gamari
2ad4cbe087
usb_queue: Fix calculation of transferred
2013-07-07 17:50:53 -04:00
Ben Gamari
f3a36d06fd
usb_queue: Add new transfer after finding tail
2013-07-07 17:50:53 -04:00