资源简介
zynq7000+88E1111的lwip,支持ps中两路mac分别挂接两路phy的应用,同时修复了88E1111初始化中的速率协商部分
代码片段和文件信息
/* sys_arch.c -
* provide sys_arch functionality as required for lwIP
* most of this functionality is obtained from xilkernel
* this file acts as a wrapper around the xilkernel functions
*/
/******************************************************************************
*
* Copyright (C) 2007 - 2014 Xilinx Inc. All rights reserved.
*
* 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.
*
* Use of the Software is limited solely to applications:
* (a) running on a Xilinx device or
* (b) that interact with a Xilinx device through a bus or interconnect.
*
* 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
* XILINX CONSORTIUM 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.
*
* Except as contained in this notice the name of the Xilinx shall not be used
* in advertising or otherwise to promote the sale use or other dealings in
* this Software without prior written authorization from Xilinx.
*
******************************************************************************/
#include “lwipopts.h“
#ifdef OS_IS_XILKERNEL
#include “xmk.h“
#include “sys/timer.h“
#include “sys/process.h“
#include “lwip/sys.h“
#include “lwip/opt.h“
#include “lwip/stats.h“
#include “arch/sys_arch.h“
#include “lwipopts.h“
#include “lwip/debug.h“
#include
#include
#include
#include
#include
#include
#include
#include
#include “os_config.h“
#include “errno.h“
struct thread_start_param {
struct sys_thread *thread;
void (*function)(void*);
void *arg;
};
struct sys_thread {
pthread_t tid;
struct thread_start_param tp;
};
/* statically allocate required structures */
struct sys_mbox_s lwip_mbox[SYS_MBOX_MAX];
struct sys_thread lwip_thread[SYS_THREAD_MAX];
static int SemaphoreCnt = 0;
void
sys_init ()
{
int i;
/* Initialize mailboxes */
for (i = 0; i < SYS_MBOX_MAX; i++)
lwip_mbox[i].used = 0;
/* Initialize threads */
for (i = 0; i < SYS_THREAD_MAX; i++)
lwip_thread[i].tid = TID_FREE;
}
err_t
sys_sem_new(sys_sem_t *sem u8_t count)
{
int i;
int shared = 0;
if (SemaphoreCnt >= SYS_SEM_MAX)
LWIP_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-26 10:53 zynq_lwip\
目录 0 2018-10-26 10:46 zynq_lwip\include\
目录 0 2018-10-26 10:46 zynq_lwip\include\arch\
文件 3510 2017-11-11 19:31 zynq_lwip\include\arch\cc.h
文件 2626 2017-11-11 19:31 zynq_lwip\include\arch\cpu.h
文件 2686 2017-11-11 19:31 zynq_lwip\include\arch\perf.h
文件 4026 2017-11-11 19:31 zynq_lwip\include\arch\sys_arch.h
目录 0 2018-10-26 10:46 zynq_lwip\include\lwip\
文件 11431 2017-11-11 19:31 zynq_lwip\include\lwip\api.h
文件 5878 2017-11-11 19:31 zynq_lwip\include\lwip\api_msg.h
文件 9514 2017-11-11 19:31 zynq_lwip\include\lwip\arch.h
文件 4589 2017-11-11 19:31 zynq_lwip\include\lwip\autoip.h
文件 4150 2017-11-11 19:31 zynq_lwip\include\lwip\debug.h
文件 4000 2017-11-11 19:31 zynq_lwip\include\lwip\def.h
文件 7765 2017-11-11 19:31 zynq_lwip\include\lwip\dhcp.h
文件 5722 2017-11-11 19:31 zynq_lwip\include\lwip\dns.h
文件 3171 2017-11-11 19:31 zynq_lwip\include\lwip\err.h
文件 3869 2017-11-11 19:31 zynq_lwip\include\lwip\icmp.h
文件 3879 2017-11-11 19:31 zynq_lwip\include\lwip\igmp.h
文件 4220 2017-11-11 19:31 zynq_lwip\include\lwip\inet.h
文件 3501 2017-11-11 19:31 zynq_lwip\include\lwip\inet_chksum.h
文件 2947 2017-11-11 19:31 zynq_lwip\include\lwip\init.h
文件 8332 2017-11-11 19:31 zynq_lwip\include\lwip\ip.h
文件 9740 2017-11-11 19:31 zynq_lwip\include\lwip\ip_addr.h
文件 2929 2017-11-11 19:31 zynq_lwip\include\lwip\ip_frag.h
文件 4144 2017-11-11 19:31 zynq_lwip\include\lwip\mem.h
文件 3929 2017-11-11 19:31 zynq_lwip\include\lwip\memp.h
文件 5489 2017-11-11 19:31 zynq_lwip\include\lwip\memp_std.h
文件 4077 2017-11-11 19:31 zynq_lwip\include\lwip\netbuf.h
文件 4641 2017-11-11 19:31 zynq_lwip\include\lwip\netdb.h
文件 12313 2017-11-11 19:31 zynq_lwip\include\lwip\netif.h
............此处省略232个文件信息
相关资源
- LWIP在NXP公司的LPC1768上的移植
- STM32F407+LWIP+DP83848+多端口
- lwip_ping.rar
- LPC1766 Lwip UDP
- DM9000+LWIP
- stm32搭建web服务器
- lwip-2.1.2最新版.zip
- stm32f103VET6-FreeRTOS-enc28j60-Lwip
- tcp客户端数据收发工程
- STM32F1 LWIP开发手册(DM9000版)
- stm32f407+mbed+lwip+lan8720 例程
- LwIP+freertos工程LwIP2.1.2最新版本
- STM32F107的socket
- stm32f103 RT_Thread lwip移植步骤说明
- 网络实验 LWIP无操作系统移植
- LPC1768 LwIP UDP Client 发送数据+测试网
- stm32_lwip.zip
- rt-thread3.1.1-lwip2.0.2完整工程代码
- RAW_UDP实验
- NXP LPC1768 Rtthread/裸机+lwip WEB服务器
- STM32 LwIP UDP+Artnet
- STM32F107-lwip-UDP-client发送数据
- STM32_FreeRTOS+LwIP
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+UDP+标
- STM32F407+FreeRTOS+LAN8720+LWIP1.4.1+DHCP+标准
- STM32F4+ucosIII+LWIP+DP83848
- STM32F407+LWIP+DP83848移植例程
- STM32F4x7+freertos+lwip+ssl+MQTT完整代码
- stm32下的ftp服务器
- LWIP之TCP Client
评论
共有 条评论