28 #define TOKEN_MFG(name,creator,iscnt,isidx,type,arraysize,...) \
29 extern const uint16_t TOKEN_##name;
41 #define TOKEN_MFG(name,creator,iscnt,isidx,type,arraysize,...) \
42 TOKEN_##name##_SIZE = sizeof(type),
59 #define TOKEN_MFG(name,creator,iscnt,isidx,type,arraysize,...) \
60 typedef type TOKEN_##name##_TYPE;
64 #undef TOKEN_NEXT_ADDRESS
66 #define DEFINEADDRESSES
77 #define TOKEN_NEXT_ADDRESS(region, address) \
78 TOKEN_##region##_NEXT_ADDRESS = ((address) - 1),
92 #define TOKEN_MFG(name,creator,iscnt,isidx,type,arraysize,...) \
93 TOKEN_##name##_ADDRESS, \
94 TOKEN_##name##_END = TOKEN_##name##_ADDRESS + \
95 (TOKEN_##name##_SIZE * arraysize) - 1,
105 #undef DEFINEADDRESSES
110 #ifndef DOXYGEN_SHOULD_SKIP_THIS
152 #define halCommonGetMfgToken( data, token ) \
153 halInternalGetMfgTokenData(data, token, 0x7F, token##_SIZE)
155 #define halCommonGetIndexedMfgToken( data, token, index ) \
156 halInternalGetMfgTokenData(data, token, index, token##_SIZE)
158 #define halCommonSetMfgToken( token, data ) \
159 halInternalSetMfgTokenData(token, data, token##_SIZE)
161 #endif //DOXYGEN_SHOULD_SKIP_THIS
163 #endif //MFG_TOKEN_H_
Definitions for manufacturing tokens.
void halInternalSetMfgTokenData(uint16_t token, void *data, uint8_t len)
Sets the value of a token in non-volatile storage.
void halInternalGetMfgTokenData(void *data, uint16_t ID, uint8_t index, uint8_t len)
Copies the token value from non-volatile storage into a RAM location.