当前位置:网站首页>Gd32f4xx UIP protocol stack migration record
Gd32f4xx UIP protocol stack migration record
2022-07-05 23:58:00 【madao1234】
uIP It's a very small TCP/IP Stack . Use it completely C To write , It can be transplanted to various structures and operating systems , A compiled stack can be in a few KB ROM Or hundreds of bytes RAM Run in .
1、uIP Files that need to be migrated in
First, create a ethernet Folder , The files in the directory after migration are shown in the following figure :
(1)enc28j60.c / enc28j60.h Driver code for Ethernet chip . Please refer to my other article for details :
(2)uip.c / uip.h It is the core code of the protocol stack , from uIP Copy it from the source code .
(3)uip_arp.c / uip_arp.h Realization ARP( Address resolution protocol ) Core code , from uIP Copy it from the source code .
(4)uipopt.h / uip-conf.h yes uip Configuration file of protocol stack , from uIP Copy it from the source code .
(5)tapdev.c / tapdev.h It is the Ethernet driver initialization that needs to be implemented by ourselves 、 send out 、 Receive interface function file .
(6)ethernet.c / ethernet.h It is the processing thread of Ethernet Protocol , The processing thread structure is basically unchanged , You need to implement the processing function yourself .
2、tapdev.c /.h
#
边栏推荐
- 2022.7.5-----leetcode.729
- 做自媒体影视短视频剪辑号,在哪儿下载素材?
- el-cascader的使用以及报错解决
- Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
- 提升工作效率工具:SQL批量生成工具思想
- CAS and synchronized knowledge
- 21. PWM application programming
- Zhuan: in the future, such an organization can withstand the risks
- FFMPEG关键结构体——AVFormatContext
- 14 MySQL view
猜你喜欢
【在线聊天】原来微信小程序也能回复Facebook主页消息!
教你在HbuilderX上使用模拟器运行uni-app,良心教学!!!
20220703 week race: number of people who know the secret - dynamic rules (problem solution)
Tools to improve work efficiency: the idea of SQL batch generation tools
What are Yunna's fixed asset management systems?
总结了 800多个 Kubectl 别名,再也不怕记不住命令了!
Biased sample variance, unbiased sample variance
Huawei equipment is configured with OSPF and BFD linkage
Rsync remote synchronization
【二叉搜索树】增删改查功能代码实现
随机推荐
PADS ROUTER 使用技巧小记
FFMPEG关键结构体——AVFormatContext
Shardingsphere source code analysis
2022.7.5-----leetcode.729
STM32__ 06 - single channel ADC
QT -- thread
FFmpeg学习——核心模块
The difference of time zone and the time library of go language
云呐|公司固定资产管理系统有哪些?
传输层协议------UDP协议
Add noise randomly to open3d point cloud
What if the C disk is not enough? Let's see how I can clean up 25g of temp disk space after I haven't redone the system for 4 years?
Effet Doppler (déplacement de fréquence Doppler)
Qt QPushButton详解
What are Yunna's fixed asset management systems?
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
Huawei equipment is configured with OSPF and BFD linkage
[Luogu cf487e] tours (square tree) (tree chain dissection) (line segment tree)
There is no network after configuring the agent by capturing packets with Fiddler mobile phones
18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)