| /* |
| * Copyright (c) 2013 Corey Tabaka |
| * |
| * Permission is hereby granted, free of charge, to any person obtaining |
| * a copy of this software and associated documentation files |
| * (the "Software"), to deal in the Software without restriction, |
| * including without limitation the rights to use, copy, modify, merge, |
| * publish, distribute, sublicense, and/or sell copies of the Software, |
| * and to permit persons to whom the Software is furnished to do so, |
| * subject to the following conditions: |
| * |
| * The above copyright notice and this permission notice shall be |
| * included in all copies or substantial portions of the Software. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| */ |
| #ifndef __LIB_LWIP_ARCH_CC_H |
| #define __LIB_LWIP_ARCH_CC_H |
| |
| #include <stdint.h> |
| #include <endian.h> |
| #include <stdio.h> |
| #include <compiler.h> |
| |
| typedef uint8_t u8_t; |
| typedef uint16_t u16_t; |
| typedef uint32_t u32_t; |
| typedef int8_t s8_t; |
| typedef int16_t s16_t; |
| typedef int32_t s32_t; |
| |
| typedef intptr_t mem_ptr_t; |
| |
| #define U16_F "u" |
| #define S16_F "d" |
| #define X16_F "x" |
| #define U32_F "u" |
| #define S32_F "d" |
| #define X32_F "x" |
| #define SZT_F "zu" |
| |
| #define LWIP_CHKSUM_ALGORITHM 2 |
| |
| #define LWIP_PLATFORM_DIAG(x) do {} while (0) |
| #define LWIP_PLATFORM_ASSERT(x) do {} while (0) |
| |
| #define PACK_STRUCT_STRUCT __PACKED |
| |
| #endif |
| |