15 #define CONTIKI_CONF_RANDOM_MAC 0 //adds 78 bytes
16 #define CONTIKI_CONF_SETTINGS_MANAGER 0 //adds 1696 bytes
18 #if CONTIKI_CONF_SETTINGS_MANAGER
20 #define PARAMETER_STORAGE 2
22 #define PARAMETER_STORAGE 1
27 #if PARAMETER_STORAGE==2
28 #define settings_add(...) 0
29 #define settings_add_uint8(...) 0
30 #define settings_add_uint16(...) 0
35 extern uint8_t eemem_mac_address[8];
36 extern uint8_t eemem_server_name[16];
37 extern uint8_t eemem_domain_name[30];
41 #define PARAMS_SERVERNAME SERVER_NAME
43 #define PARAMS_SERVERNAME "ATMEGA128rfa1"
46 #define PARAMS_DOMAINNAME DOMAIN_NAME
48 #define PARAMS_DOMAINNAME "localhost"
51 #define PARAMS_NODEID NODE_ID
53 #define PARAMS_NODEID 0
55 #ifdef CHANNEL_802_15_4
56 #define PARAMS_CHANNEL CHANNEL_802_15_4
58 #define PARAMS_CHANNEL 26
60 #ifdef IEEE802154_PANID
61 #define PARAMS_PANID IEEE802154_PANID
63 #define PARAMS_PANID 0xABCD
65 #ifdef IEEE802154_PANADDR
66 #define PARAMS_PANADDR IEEE802154_PANADDR
68 #define PARAMS_PANADDR 0
70 #ifdef RF230_MAX_TX_POWER
71 #define PARAMS_TXPOWER RF230_MAX_TX_POWER
73 #define PARAMS_TXPOWER 0
76 #define PARAMS_EUI64ADDR EUI64_ADDRESS
79 #if UIP_CONF_LL_802154
81 #define PARAMS_EUI64ADDR {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01}
84 #define PARAMS_EUI64ADDR {0x00, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01}
90 uint8_t params_get_eui64(uint8_t *eui64);
91 #if PARAMETER_STORAGE==0
93 #define params_get_servername(...)
94 #define params_get_nodeid(...) PARAMS_NODEID
95 #define params_get_channel(...) PARAMS_CHANNEL
96 #define params_get_panid(...) PARAMS_PANID
97 #define params_get_panaddr(...) PARAMS_PANADDR
98 #define params_get_txpower(...) PARAMS_TXPOWER
101 uint16_t params_get_nodeid(
void);
102 uint8_t params_get_channel(
void);
103 uint16_t params_get_panid(
void);
104 uint16_t params_get_panaddr(
void);
105 uint8_t params_get_txpower(
void);