Official support library for using mbed as a programmable coprocessor in the Innomatix DAP-III+ telematics platform
InnomatixMeta.h@0:b9e1003fbee7, 2016-04-15 (annotated)
- Committer:
- Innomatix
- Date:
- Fri Apr 15 18:35:31 2016 +0000
- Revision:
- 0:b9e1003fbee7
- Child:
- 1:c7920c8bc557
v1.0.2 Rework to use USB for comms, rework example, add user guides
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:b9e1003fbee7 | 29 | |
Innomatix | 0:b9e1003fbee7 | 30 | |
Innomatix | 0:b9e1003fbee7 | 31 | // The InnomatixData host requires the VERSION and DESC metadata values. |
Innomatix | 0:b9e1003fbee7 | 32 | // Applications should use these macros to provide an appropriate string. |
Innomatix | 0:b9e1003fbee7 | 33 | #define TFVERSION( str ) TFMETA( "VERSION", str ) |
Innomatix | 0:b9e1003fbee7 | 34 | #define TFDESCRIPTION( str ) TFMETA( "DESC", str ) |
Innomatix | 0:b9e1003fbee7 | 35 | |
Innomatix | 0:b9e1003fbee7 | 36 | |
Innomatix | 0:b9e1003fbee7 | 37 | #endif /* _INNOMATIX_META_H */ |