This is the firmware for the LaOS - Laser Open Source project. You can use it to drive a laser cutter. For hardware and more information, look at our wiki: http://wiki.laoslaser.org

Dependencies:   EthernetNetIf mbed

Committer:
fablabtruck
Date:
Fri Jun 08 09:26:40 2012 +0000
Revision:
0:3852426a5068
svn revision 379

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fablabtruck 0:3852426a5068 1 /*
fablabtruck 0:3852426a5068 2 * Author: Adam Dunkels <adam@sics.se>
fablabtruck 0:3852426a5068 3 *
fablabtruck 0:3852426a5068 4 */
fablabtruck 0:3852426a5068 5 #ifndef __LWIP_ARCH_CC_H__
fablabtruck 0:3852426a5068 6 #define __LWIP_ARCH_CC_H__
fablabtruck 0:3852426a5068 7
fablabtruck 0:3852426a5068 8 #define LITTLE_ENDIAN 1234
fablabtruck 0:3852426a5068 9
fablabtruck 0:3852426a5068 10 #define BYTE_ORDER LITTLE_ENDIAN
fablabtruck 0:3852426a5068 11
fablabtruck 0:3852426a5068 12 typedef unsigned char u8_t;
fablabtruck 0:3852426a5068 13 typedef signed char s8_t;
fablabtruck 0:3852426a5068 14 typedef unsigned short u16_t;
fablabtruck 0:3852426a5068 15 typedef signed short s16_t;
fablabtruck 0:3852426a5068 16 typedef unsigned int u32_t;
fablabtruck 0:3852426a5068 17 typedef signed int s32_t;
fablabtruck 0:3852426a5068 18 typedef unsigned int mem_ptr_t;
fablabtruck 0:3852426a5068 19
fablabtruck 0:3852426a5068 20 #ifndef NULL
fablabtruck 0:3852426a5068 21 #define NULL 0
fablabtruck 0:3852426a5068 22 #endif
fablabtruck 0:3852426a5068 23
fablabtruck 0:3852426a5068 24 #ifndef TRUE
fablabtruck 0:3852426a5068 25 #define TRUE 1
fablabtruck 0:3852426a5068 26 #endif
fablabtruck 0:3852426a5068 27
fablabtruck 0:3852426a5068 28 #ifndef FALSE
fablabtruck 0:3852426a5068 29 #define FALSE 0
fablabtruck 0:3852426a5068 30 #endif
fablabtruck 0:3852426a5068 31
fablabtruck 0:3852426a5068 32 #include <stdlib.h>
fablabtruck 0:3852426a5068 33 #define LWIP_RAND rand
fablabtruck 0:3852426a5068 34
fablabtruck 0:3852426a5068 35 #define LWIP_PLATFORM_DIAG(x) DBG x
fablabtruck 0:3852426a5068 36 #define LWIP_PLATFORM_ASSERT(x) DBG(x)
fablabtruck 0:3852426a5068 37
fablabtruck 0:3852426a5068 38 #define LWIP_PROVIDE_ERRNO
fablabtruck 0:3852426a5068 39
fablabtruck 0:3852426a5068 40 #define U16_F "hu"
fablabtruck 0:3852426a5068 41 #define S16_F "hd"
fablabtruck 0:3852426a5068 42 #define X16_F "hx"
fablabtruck 0:3852426a5068 43 #define U32_F "lu"
fablabtruck 0:3852426a5068 44 #define S32_F "ld"
fablabtruck 0:3852426a5068 45 #define X32_F "lx"
fablabtruck 0:3852426a5068 46
fablabtruck 0:3852426a5068 47 #if 0
fablabtruck 0:3852426a5068 48 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html,
fablabtruck 0:3852426a5068 49 lwIP uses packed structures, so packing the field is not really a good idea ;) */
fablabtruck 0:3852426a5068 50 #define PACK_STRUCT_FIELD(x) __packed x
fablabtruck 0:3852426a5068 51 #else
fablabtruck 0:3852426a5068 52 #define PACK_STRUCT_FIELD(x) x
fablabtruck 0:3852426a5068 53 #endif
fablabtruck 0:3852426a5068 54
fablabtruck 0:3852426a5068 55 #define PACK_STRUCT_STRUCT
fablabtruck 0:3852426a5068 56 #define PACK_STRUCT_BEGIN __packed
fablabtruck 0:3852426a5068 57 #define PACK_STRUCT_END
fablabtruck 0:3852426a5068 58
fablabtruck 0:3852426a5068 59 #define LWIP_CHKSUM_ALGORITHM 3
fablabtruck 0:3852426a5068 60
fablabtruck 0:3852426a5068 61
fablabtruck 0:3852426a5068 62 #endif /* __LWIP_ARCH_CC_H__ */