当前位置:网站首页>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
#
边栏推荐
- Zero rhino technology joined hands with the intelligence Club: the "causal faction" forum was successfully held, and the "causal revolution" brought the next generation of trusted AI
- Miaochai Weekly - 8
- Latex multiple linebreaks
- 总结了 800多个 Kubectl 别名,再也不怕记不住命令了!
- PV静态创建和动态创建
- 第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
- [Luogu p3295] mengmengda (parallel search) (double)
- Open3D 点云随机添加噪声
- 21.PWM应用编程
- China Jinmao online electronic signature, accelerating the digitization of real estate business
猜你喜欢
My colleagues quietly told me that flying Book notification can still play like this
Redis高可用——主从复制、哨兵模式、集群
[day39 literature extensive reading] a Bayesian perspective on magnetic estimation
rsync远程同步
单商户V4.4,初心未变,实力依旧!
Rsync remote synchronization
同事悄悄告诉我,飞书通知还能这样玩
保研笔记二 软件工程与计算卷二(13-16章)
Spreadjs 15.1 CN and spreadjs 15.1 en
Initialiser votre vecteur & initialisateur avec une liste Introduction à la Liste
随机推荐
[Yu Yue education] NC machining technology reference materials of Shaanxi University of science and technology
C file and folder operation
【GYM 102832H】【模板】Combination Lock(二分图博弈)
STM32__ 06 - single channel ADC
QT a simple word document editor
Spire Office 7.5.4 for NET
rsync远程同步
98. Verify the binary search tree ●●
Doppler effect (Doppler shift)
【EF Core】EF Core与C# 数据类型映射关系
成为程序员的你,后悔了吗?
如何提升口才
云呐|固定资产管理系统功能包括哪些?
Cloudcompare & PCL point cloud randomly adds noise
Add noise randomly to open3d point cloud
有什么不起眼却挣钱的副业?
【LeetCode】5. Valid palindrome
多普勒效應(多普勒頻移)
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
Spreadjs 15.1 CN and spreadjs 15.1 en