From c745199d53bced2e98c82b451f4778c63960aed1 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 10 Dec 2016 20:57:58 +0000 Subject: [PATCH] Allow frequency band-specific overrides --- cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c b/cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c index 8e3454916..2e45000af 100644 --- a/cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c +++ b/cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c @@ -30,6 +30,7 @@ /*---------------------------------------------------------------------------*/ #include "contiki-conf.h" +#include "rf-core/dot-15-4g.h" #include "driverlib/rf_mailbox.h" #include "driverlib/rf_common_cmd.h" #include "driverlib/rf_prop_cmd.h" @@ -42,6 +43,12 @@ #define SMARTRF_SETTINGS_BOARD_OVERRIDES #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 #define SMARTRF_SETTINGS_OVERRIDE_RSSI_OFFSET SMARTRF_SETTINGS_CONF_OVERRIDE_RSSI_OFFSET #else @@ -133,6 +140,9 @@ static uint32_t overrides[] = /* Board-specific overrides, if any */ SMARTRF_SETTINGS_BOARD_OVERRIDES + /* Band-specific overrides, if any */ + SMARTRF_SETTINGS_BAND_OVERRIDES + (uint32_t)0xFFFFFFFF, }; /*---------------------------------------------------------------------------*/