![](/media/cache/profiles/IMG_2753.JPG.50x50_q85.jpg)
Can_open_masternode
framework/include/sysdep.h@7:537bae5a6fc6, 2012-09-26 (annotated)
- Committer:
- sam_grove
- Date:
- Wed Sep 26 05:48:14 2012 +0000
- Revision:
- 7:537bae5a6fc6
- Parent:
- 0:9dd7c6129683
Pushing the project into the new repo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove |
0:9dd7c6129683 | 1 | #ifndef __sysdep_h__ |
sam_grove |
0:9dd7c6129683 | 2 | #define __sysdep_h__ |
sam_grove |
0:9dd7c6129683 | 3 | |
sam_grove |
0:9dd7c6129683 | 4 | #include "config.h" |
sam_grove |
0:9dd7c6129683 | 5 | |
sam_grove |
0:9dd7c6129683 | 6 | #ifdef CANOPEN_BIG_ENDIAN |
sam_grove |
0:9dd7c6129683 | 7 | |
sam_grove |
0:9dd7c6129683 | 8 | /* Warning: the argument must not update pointers, e.g. *p++ */ |
sam_grove |
0:9dd7c6129683 | 9 | |
sam_grove |
0:9dd7c6129683 | 10 | #define UNS16_LE(v) ((((UNS16)(v) & 0xff00) >> 8) | \ |
sam_grove |
0:9dd7c6129683 | 11 | (((UNS16)(v) & 0x00ff) << 8)) |
sam_grove |
0:9dd7c6129683 | 12 | |
sam_grove |
0:9dd7c6129683 | 13 | #define UNS32_LE(v) ((((UNS32)(v) & 0xff000000) >> 24) | \ |
sam_grove |
0:9dd7c6129683 | 14 | (((UNS32)(v) & 0x00ff0000) >> 8) | \ |
sam_grove |
0:9dd7c6129683 | 15 | (((UNS32)(v) & 0x0000ff00) << 8) | \ |
sam_grove |
0:9dd7c6129683 | 16 | (((UNS32)(v) & 0x000000ff) << 24)) |
sam_grove |
0:9dd7c6129683 | 17 | |
sam_grove |
0:9dd7c6129683 | 18 | #else |
sam_grove |
0:9dd7c6129683 | 19 | |
sam_grove |
0:9dd7c6129683 | 20 | #define UNS16_LE(v) (v) |
sam_grove |
0:9dd7c6129683 | 21 | |
sam_grove |
0:9dd7c6129683 | 22 | #define UNS32_LE(v) (v) |
sam_grove |
0:9dd7c6129683 | 23 | |
sam_grove |
0:9dd7c6129683 | 24 | #endif |
sam_grove |
0:9dd7c6129683 | 25 | |
sam_grove |
0:9dd7c6129683 | 26 | #endif /* __sysdep_h__ */ |
sam_grove |
0:9dd7c6129683 | 27 |