Added support for reading MAC from the cc253x flash

We still use the primary location by default (Info Page) but
this is now configurable. This change is useful for users who
wish to specify their own MAC address. Since the Info Page is
read-only, they need to be able to use the secondary location
This commit is contained in:
George Oikonomou 2012-04-20 14:06:25 +01:00
parent 29090a3dda
commit e95f94a9a8
3 changed files with 48 additions and 6 deletions

View file

@ -83,6 +83,15 @@
*/
#define NETSTACK_CONF_SHORTCUTS 1
/*
* By default we read our MAC from the (read-only) Information Page (primary
* location). In order to have a user-programmable mac, define this as 0 to
* use the secondary location (addresses 0xFFE8 - 0xFFEF on the last flash page)
*/
#ifndef CC2530_CONF_MAC_FROM_PRIMARY
#define CC2530_CONF_MAC_FROM_PRIMARY 1
#endif
/*
* Sensors
* It is harmless to #define XYZ 1