]> Joshua Wise's Git repositories - netwatch.git/blame - lwip/src/include/arch/cc.h
At least pretend to split more ICH2 bits out into a config.mk. A real build system...
[netwatch.git] / lwip / src / include / arch / cc.h
CommitLineData
6e6d4a8b
JP
1#ifndef _ARCH_CC_H
2#define _ARCH_CC_H
3
4#include <stdint.h>
7d1ce001 5#include <vga-overlay.h>
bf52024c 6#include <output.h>
6e6d4a8b
JP
7#include <minilib.h>
8
9typedef uint8_t u8_t;
10typedef uint16_t u16_t;
11typedef uint32_t u32_t;
12typedef int8_t s8_t;
13typedef int16_t s16_t;
14typedef int32_t s32_t;
15typedef uint32_t mem_ptr_t;
16
8ba7e5b2 17#define PACK_STRUCT_FIELD(x) x
6e6d4a8b
JP
18#define PACK_STRUCT_STRUCT __attribute__((packed))
19#define PACK_STRUCT_BEGIN
20#define PACK_STRUCT_END
21
22#define BYTE_ORDER LITTLE_ENDIAN
23
24#ifndef NULL
25#define NULL 0
26#endif
27
28#define LWIP_PLATFORM_BYTESWAP 1
29#define LWIP_PLATFORM_HTONS(x) htons(x)
30#define LWIP_PLATFORM_HTONL(x) htonl(x)
31
bf52024c 32#define LWIP_PLATFORM_DIAG(x) outputf x
7d1ce001 33#define LWIP_PLATFORM_ASSERT(x) dologf("ASSERT FAILED: %s\n", (x));
6e6d4a8b
JP
34
35#endif
This page took 0.023444 seconds and 4 git commands to generate.