]> Joshua Wise's Git repositories - netwatch.git/blame_incremental - lwip/src/include/arch/cc.h
Working serial output in pagingland. Continues to run, too.
[netwatch.git] / lwip / src / include / arch / cc.h
... / ...
CommitLineData
1#ifndef _ARCH_CC_H
2#define _ARCH_CC_H
3
4#include <stdint.h>
5#include <minilib.h>
6
7typedef uint8_t u8_t;
8typedef uint16_t u16_t;
9typedef uint32_t u32_t;
10typedef int8_t s8_t;
11typedef int16_t s16_t;
12typedef int32_t s32_t;
13typedef uint32_t mem_ptr_t;
14
15#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
16#define PACK_STRUCT_STRUCT __attribute__((packed))
17#define PACK_STRUCT_BEGIN
18#define PACK_STRUCT_END
19
20#define BYTE_ORDER LITTLE_ENDIAN
21
22#ifndef NULL
23#define NULL 0
24#endif
25
26#define LWIP_PLATFORM_BYTESWAP 1
27#define LWIP_PLATFORM_HTONS(x) htons(x)
28#define LWIP_PLATFORM_HTONL(x) htonl(x)
29
30/* XXX fix this */
31#define LWIP_PLATFORM_DIAG(x)
32#define LWIP_PLATFORM_ASSERT(x)
33
34#endif
This page took 0.025509 seconds and 4 git commands to generate.