Official support library for using mbed as a programmable coprocessor in the Innomatix DAP-III+ telematics platform

InnomatixMeta.h

Committer:
Innomatix
Date:
2016-04-17
Revision:
1:c7920c8bc557
Parent:
0:b9e1003fbee7
Child:
8:a6311d40c5a2

File content as of revision 1:c7920c8bc557:

/*******************************************************************
 *
 *  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>"

// This metadata is used by the InnomatixData host to identify this as an MBED binary
static const char *platform = TFMETA( "TYPE", "LPC1768" );


// 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 */