42 Commits

Author SHA1 Message Date
Martin Ling
c0d13de598 Add braces to all control statements without them. 2022-08-03 23:46:46 +01:00
Martin Ling
c3fdf402d7 Reformat all code to new clang-format standard. 2022-08-03 23:46:44 +01:00
Dominic Spill
acaf0d192c Change RFFC5071 clock from 40MHz to 50MHz and invert it
Now the MAX2837 and RFFC5071 clocks are out of phase with each other
Hopefully this reduces some noise
2017-02-21 17:56:37 -07:00
Michael Ossmann
0335f1a317 Reverted 31a37bd841b99154fce7217d2b3d78a24f8aacd9 Output RFFC5072 LOCK status
This enabled a debug signal used during sweep mode development on HackRF One, but it broke Jawbreaker.
2017-02-11 12:24:22 -07:00
Mike Walters
31a37bd841 Output RFFC5072 LOCK status 2016-12-27 21:08:12 +00:00
Mike Walters
303334870f Don't bother setting path 1 when tuning RFFC5072
Mixer path 1 only exists in the RFFC5071
2016-12-27 21:08:12 +00:00
Jared Boone
5363ec3672 Use new GPIO API to abstract GPIO in various drivers.
Had to do it all at once due to name conflicts with API exposed in libopencm3.
Quite invasive patch! Also precipitated an LED API...
2014-11-15 16:26:59 -08:00
Jared Boone
ea136038a9 SPI: Rename spi_t to spi_bus_t to match I2C naming. 2014-11-13 10:16:39 -08:00
Jared Boone
569f320826 SPI: Pull remaining hardware bits out of MAX2837/5864/W25Q80BV device drivers. 2014-11-10 17:05:19 -08:00
Jared Boone
b8421cc14f SSP1: Merge MAX2837 and MAX5864 SPI code to use single SPI interface.
Conflicts:
	firmware/common/hackrf_core.c
	firmware/common/hackrf_core.h
2014-11-10 16:59:47 -08:00
Jared Boone
f034bc82ca RFFC5071: Further work abstracting SPI details out of driver. 2014-11-10 16:48:41 -08:00
Jared Boone
786a8fd2e1 RFFC5071: Rename rffc5071_drv->rffc5071_spi. 2014-11-10 16:48:31 -08:00
Jared Boone
69867bb637 RFFC5071: Further refactoring to create common SPI interface. 2014-11-10 16:48:09 -08:00
Jared Boone
e1d1274523 RFFC5071: Refactor a bunch. 2014-11-10 16:47:45 -08:00
Jared Boone
55ed2c1aff RFFC5071: Remove debug/test code. 2014-11-10 16:47:34 -08:00
Jared Boone
d55bd529e2 RFFC507x: De-singleton the driver code. 2014-11-10 16:42:08 -08:00
Jared Boone
0c69d0a7f7 RFFC5071: Separate hardware-specific code.
Conflicts:
	firmware/CMakeLists.txt
	firmware/hackrf_usb/Makefile
	firmware/mixertx/Makefile
	firmware/sgpio/CMakeLists.txt
	firmware/simpletx/Makefile
	firmware/spiflash/CMakeLists.txt
	firmware/startup/Makefile
	firmware/startup_systick/Makefile
	firmware/startup_systick_perfo/Makefile
2014-11-10 16:41:51 -08:00
Jared Boone
c5d52b6537 RFFC5071: Fix to read value from device when register marked dirty. 2014-11-04 12:48:42 -08:00
Michael Ossmann
f5be40fe5b fixed tuning bug 2014-03-12 12:40:45 -06:00
Jared Boone
84d7263fa4 Widen frequency argument/return paths in RFFC5071 code. 2014-02-19 12:56:24 -08: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
Hoernchen
b33f534da0 firmware, lib: update comments, doc 2013-06-17 12:32:12 +02:00
Hoernchen
8063bd8207 firmware: if precision 2013-06-16 20:24:32 +02:00
Hoernchen
bee537dc01 firmware: rffc frac, if gain 2013-06-16 20:23:47 +02:00
Michael Ossmann
155a688d11 updated rffc test/commments 2013-03-07 10:35:49 -07:00
Michael Ossmann
771b93fe62 increased rffc5071 serial speed 2013-02-24 14:25:51 -07:00
Jared Boone
8a54e09e15 Elimination of unused argument warnings. 2012-10-10 16:13:37 -07:00
Michael Ossmann
d1aac9860a fixed jawbreaker MIX_BYPASS bug 2012-10-02 23:10:13 -06:00
Michael Ossmann
11ade349d1 fixed jawbreaker bug: activate correct pin function for MIXER_SCLK 2012-10-02 16:21:17 -06:00
Michael Ossmann
df740440b0 fill lodiv register with n_lo, not lodiv variable (inconsistent naming is inherited from RFFC docs) 2012-09-20 16:52:38 -06:00
Michael Ossmann
d6a94a339a RFFC tx and rx functions updated for Jawbreaker 2012-09-20 12:41:11 -06:00
Michael Ossmann
237df75789 extra clock after RFFC serial transactions, Jawbreaker RF switch control 2012-09-20 11:59:33 -06:00
Michael Ossmann
7d0c572569 Jawbreaker mixer serial interface support 2012-09-19 11:55:24 -06:00
Will Code
d7a7825f85 Fix overflows in shifts, suppress warnings for temporarily unused variables. 2012-09-04 20:08:30 -04:00
Will Code
599acbe142 Driver for RFFC5071 2012-09-03 19:16:09 -04:00
Michael Ossmann
6d74a94e54 configure both mixers 2012-08-23 21:34:38 -06:00
Michael Ossmann
834b3aabd1 RFFC5071 integer tuning function 2012-08-23 16:30:45 -06:00
Michael Ossmann
b0ebd75188 two-clocks-while-ENX-high fix for write operations, various example PLL configs 2012-06-14 19:52:45 -06:00
Michael Ossmann
06b63d9936 added two clocks while ENX high to get RFFC5071 serial reads to work (thanks, Jared!) 2012-06-14 12:42:51 -06:00
Michael Ossmann
68f9a1c6e4 fixed inconsistent naming of mixer pins 2012-06-14 10:44:22 -06:00
Michael Ossmann
a1e2549ae1 troubleshooting RFFC5071 serial 2012-06-14 10:36:38 -06:00
Michael Ossmann
b9cde55f8c initial RFFC5071 support 2012-06-13 21:28:46 -06:00