Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
net/main/core/fwk.h@0:9ad20223a8fa, 2012-07-17 (annotated)
- Committer:
- nherriot
- Date:
- Tue Jul 17 15:40:56 2012 +0000
- Revision:
- 0:9ad20223a8fa
[mbed] converted /VodaDemoDoorControl/VodafoneK3770Lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nherriot | 0:9ad20223a8fa | 1 | /* |
nherriot | 0:9ad20223a8fa | 2 | * fwk.h |
nherriot | 0:9ad20223a8fa | 3 | * |
nherriot | 0:9ad20223a8fa | 4 | * Created on: 15 déc. 2011 |
nherriot | 0:9ad20223a8fa | 5 | * Author: Donatien |
nherriot | 0:9ad20223a8fa | 6 | */ |
nherriot | 0:9ad20223a8fa | 7 | |
nherriot | 0:9ad20223a8fa | 8 | #ifndef FWK_H_ |
nherriot | 0:9ad20223a8fa | 9 | #define FWK_H_ |
nherriot | 0:9ad20223a8fa | 10 | |
nherriot | 0:9ad20223a8fa | 11 | #include "config.h" |
nherriot | 0:9ad20223a8fa | 12 | |
nherriot | 0:9ad20223a8fa | 13 | #include "string.h" |
nherriot | 0:9ad20223a8fa | 14 | //using namespace std; |
nherriot | 0:9ad20223a8fa | 15 | |
nherriot | 0:9ad20223a8fa | 16 | #include "stdint.h" |
nherriot | 0:9ad20223a8fa | 17 | typedef unsigned int size_t; |
nherriot | 0:9ad20223a8fa | 18 | |
nherriot | 0:9ad20223a8fa | 19 | #ifndef __cplusplus |
nherriot | 0:9ad20223a8fa | 20 | //boolean type compatibility |
nherriot | 0:9ad20223a8fa | 21 | typedef byte bool; |
nherriot | 0:9ad20223a8fa | 22 | #define true 1 |
nherriot | 0:9ad20223a8fa | 23 | #define false 0 |
nherriot | 0:9ad20223a8fa | 24 | #endif |
nherriot | 0:9ad20223a8fa | 25 | |
nherriot | 0:9ad20223a8fa | 26 | #ifndef NULL |
nherriot | 0:9ad20223a8fa | 27 | #define NULL ((void*)0) |
nherriot | 0:9ad20223a8fa | 28 | #endif |
nherriot | 0:9ad20223a8fa | 29 | |
nherriot | 0:9ad20223a8fa | 30 | #define CR '\x0D' |
nherriot | 0:9ad20223a8fa | 31 | #define LF '\x0A' |
nherriot | 0:9ad20223a8fa | 32 | #define GD '\x3E' |
nherriot | 0:9ad20223a8fa | 33 | #define BRK '\x1A' |
nherriot | 0:9ad20223a8fa | 34 | |
nherriot | 0:9ad20223a8fa | 35 | //Custom utility classes |
nherriot | 0:9ad20223a8fa | 36 | #include "IOStream.h" |
nherriot | 0:9ad20223a8fa | 37 | //#include "String.h" |
nherriot | 0:9ad20223a8fa | 38 | |
nherriot | 0:9ad20223a8fa | 39 | //Error codes |
nherriot | 0:9ad20223a8fa | 40 | #include "errors.h" |
nherriot | 0:9ad20223a8fa | 41 | |
nherriot | 0:9ad20223a8fa | 42 | //Debug |
nherriot | 0:9ad20223a8fa | 43 | #include "dbg.h" |
nherriot | 0:9ad20223a8fa | 44 | |
nherriot | 0:9ad20223a8fa | 45 | //Utility macros |
nherriot | 0:9ad20223a8fa | 46 | #define MIN(x,y) (((x)<(y))?(x):(y)) |
nherriot | 0:9ad20223a8fa | 47 | #define MAX(x,y) (((x)>(y))?(x):(y)) |
nherriot | 0:9ad20223a8fa | 48 | |
nherriot | 0:9ad20223a8fa | 49 | #endif /* FWK_H_ */ |