Allow frequency band-specific overrides

This commit is contained in:
George Oikonomou 2016-12-10 20:57:58 +00:00
parent 5756248949
commit c745199d53

View file

@ -30,6 +30,7 @@
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#include "contiki-conf.h" #include "contiki-conf.h"
#include "rf-core/dot-15-4g.h"
#include "driverlib/rf_mailbox.h" #include "driverlib/rf_mailbox.h"
#include "driverlib/rf_common_cmd.h" #include "driverlib/rf_common_cmd.h"
#include "driverlib/rf_prop_cmd.h" #include "driverlib/rf_prop_cmd.h"
@ -42,6 +43,12 @@
#define SMARTRF_SETTINGS_BOARD_OVERRIDES #define SMARTRF_SETTINGS_BOARD_OVERRIDES
#endif #endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#ifdef SMARTRF_SETTINGS_CONF_BAND_OVERRIDES
#define SMARTRF_SETTINGS_BAND_OVERRIDES SMARTRF_SETTINGS_CONF_BAND_OVERRIDES
#else
#define SMARTRF_SETTINGS_BAND_OVERRIDES
#endif
/*---------------------------------------------------------------------------*/
#ifdef SMARTRF_SETTINGS_CONF_OVERRIDE_RSSI_OFFSET #ifdef SMARTRF_SETTINGS_CONF_OVERRIDE_RSSI_OFFSET
#define SMARTRF_SETTINGS_OVERRIDE_RSSI_OFFSET SMARTRF_SETTINGS_CONF_OVERRIDE_RSSI_OFFSET #define SMARTRF_SETTINGS_OVERRIDE_RSSI_OFFSET SMARTRF_SETTINGS_CONF_OVERRIDE_RSSI_OFFSET
#else #else
@ -133,6 +140,9 @@ static uint32_t overrides[] =
/* Board-specific overrides, if any */ /* Board-specific overrides, if any */
SMARTRF_SETTINGS_BOARD_OVERRIDES SMARTRF_SETTINGS_BOARD_OVERRIDES
/* Band-specific overrides, if any */
SMARTRF_SETTINGS_BAND_OVERRIDES
(uint32_t)0xFFFFFFFF, (uint32_t)0xFFFFFFFF,
}; };
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/