forked from ROMEO/obsw
refactoring, added second binary for sim interface, added second lwip implementation for sim interface
This commit is contained in:
25
bsp_z7/lwip/xilinx_eth/include/arch/cc_old.h
Normal file
25
bsp_z7/lwip/xilinx_eth/include/arch/cc_old.h
Normal file
@ -0,0 +1,25 @@
|
||||
#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)
|
Reference in New Issue
Block a user