]>
Commit | Line | Data |
---|---|---|
6e6d4a8b JP |
1 | #ifndef _ARCH_CC_H |
2 | #define _ARCH_CC_H | |
3 | ||
4 | #include <stdint.h> | |
7d1ce001 | 5 | #include <vga-overlay.h> |
6e6d4a8b JP |
6 | #include <minilib.h> |
7 | ||
8 | typedef uint8_t u8_t; | |
9 | typedef uint16_t u16_t; | |
10 | typedef uint32_t u32_t; | |
11 | typedef int8_t s8_t; | |
12 | typedef int16_t s16_t; | |
13 | typedef int32_t s32_t; | |
14 | typedef uint32_t mem_ptr_t; | |
15 | ||
16 | #define PACK_STRUCT_FIELD(x) x __attribute__((packed)) | |
17 | #define PACK_STRUCT_STRUCT __attribute__((packed)) | |
18 | #define PACK_STRUCT_BEGIN | |
19 | #define PACK_STRUCT_END | |
20 | ||
21 | #define BYTE_ORDER LITTLE_ENDIAN | |
22 | ||
23 | #ifndef NULL | |
24 | #define NULL 0 | |
25 | #endif | |
26 | ||
27 | #define LWIP_PLATFORM_BYTESWAP 1 | |
28 | #define LWIP_PLATFORM_HTONS(x) htons(x) | |
29 | #define LWIP_PLATFORM_HTONL(x) htonl(x) | |
30 | ||
7d1ce001 JP |
31 | #define LWIP_PLATFORM_DIAG(x) dolog(x) |
32 | #define LWIP_PLATFORM_ASSERT(x) dologf("ASSERT FAILED: %s\n", (x)); | |
6e6d4a8b JP |
33 | |
34 | #endif |