modify arch
This commit is contained in:
parent
bbfc42fbab
commit
63c67f7185
|
@ -32,7 +32,8 @@
|
|||
#ifndef LWIP_ARCH_CC_H
|
||||
#define LWIP_ARCH_CC_H
|
||||
|
||||
#include "stdio.h"
|
||||
// #include "stdio.h"
|
||||
|
||||
|
||||
//typedef unsigned char u8_t;
|
||||
//typedef signed char s8_t;
|
||||
|
@ -88,15 +89,4 @@
|
|||
|
||||
#define LWIP_RAND() ((u32_t)rand())
|
||||
|
||||
static inline u32_t sys_jiffies(void)
|
||||
{
|
||||
// lwip_sys_now = CurrentTicksGain();
|
||||
// return lwip_sys_now;
|
||||
}
|
||||
|
||||
static inline u32_t sys_now(void)
|
||||
{
|
||||
// lwip_sys_now = CurrentTicksGain();
|
||||
// return CalculateTimeMsFromTick(lwip_sys_now);
|
||||
}
|
||||
#endif /* LWIP_ARCH_CC_H */
|
|
@ -1,7 +1,7 @@
|
|||
ifeq ($(BOARD), imx6q-sabrelite)
|
||||
toolchain ?= arm-none-eabi-
|
||||
user_ldflags = -N -Ttext 0
|
||||
cflags = -std=c11 -march=armv7-a -mtune=cortex-a9 -nostdlib -nodefaultlibs -mfloat-abi=soft -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -ggdb -Wno-unused -Werror -fno-omit-frame-pointer -fno-stack-protector -fno-pie
|
||||
cflags = -std=c11 -march=armv7-a -mtune=cortex-a9 -nostdlib -ffreestanding -nodefaultlibs -mfloat-abi=soft -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -ggdb -Wno-unused -Werror -fno-omit-frame-pointer -fno-stack-protector -fno-pie
|
||||
endif
|
||||
ifeq ($(BOARD), zynq7000-zc702)
|
||||
toolchain ?= arm-xilinx-eabi-
|
||||
|
@ -16,6 +16,8 @@ objdump = ${toolchain}objdump
|
|||
c_useropts = -O2
|
||||
|
||||
INC_DIR = -I$(KERNEL_ROOT)/services/net/libnet \
|
||||
-I$(KERNEL_ROOT)/services/net/net_server/include/arch \
|
||||
-I$(KERNEL_ROOT)/services/net/net_server/include \
|
||||
-I$(KERNEL_ROOT)/services/net/net_server/include/lwip \
|
||||
-I$(KERNEL_ROOT)/services/net/net_server/include/netif \
|
||||
-I$(KERNEL_ROOT)/services/net/net_server/include/compat \
|
||||
|
|
|
@ -15,11 +15,12 @@
|
|||
#include "usyscall.h"
|
||||
#include "lwip_service.h"
|
||||
|
||||
#include "lwip/init.h"
|
||||
#include "lwip/ip4_addr.h"
|
||||
#include "lwip/netif.h"
|
||||
|
||||
#include "ethernet.h"
|
||||
static struct netif gnetif;
|
||||
|
||||
|
||||
struct netif gnetif;
|
||||
int IPC_DO_SERVE_FUNC(Ipc_LWIP_init)(char* ip, char* mask, char* gw){
|
||||
|
||||
ip4_addr_t net_ipaddr, net_netmask, net_gw;
|
||||
|
|
Loading…
Reference in New Issue