Official support library for using mbed as a programmable coprocessor in the Innomatix DAP-III+ telematics platform
Diff: InnomatixMeta.h
- Revision:
- 0:b9e1003fbee7
- Child:
- 1:c7920c8bc557
diff -r 000000000000 -r b9e1003fbee7 InnomatixMeta.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/InnomatixMeta.h Fri Apr 15 18:35:31 2016 +0000 @@ -0,0 +1,37 @@ +/******************************************************************* + * + * File: InnomatixMeta.h + * + * Description: Macros for creating metadata tags that get embedded in the binary + * + * Copyright 2015 Innomatix, LLC., All Rights Reserved + * + * THIS DOCUMENT AND ITS CONTENTS ARE INTELLECTUAL PROPERTY + * OF INNOMATIX, LLC. ANY DUPLICATION IN PART OR WHOLE + * WITHOUT PRIOR WRITTEN CONSENT IS STRICTLY PROHIBITED. + * + *******************************************************************/ +#ifndef _INNOMATIX_META_H +#define _INNOMATIX_META_H + + +// These macros serve two purposes +// 1) The string portion of the macros provide tags that allow the +// InnomatixData host to locate useful strings within the +// compiled binary. The strings will be used to assist with +// system configuration and revision control +// 2) The assignment to "p" ensures that the strings are actually +// used which ensures that they are not optimized out by the compiler +// +static const char *p = 0; +#define TFMETA( tag, str ) p = "<TFMETA>" tag "=" str "</TFMETA>" + + + +// The InnomatixData host requires the VERSION and DESC metadata values. +// Applications should use these macros to provide an appropriate string. +#define TFVERSION( str ) TFMETA( "VERSION", str ) +#define TFDESCRIPTION( str ) TFMETA( "DESC", str ) + + +#endif /* _INNOMATIX_META_H */