6 #include PLATFORM_HEADER
15 #define TOKEN_MFG(name,creator,iscnt,isidx,type,arraysize,...) \
16 const int16u TOKEN_##name = TOKEN_##name##_ADDRESS;
29 static const int8u nullEui[] = { 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF };
34 int8u *ram = (int8u*)data;
37 index = (index==0x7F) ? 0 : index;
39 if(ID == MFG_EUI_64_LOCATION) {
45 tokTypeMfgEui64 eui64;
46 halCommonGetMfgToken(&eui64, TOKEN_MFG_CUSTOM_EUI_64);
47 if(MEMCOMPARE(eui64,nullEui, 8 ) == 0) {
48 halCommonGetMfgToken(&eui64, TOKEN_MFG_ST_EUI_64);
50 MEMCOPY(ram, eui64, 8 );
56 int32u realAddress = (DATA_BIG_INFO_BASE|ID) + (len*index);
57 int8u *flash = (int8u *)realAddress;
72 MEMCOPY(ram, flash, len);
80 int32u realAddress = (DATA_BIG_INFO_BASE|token);
81 int8u * flash = (int8u *)realAddress;
87 assert((token&1) != 1);
89 assert((realAddress>=CIB_BOTTOM) && ((realAddress+len-1)<=CIB_TOP));
96 assert(flash[i] == 0xFF);
102 assert(flashStatus == ST_SUCCESS);