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

Committer:
Innomatix
Date:
Sun Apr 17 15:49:58 2016 +0000
Revision:
1:c7920c8bc557
Parent:
0:b9e1003fbee7
Child:
8:a6311d40c5a2
v1.0.3 Fix problem in USB layer which prevents opening the port a second time and thus Remote DataStore doesnt connect after SystemUpdate has run.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Innomatix 0:b9e1003fbee7 1 /*******************************************************************
Innomatix 0:b9e1003fbee7 2 *
Innomatix 0:b9e1003fbee7 3 * File: InnomatixMeta.h
Innomatix 0:b9e1003fbee7 4 *
Innomatix 0:b9e1003fbee7 5 * Description: Macros for creating metadata tags that get embedded in the binary
Innomatix 0:b9e1003fbee7 6 *
Innomatix 0:b9e1003fbee7 7 * Copyright 2015 Innomatix, LLC., All Rights Reserved
Innomatix 0:b9e1003fbee7 8 *
Innomatix 0:b9e1003fbee7 9 * THIS DOCUMENT AND ITS CONTENTS ARE INTELLECTUAL PROPERTY
Innomatix 0:b9e1003fbee7 10 * OF INNOMATIX, LLC. ANY DUPLICATION IN PART OR WHOLE
Innomatix 0:b9e1003fbee7 11 * WITHOUT PRIOR WRITTEN CONSENT IS STRICTLY PROHIBITED.
Innomatix 0:b9e1003fbee7 12 *
Innomatix 0:b9e1003fbee7 13 *******************************************************************/
Innomatix 0:b9e1003fbee7 14 #ifndef _INNOMATIX_META_H
Innomatix 0:b9e1003fbee7 15 #define _INNOMATIX_META_H
Innomatix 0:b9e1003fbee7 16
Innomatix 0:b9e1003fbee7 17
Innomatix 0:b9e1003fbee7 18 // These macros serve two purposes
Innomatix 0:b9e1003fbee7 19 // 1) The string portion of the macros provide tags that allow the
Innomatix 0:b9e1003fbee7 20 // InnomatixData host to locate useful strings within the
Innomatix 0:b9e1003fbee7 21 // compiled binary. The strings will be used to assist with
Innomatix 0:b9e1003fbee7 22 // system configuration and revision control
Innomatix 0:b9e1003fbee7 23 // 2) The assignment to "p" ensures that the strings are actually
Innomatix 0:b9e1003fbee7 24 // used which ensures that they are not optimized out by the compiler
Innomatix 0:b9e1003fbee7 25 //
Innomatix 0:b9e1003fbee7 26 static const char *p = 0;
Innomatix 0:b9e1003fbee7 27 #define TFMETA( tag, str ) p = "<TFMETA>" tag "=" str "</TFMETA>"
Innomatix 0:b9e1003fbee7 28
Innomatix 1:c7920c8bc557 29 // This metadata is used by the InnomatixData host to identify this as an MBED binary
Innomatix 1:c7920c8bc557 30 static const char *platform = TFMETA( "TYPE", "LPC1768" );
Innomatix 0:b9e1003fbee7 31
Innomatix 0:b9e1003fbee7 32
Innomatix 0:b9e1003fbee7 33 // The InnomatixData host requires the VERSION and DESC metadata values.
Innomatix 0:b9e1003fbee7 34 // Applications should use these macros to provide an appropriate string.
Innomatix 0:b9e1003fbee7 35 #define TFVERSION( str ) TFMETA( "VERSION", str )
Innomatix 0:b9e1003fbee7 36 #define TFDESCRIPTION( str ) TFMETA( "DESC", str )
Innomatix 0:b9e1003fbee7 37
Innomatix 0:b9e1003fbee7 38
Innomatix 0:b9e1003fbee7 39 #endif /* _INNOMATIX_META_H */