Mobile Life IoT project using the AT&T IoT Starter Kit Software and files for my device to monitor the status or our Airstream travel trailer RV. A full description of the project is at Hackster.IO here as part of the Realtime AT&T IoT Starter Kit Challenge: https://www.hackster.io/Anubus/mobile-life-iot-9c10be
Dependencies: FXOS8700CQ MODSERIAL mbed
itm_output.h@0:bd276b1f1249, 2017-04-02 (annotated)
- Committer:
- Anubus
- Date:
- Sun Apr 02 12:28:21 2017 +0000
- Revision:
- 0:bd276b1f1249
public version commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anubus | 0:bd276b1f1249 | 1 | /* =================================================================== |
Anubus | 0:bd276b1f1249 | 2 | Copyright © 2016, AVNET Inc. |
Anubus | 0:bd276b1f1249 | 3 | |
Anubus | 0:bd276b1f1249 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
Anubus | 0:bd276b1f1249 | 5 | you may not use this file except in compliance with the License. |
Anubus | 0:bd276b1f1249 | 6 | You may obtain a copy of the License at |
Anubus | 0:bd276b1f1249 | 7 | |
Anubus | 0:bd276b1f1249 | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Anubus | 0:bd276b1f1249 | 9 | |
Anubus | 0:bd276b1f1249 | 10 | Unless required by applicable law or agreed to in writing, |
Anubus | 0:bd276b1f1249 | 11 | software distributed under the License is distributed on an |
Anubus | 0:bd276b1f1249 | 12 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
Anubus | 0:bd276b1f1249 | 13 | either express or implied. See the License for the specific |
Anubus | 0:bd276b1f1249 | 14 | language governing permissions and limitations under the License. |
Anubus | 0:bd276b1f1249 | 15 | |
Anubus | 0:bd276b1f1249 | 16 | ======================================================================== */ |
Anubus | 0:bd276b1f1249 | 17 | |
Anubus | 0:bd276b1f1249 | 18 | #ifndef __ITM_OUTPUT__ |
Anubus | 0:bd276b1f1249 | 19 | #define __ITM_OUTPUT__ |
Anubus | 0:bd276b1f1249 | 20 | |
Anubus | 0:bd276b1f1249 | 21 | //This file is only used when building for ULINK output |
Anubus | 0:bd276b1f1249 | 22 | |
Anubus | 0:bd276b1f1249 | 23 | #define PRINTF(format, ...) { char xyz[80]; sprintf (xyz, format, ## __VA_ARGS__); ITM_puts(xyz);} |
Anubus | 0:bd276b1f1249 | 24 | #define PUTS(st) ITM_puts((char*)st); |
Anubus | 0:bd276b1f1249 | 25 | |
Anubus | 0:bd276b1f1249 | 26 | |
Anubus | 0:bd276b1f1249 | 27 | int ITM_putc (int ch); |
Anubus | 0:bd276b1f1249 | 28 | int ITM_getc (void); |
Anubus | 0:bd276b1f1249 | 29 | int ITM_puts ((char *) str); |
Anubus | 0:bd276b1f1249 | 30 | |
Anubus | 0:bd276b1f1249 | 31 | #endif |