文件名称:uip_avr
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 411kb
- 下载次数:
- 0次
- 提 供 者:
- yuang******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
移植uip-1.0到Atmega32
1)把 uip-1.0 的所有文件加入到工程,包括 uip 目录的文件(除uip-split.c)、unix 目录的文件、lib 目录的文件;
2)修改 uip/uip-neighbor.c 文件的
void uip_neighbor_add(uip_ipaddr_t ipaddr, struct uip_neighbor_addr *addr)
函数,一般注释掉 printf 语句即可,或者改为你自己的串口格式化打印实现。
3)uip 目录里的源文件除 uipopt.h 外一般都无需修改;uipopt.h 包含了 uip-conf.h ,所以大部分修改可以在
uip-conf.h 里进行。
uip-conf.h 里加入如下定义,可以减少编译的警告:
#define notdef 0
#define UIP_CONF_IPV6 0
#define UIP_ARCH_ADD32 0
#define UIP_ARCH_CHKSUM 0
#define UIP_NEIGHBOR_CONF_ADDRTYPE 0
4)移植工作主要是 定时器中断程序 与 网络驱动 的编写-1) to the uip-1.0 added to the works of all documents, including documents uip directory (except uip-split.c), unix file directories, lib directories of documents
2) Revise the uip/uip-neighbor.c documents
void uip_neighbor_add (uip_ipaddr_t ipaddr, struct uip_neighbor_addr* addr)
Function printf statements generally can be commented out or changed to your own print serial format to achieve.
3) uip the source file directory in addition to uipopt.h generally no need to change things uipopt.h contains uip-conf.h, most modifications can be
uip-conf.h conducted.
uip-conf.h to add the following definition, can reduce the compiler warning:
# define notdef 0
# define UIP_CONF_IPV6 0
# define UIP_ARCH_ADD32 0
# define UIP_ARCH_CHKSUM 0
# define UIP_NEIGHBOR_CONF_ADDRTYPE 0
4) transplantation is a timer interrupt work process with the preparation of a network drive
1)把 uip-1.0 的所有文件加入到工程,包括 uip 目录的文件(除uip-split.c)、unix 目录的文件、lib 目录的文件;
2)修改 uip/uip-neighbor.c 文件的
void uip_neighbor_add(uip_ipaddr_t ipaddr, struct uip_neighbor_addr *addr)
函数,一般注释掉 printf 语句即可,或者改为你自己的串口格式化打印实现。
3)uip 目录里的源文件除 uipopt.h 外一般都无需修改;uipopt.h 包含了 uip-conf.h ,所以大部分修改可以在
uip-conf.h 里进行。
uip-conf.h 里加入如下定义,可以减少编译的警告:
#define notdef 0
#define UIP_CONF_IPV6 0
#define UIP_ARCH_ADD32 0
#define UIP_ARCH_CHKSUM 0
#define UIP_NEIGHBOR_CONF_ADDRTYPE 0
4)移植工作主要是 定时器中断程序 与 网络驱动 的编写-1) to the uip-1.0 added to the works of all documents, including documents uip directory (except uip-split.c), unix file directories, lib directories of documents
2) Revise the uip/uip-neighbor.c documents
void uip_neighbor_add (uip_ipaddr_t ipaddr, struct uip_neighbor_addr* addr)
Function printf statements generally can be commented out or changed to your own print serial format to achieve.
3) uip the source file directory in addition to uipopt.h generally no need to change things uipopt.h contains uip-conf.h, most modifications can be
uip-conf.h conducted.
uip-conf.h to add the following definition, can reduce the compiler warning:
# define notdef 0
# define UIP_CONF_IPV6 0
# define UIP_ARCH_ADD32 0
# define UIP_ARCH_CHKSUM 0
# define UIP_NEIGHBOR_CONF_ADDRTYPE 0
4) transplantation is a timer interrupt work process with the preparation of a network drive
(系统自动生成,下载前可以参看下载内容)
下载文件列表
uip_avr
.......\apps
.......\....\dhcpc
.......\....\.....\dhcpc.c
.......\....\.....\dhcpc.h
.......\....\.....\Makefile.dhcpc
.......\....\hello-world
.......\....\...........\hello-world.c
.......\....\...........\hello-world.h
.......\....\...........\Makefile.hello-world
.......\....\README
.......\....\resolv
.......\....\......\Makefile.resolv
.......\....\......\resolv.c
.......\....\......\resolv.h
.......\....\smtp
.......\....\....\Makefile.smtp
.......\....\....\makestrings
.......\....\....\smtp-strings
.......\....\....\smtp-strings.c
.......\....\....\smtp-strings.h
.......\....\....\smtp.c
.......\....\....\smtp.h
.......\....\telnetd
.......\....\.......\Makefile.telnetd
.......\....\.......\shell.c
.......\....\.......\shell.h
.......\....\.......\telnetd.c
.......\....\.......\telnetd.h
.......\....\webclient
.......\....\.........\Makefile.webclient
.......\....\.........\makestrings
.......\....\.........\webclient-strings
.......\....\.........\webclient-strings.c
.......\....\.........\webclient-strings.h
.......\....\.........\webclient.c
.......\....\.........\webclient.h
.......\....\webserver
.......\....\.........\http-strings
.......\....\.........\http-strings.c
.......\....\.........\http-strings.h
.......\....\.........\httpd-cgi.c
.......\....\.........\httpd-cgi.h
.......\....\.........\httpd-fs
.......\....\.........\........\404.html
.......\....\.........\........\fade.png
.......\....\.........\........\files.shtml
.......\....\.........\........\footer.html
.......\....\.........\........\header.html
.......\....\.........\........\index.html
.......\....\.........\........\processes.shtml
.......\....\.........\........\stats.shtml
.......\....\.........\........\style.css
.......\....\.........\........\tcp.shtml
.......\....\.........\httpd-fs.c
.......\....\.........\httpd-fs.h
.......\....\.........\httpd-fsdata.c
.......\....\.........\httpd-fsdata.h
.......\....\.........\httpd.c
.......\....\.........\httpd.h
.......\....\.........\Makefile.webserver
.......\....\.........\makefsdata
.......\....\.........\makestrings
.......\....\.........\webserver.h
.......\Include
.......\.......\Config.h
.......\.......\Type.h
.......\lib
.......\...\memb.c
.......\...\memb.h
.......\main.c
.......\Makefile
.......\obj
.......\...\apps
.......\...\....\hello-world
.......\...\....\...........\hello-world.lst
.......\...\....\...........\hello-world.o
.......\...\....\telnetd
.......\...\....\.......\shell.lst
.......\...\....\.......\shell.o
.......\...\....\.......\telnetd.lst
.......\...\....\.......\telnetd.o
.......\...\lib
.......\...\...\memb.lst
.......\...\...\memb.o
.......\...\main.lst
.......\...\main.o
.......\...\rs232
.......\...\.....\rs232.lst
.......\...\.....\rs232.o
.......\...\uip
.......\...\...\psock.lst
.......\...\...\psock.o
.......\...\...\timer.lst
.......\...\...\timer.o
.......\...\...\uip.lst
.......\...\...\uip.o
.......\...\...\uip_arp.lst
.......\...\...\uip_arp.o
.......\...\unix
.......\apps
.......\....\dhcpc
.......\....\.....\dhcpc.c
.......\....\.....\dhcpc.h
.......\....\.....\Makefile.dhcpc
.......\....\hello-world
.......\....\...........\hello-world.c
.......\....\...........\hello-world.h
.......\....\...........\Makefile.hello-world
.......\....\README
.......\....\resolv
.......\....\......\Makefile.resolv
.......\....\......\resolv.c
.......\....\......\resolv.h
.......\....\smtp
.......\....\....\Makefile.smtp
.......\....\....\makestrings
.......\....\....\smtp-strings
.......\....\....\smtp-strings.c
.......\....\....\smtp-strings.h
.......\....\....\smtp.c
.......\....\....\smtp.h
.......\....\telnetd
.......\....\.......\Makefile.telnetd
.......\....\.......\shell.c
.......\....\.......\shell.h
.......\....\.......\telnetd.c
.......\....\.......\telnetd.h
.......\....\webclient
.......\....\.........\Makefile.webclient
.......\....\.........\makestrings
.......\....\.........\webclient-strings
.......\....\.........\webclient-strings.c
.......\....\.........\webclient-strings.h
.......\....\.........\webclient.c
.......\....\.........\webclient.h
.......\....\webserver
.......\....\.........\http-strings
.......\....\.........\http-strings.c
.......\....\.........\http-strings.h
.......\....\.........\httpd-cgi.c
.......\....\.........\httpd-cgi.h
.......\....\.........\httpd-fs
.......\....\.........\........\404.html
.......\....\.........\........\fade.png
.......\....\.........\........\files.shtml
.......\....\.........\........\footer.html
.......\....\.........\........\header.html
.......\....\.........\........\index.html
.......\....\.........\........\processes.shtml
.......\....\.........\........\stats.shtml
.......\....\.........\........\style.css
.......\....\.........\........\tcp.shtml
.......\....\.........\httpd-fs.c
.......\....\.........\httpd-fs.h
.......\....\.........\httpd-fsdata.c
.......\....\.........\httpd-fsdata.h
.......\....\.........\httpd.c
.......\....\.........\httpd.h
.......\....\.........\Makefile.webserver
.......\....\.........\makefsdata
.......\....\.........\makestrings
.......\....\.........\webserver.h
.......\Include
.......\.......\Config.h
.......\.......\Type.h
.......\lib
.......\...\memb.c
.......\...\memb.h
.......\main.c
.......\Makefile
.......\obj
.......\...\apps
.......\...\....\hello-world
.......\...\....\...........\hello-world.lst
.......\...\....\...........\hello-world.o
.......\...\....\telnetd
.......\...\....\.......\shell.lst
.......\...\....\.......\shell.o
.......\...\....\.......\telnetd.lst
.......\...\....\.......\telnetd.o
.......\...\lib
.......\...\...\memb.lst
.......\...\...\memb.o
.......\...\main.lst
.......\...\main.o
.......\...\rs232
.......\...\.....\rs232.lst
.......\...\.....\rs232.o
.......\...\uip
.......\...\...\psock.lst
.......\...\...\psock.o
.......\...\...\timer.lst
.......\...\...\timer.o
.......\...\...\uip.lst
.......\...\...\uip.o
.......\...\...\uip_arp.lst
.......\...\...\uip_arp.o
.......\...\unix