xilinx eth lwip version xilinx_v2024.1

This commit is contained in:
2024-10-14 14:06:49 +02:00
parent 65299e46c4
commit fd2c5a544f
16 changed files with 34 additions and 662 deletions

View File

@ -47,37 +47,30 @@
#include <sys/time.h>
#include "cpu.h"
#include "xil_printf.h"
/* As per new design of lwip-2.0.2,
* LWIP_NO_STDINT_H should be defined as 1 in cc.h */
#define LWIP_NO_STDINT_H 1
typedef unsigned char u8_t;
typedef signed char s8_t;
typedef unsigned short u16_t;
typedef signed short s16_t;
typedef unsigned int u32_t;
typedef signed int s32_t;
typedef unsigned long long u64_t;
typedef signed long long s64_t;
// errno is a macro. If we define LWIP_ERRNO_INCLUDE to errno.h the preprocessor will replace it,
// breaking the include. Instead we supply a helper include which in turn includes errno.h
#define LWIP_ERRNO_INCLUDE <onrre.h>
#define S16_F "d"
#define U16_F "d"
#define S32_F "d"
#define U32_F "x"
// /* As per new design of lwip-2.0.2,
// * LWIP_NO_STDINT_H should be defined as 1 in cc.h */
// #define LWIP_NO_STDINT_H 1
// typedef unsigned char u8_t;
// typedef signed char s8_t;
// typedef unsigned short u16_t;
// typedef signed short s16_t;
// typedef unsigned int u32_t;
// typedef signed int s32_t;
// typedef unsigned long long u64_t;
// typedef signed long long s64_t;
// #define S16_F "d"
// #define U16_F "d"
// #define S32_F "d"
// #define U32_F "x"
// #define X16_F "x"
// #define X32_F "x"
#define X16_F "x"
#define X32_F "x"
#define LWIP_RAND rand
// typedef unsigned long mem_ptr_t;
typedef unsigned long mem_ptr_t;
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))

View File

@ -1,25 +0,0 @@
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include "lwipopts.h"
/** if you want to use the struct timeval provided
* by your system, set this to 0 and include <sys/time.h> in cc.h */
#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>
// errno is a macro. If we define LWIP_ERRNO_INCLUDE to errno.h the preprocessor will replace it,
// breaking the include. Instead we supply a helper include which in turn includes errno.h
#define LWIP_ERRNO_INCLUDE <onrre.h>
#define LWIP_RAND rand
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#define LWIP_PLATFORM_ASSERT(x)
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)