⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portingcomments.txt

📁 基于uIP框架的8051tcpip源码
💻 TXT
字号:
Comments about uIP porting to 8051 by Fajun Chen 8051WEB is the porting of uIP to 8051 by Fajun Chen. It was tested with Windows2000 Professional.1. Instruction for setting up Windows2000 Dial-up Network:   Please refer to http://www.iosoft.co.uk/docs/win2k.doc. Notice that 9600 bps is   used for 8051WEB and default IP forwarding should be disabled.    2. Dunfield's Micro-C Compiler   Please purchase full version from http://www.dunfield.com. Demo version is not   enough for the code size.      Function thermoread() need to be added into I2C.ASM and compact.lib in Micro-C    LIB51 directory for reading temperature from DS1629. The function is as follows:   *   * Read temperature from DS1629: thermoread();   *   thermoread	MOV	R6,#0		Zero retry count   ?9		MOV	A,#%10011110	Control byte for WRITE   		LCALL	?ICstrt		Start transfer   		JNC	?A		Its OK   		DJNZ	R6,?7		Do full retry   		SJMP	?4		Report error   ?A		MOV	A,#%10101010	Read temperature protocol   		LCALL	?ICsend		Write   		JC	?4		Report error   		MOV	A,#%10011111    Control byte for READ   		LCALL	?ICstrt		ReStart transfer   		JC	?4		Report error   		LCALL	?ICread		Get data byte   		MOV	B,#0		Zero high		SJMP	?ICstop		Stop transfer		3. Build Instruction in DOS:   Please use GNU make,    >make uweb.hex4. Code Porting Summary1) Replaced typedef with #define since typedef is not supported by Micro-C2) Increased UIP_BUFSIZE 3) debug buffer is defined for debugging which replaces printf()4) Lots of struct type related changes (Struct support in Micro-C is   quite limited, it's implemented similar to char array).  5) Fix the bug with handling the URL with index.html6) fsData initialization is moved to fsdata_init() function. Perl script makefsdata   should be updated for code autogeneration.   ...5. This porting comments will be updated with more details soon.   Please contact fajunchen@yahoo.com for any questions or comments.      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -