Innomatix Support / InnomatixSupport
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers InnomatixMeta.h Source File

InnomatixMeta.h

00001 /*******************************************************************
00002  *
00003  *  File: InnomatixMeta.h
00004  *
00005  *  Description: Macros for creating metadata tags that get embedded in the binary
00006  *
00007  *  Copyright 2015 Innomatix, LLC., All Rights Reserved
00008  *
00009  *  THIS DOCUMENT AND ITS CONTENTS ARE INTELLECTUAL PROPERTY
00010  *  OF INNOMATIX, LLC.  ANY DUPLICATION IN PART OR WHOLE
00011  *  WITHOUT PRIOR WRITTEN CONSENT IS STRICTLY PROHIBITED.
00012  *
00013  *******************************************************************/
00014 #ifndef _INNOMATIX_META_H
00015 #define _INNOMATIX_META_H
00016 
00017 
00018 // These macros provide tags that allow the InnomatixData host to locate useful
00019 //  strings within the compiled binary.  The strings will be used to assist with
00020 //  system configuration and revision control
00021 #define TFMETA( tag, str )    "<TFMETA>" tag "=" str "</TFMETA>"
00022 
00023 // This metadata is used by the InnomatixData host to identify this as an MBED binary
00024 // Use the __attribute__((unused)) to supress the "unused variable" warning
00025 static const char *PlatformMeta = TFMETA( "TYPE", "LPC1768" );
00026 static char dummyP = *PlatformMeta;
00027 
00028 
00029 // The InnomatixData host requires the VERSION and DESC metadata values.
00030 // Applications should use these macros to provide an appropriate string.
00031 #define TFVERSION( str )      TFMETA( "VERSION", str )
00032 #define TFDESCRIPTION( str )  TFMETA( "DESC", str )
00033 
00034 
00035 #endif /* _INNOMATIX_META_H */