当前位置:网站首页>GD32F4xx uIP协议栈移植记录
GD32F4xx uIP协议栈移植记录
2022-07-05 23:47:00 【madao1234】
uIP是一个非常小的TCP/IP栈。完全用C编写,可移植到各种不同的结构和操作系统上,一个编译过的栈可以在几KB ROM或几百字节RAM中运行。
1、uIP中需要移植的文件
首先在项目中创建一个ethernet文件夹,移植完成后目录内的文件如下图所示:
(1)enc28j60.c / enc28j60.h 为以太网芯片驱动代码。详细请参考本人的另一篇文章:
(2)uip.c / uip.h 为协议栈核心代码,从uIP源码中复制过来。
(3)uip_arp.c / uip_arp.h 实现ARP(地址解析协议)的核心代码,从uIP源码中复制过来。
(4)uipopt.h / uip-conf.h 是uip协议栈的配置文件,从uIP源码中复制过来。
(5)tapdev.c / tapdev.h 是需要自己实现的以太网驱动初始化、发送、接收接口函数文件。
(6)ethernet.c / ethernet.h 是以太网协议的处理线程,处理线程结构基本不变,需要自己实现处理函数。
2、tapdev.c /.h
#边栏推荐
- Fiddler Everywhere 3.2.1 Crack
- [Luogu cf487e] tours (square tree) (tree chain dissection) (line segment tree)
- VBA fast switching sheet
- CAS and synchronized knowledge
- 多普勒效應(多普勒頻移)
- PADS ROUTER 使用技巧小记
- [Luogu p3295] mengmengda (parallel search) (double)
- Cwaitabletimer timer, used to create timer object access
- Cloudcompare & PCL point cloud randomly adds noise
- 14 MySQL-视图
猜你喜欢

MySQL replace primary key delete primary key add primary key

用列錶初始化你的vector&&initializer_list簡介

CAS and synchronized knowledge

Switching power supply buck circuit CCM and DCM working mode

Spire.PDF for NET 8.7.2

用列表初始化你的vector&&initializer_list简介

Hcip course notes-16 VLAN, three-tier architecture, MPLS virtual private line configuration

Open source CRM customer relationship system management system source code, free sharing

GFS Distributed File System

21. PWM application programming
随机推荐
In C#, why can't I modify the member of a value type instance in a foreach loop?
When to use useImperativeHandle, useLayoutEffect, and useDebugValue
成为程序员的你,后悔了吗?
【LeetCode】5. Valid palindrome
Russian Foreign Ministry: Japan and South Korea's participation in the NATO summit affects security and stability in Asia
orgchart. JS organization chart, presenting structural data in an elegant way
Fiddler Everywhere 3.2.1 Crack
[gym 102832h] [template] combination lock (bipartite game)
Online yaml to CSV tool
14 MySQL-视图
20. Migrate freetype font library
激光slam学习记录
Use CAS instead of synchronized
STM32__06—单通道ADC
Make a short video clip number of we media film and television. Where can I download the material?
PADS ROUTER 使用技巧小记
4点告诉你实时聊天与聊天机器人组合的优势
21. PWM application programming
How to improve eloquence
总结了 800多个 Kubectl 别名,再也不怕记不住命令了!