From 623d6084e75737b1fc4a54d34f98be9278326b98 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 6 Jun 2014 18:15:07 +0100 Subject: [PATCH] Make the CC2538 secondary IEEE address location configurable --- cpu/cc2538/ieee-addr.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cpu/cc2538/ieee-addr.h b/cpu/cc2538/ieee-addr.h index 79e97d1fc..faeacdb8f 100644 --- a/cpu/cc2538/ieee-addr.h +++ b/cpu/cc2538/ieee-addr.h @@ -57,10 +57,19 @@ /*---------------------------------------------------------------------------*/ /** * \name IEEE address locations + * + * The address of the secondary location can be configured by the platform + * or example + * * @{ */ -#define IEEE_ADDR_LOCATION_PRIMARY 0x00280028 /**< IEEE address location */ -#define IEEE_ADDR_LOCATION_SECONDARY 0x0027FFCC /**< IEEE address location */ +#define IEEE_ADDR_LOCATION_PRIMARY 0x00280028 /**< Primary IEEE address location */ + +#ifdef IEEE_ADDR_CONF_LOCATION_SECONDARY +#define IEEE_ADDR_LOCATION_SECONDARY IEEE_ADDR_CONF_LOCATION_SECONDARY +#else +#define IEEE_ADDR_LOCATION_SECONDARY 0x0027FFCC /**< Secondary IEEE address location */ +#endif /** @} */ /*---------------------------------------------------------------------------*/ /**