Initialise rf_path->switchctrl to SWITCHCTRL_SAFE.
by Martin Ling 2 years 9 months
Initialise rf_path->switchctrl to SWITCHCTRL_SAFE.

This was previously never being initialised.
3dd2e51d
Remove extra call to switchctrl_set and global swi...
by Martin Ling 2 years 9 months
Remove extra call to switchctrl_set and global switchctrl variable.

This call is not required since the GPIOs are already configured in
rf_path_pin_setup(). The global switchctrl is not used anywhere else.
cf34beeb
Initialise RF path GPIOs to safe settings.
by Martin Ling 2 years 9 months
Initialise RF path GPIOs to safe settings.

Previously these calls were leaving the amplifiers on, since the
control settings passed were missing SWITCHCTRL_NO_TX_AMP_PWR and
SWITCHCTRL_NO_RX_AMP_PWR. Use the predefined SWITCHCTRL_SAFE here.

Also move these calls before setting the GPIO pins to output mode,
to avoid driving them to the wrong states briefly first.
eec69637
docs: Remove outdated clocking page
by Michael Ossmann 2 years 9 months
5c812681
Don't start baseband streaming until TX buffer is ...
by Martin Ling 2 years 9 months
Don't start baseband streaming until TX buffer is first filled.
767db9f0
Merge pull request #1103 from dizcza/master
by Michael Ossmann 2 years 9 months
Merge pull request #1103 from dizcza/master

fixed firmware manual build docs
e623c7ae
Merge pull request #1166 from martinling/tx-discon...
by Michael Ossmann 2 years 9 months
Merge pull request #1166 from martinling/tx-disconnect-hang

Fix hang in TX when a libusb error occurs.
8e83506d
Merge pull request #1165 from greatscottgadgets/bo...
by Michael Ossmann 2 years 9 months
Merge pull request #1165 from greatscottgadgets/board-id-compat

libhackrf: #define outdated board IDs
6835bc48
Fix hang in TX when a libusb error occurs.
by Martin Ling 2 years 9 months
Fix hang in TX when a libusb error occurs.

Where our callback is called with a status other than COMPLETED,
something abnormal has happened and we no longer want to either
submit further transfers or await a flush. So clear the streaming
and flush flags, and proceed to transfer_finished.

Do the same in the case where libusb_submit_transfer fails when
called to submit the flush transfer.
e53b9d57
libhackrf: #define outdated board IDs
by Michael Ossmann 2 years 9 months
471c5bc5
Report a bug