Make LNA bias trim offset configurable

This commit is contained in:
George Oikonomou 2016-12-05 12:11:58 +00:00
parent 6694e69788
commit 7ca3bea701

View file

@ -48,6 +48,12 @@
#define SMARTRF_SETTINGS_OVERRIDE_RSSI_OFFSET 0x00FB88A3
#endif
/*---------------------------------------------------------------------------*/
#ifdef SMARTRF_SETTINGS_CONF_OVERRIDE_TRIM_OFFSET
#define SMARTRF_SETTINGS_OVERRIDE_TRIM_OFFSET SMARTRF_SETTINGS_CONF_OVERRIDE_TRIM_OFFSET
#else
#define SMARTRF_SETTINGS_OVERRIDE_TRIM_OFFSET 0x00038883
#endif
/*---------------------------------------------------------------------------*/
/* Overrides for CMD_PROP_RADIO_DIV_SETUP */
static uint32_t overrides[] =
{
@ -96,9 +102,9 @@ static uint32_t overrides[] =
ADI_HALFREG_OVERRIDE(0, 61, 0xF, 0xD),
/*
* override_phy_gfsk_rx.xml
* Rx: Set LNA bias current trim offset to 3
* Rx: Set LNA bias current trim offset. The board can override this
*/
(uint32_t)0x00038883,
(uint32_t)SMARTRF_SETTINGS_OVERRIDE_TRIM_OFFSET,
/* Rx: Freeze RSSI on sync found event */
HW_REG_OVERRIDE(0x6084, 0x35F1),
/*