Alvaro Cassinelli
/
skinGames_II
save loops
EthernetNetIf/LPC1768/lwip/arch/cc.h@0:df6fdd9b99f0, 2014-12-02 (annotated)
- Committer:
- mbedalvaro
- Date:
- Tue Dec 02 04:39:15 2014 +0000
- Revision:
- 0:df6fdd9b99f0
this new version of skinGames will have a function that stops scanning as the laser reaches the same position (i.e., loops) with a certain precision. It is for extracting contours for Takashita project. It can then save on a file or send on osc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedalvaro | 0:df6fdd9b99f0 | 1 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 2 | * Author: Adam Dunkels <adam@sics.se> |
mbedalvaro | 0:df6fdd9b99f0 | 3 | * |
mbedalvaro | 0:df6fdd9b99f0 | 4 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 5 | #ifndef __LWIP_ARCH_CC_H__ |
mbedalvaro | 0:df6fdd9b99f0 | 6 | #define __LWIP_ARCH_CC_H__ |
mbedalvaro | 0:df6fdd9b99f0 | 7 | |
mbedalvaro | 0:df6fdd9b99f0 | 8 | #define LITTLE_ENDIAN 1234 |
mbedalvaro | 0:df6fdd9b99f0 | 9 | |
mbedalvaro | 0:df6fdd9b99f0 | 10 | #define BYTE_ORDER LITTLE_ENDIAN |
mbedalvaro | 0:df6fdd9b99f0 | 11 | |
mbedalvaro | 0:df6fdd9b99f0 | 12 | typedef unsigned char u8_t; |
mbedalvaro | 0:df6fdd9b99f0 | 13 | typedef signed char s8_t; |
mbedalvaro | 0:df6fdd9b99f0 | 14 | typedef unsigned short u16_t; |
mbedalvaro | 0:df6fdd9b99f0 | 15 | typedef signed short s16_t; |
mbedalvaro | 0:df6fdd9b99f0 | 16 | typedef unsigned int u32_t; |
mbedalvaro | 0:df6fdd9b99f0 | 17 | typedef signed int s32_t; |
mbedalvaro | 0:df6fdd9b99f0 | 18 | typedef unsigned int mem_ptr_t; |
mbedalvaro | 0:df6fdd9b99f0 | 19 | |
mbedalvaro | 0:df6fdd9b99f0 | 20 | #ifndef NULL |
mbedalvaro | 0:df6fdd9b99f0 | 21 | #define NULL 0 |
mbedalvaro | 0:df6fdd9b99f0 | 22 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 23 | |
mbedalvaro | 0:df6fdd9b99f0 | 24 | #ifndef TRUE |
mbedalvaro | 0:df6fdd9b99f0 | 25 | #define TRUE 1 |
mbedalvaro | 0:df6fdd9b99f0 | 26 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 27 | |
mbedalvaro | 0:df6fdd9b99f0 | 28 | #ifndef FALSE |
mbedalvaro | 0:df6fdd9b99f0 | 29 | #define FALSE 0 |
mbedalvaro | 0:df6fdd9b99f0 | 30 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 31 | |
mbedalvaro | 0:df6fdd9b99f0 | 32 | #include <stdlib.h> |
mbedalvaro | 0:df6fdd9b99f0 | 33 | #define LWIP_RAND rand |
mbedalvaro | 0:df6fdd9b99f0 | 34 | |
mbedalvaro | 0:df6fdd9b99f0 | 35 | #define LWIP_PLATFORM_DIAG(x) DBG x |
mbedalvaro | 0:df6fdd9b99f0 | 36 | #define LWIP_PLATFORM_ASSERT(x) DBG(x) |
mbedalvaro | 0:df6fdd9b99f0 | 37 | |
mbedalvaro | 0:df6fdd9b99f0 | 38 | #define LWIP_PROVIDE_ERRNO |
mbedalvaro | 0:df6fdd9b99f0 | 39 | |
mbedalvaro | 0:df6fdd9b99f0 | 40 | #define U16_F "hu" |
mbedalvaro | 0:df6fdd9b99f0 | 41 | #define S16_F "hd" |
mbedalvaro | 0:df6fdd9b99f0 | 42 | #define X16_F "hx" |
mbedalvaro | 0:df6fdd9b99f0 | 43 | #define U32_F "lu" |
mbedalvaro | 0:df6fdd9b99f0 | 44 | #define S32_F "ld" |
mbedalvaro | 0:df6fdd9b99f0 | 45 | #define X32_F "lx" |
mbedalvaro | 0:df6fdd9b99f0 | 46 | |
mbedalvaro | 0:df6fdd9b99f0 | 47 | #if 0 |
mbedalvaro | 0:df6fdd9b99f0 | 48 | /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html, |
mbedalvaro | 0:df6fdd9b99f0 | 49 | lwIP uses packed structures, so packing the field is not really a good idea ;) */ |
mbedalvaro | 0:df6fdd9b99f0 | 50 | #define PACK_STRUCT_FIELD(x) __packed x |
mbedalvaro | 0:df6fdd9b99f0 | 51 | #else |
mbedalvaro | 0:df6fdd9b99f0 | 52 | #define PACK_STRUCT_FIELD(x) x |
mbedalvaro | 0:df6fdd9b99f0 | 53 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 54 | |
mbedalvaro | 0:df6fdd9b99f0 | 55 | #define PACK_STRUCT_STRUCT |
mbedalvaro | 0:df6fdd9b99f0 | 56 | #define PACK_STRUCT_BEGIN __packed |
mbedalvaro | 0:df6fdd9b99f0 | 57 | #define PACK_STRUCT_END |
mbedalvaro | 0:df6fdd9b99f0 | 58 | |
mbedalvaro | 0:df6fdd9b99f0 | 59 | #define LWIP_CHKSUM_ALGORITHM 3 |
mbedalvaro | 0:df6fdd9b99f0 | 60 | |
mbedalvaro | 0:df6fdd9b99f0 | 61 | |
mbedalvaro | 0:df6fdd9b99f0 | 62 | #endif /* __LWIP_ARCH_CC_H__ */ |