- 1
- 0
- 约1.34万字
- 约 10页
- 2016-11-06 发布于广东
- 举报
Dos环境下串编程
#includestdio.h /*导入stdio.h头文件*/#includedos.h /*导入dos.h头文件夹*/#includeconio.h /*导入conio.h头文件*/#define SIZE 1024*16?? /*定义接收缓冲区大小*/#define PTL 0x01 /*波特率是115200*/unsigned char state;void init_com_interrupt();?? /*初始化COM2端口,用于中断*/void init_com_chanxun();?? /*初始化COM2端口,用于查询方式*/void send_wait();/*发送等待*/void receive_wait();??? /*接收等待*/long file_size(FILE *fp);/*计算文件大小*/void send_ch();/*发送字符,字符串*/void send_file();/*发送文件*/void receive_ch();/*接收字符,字符串*/void receive_file();/*接收文件*/void close_intr();/*关闭中断服务*/void interrupt (*old_int)(void);void interrupt far receive_intr();/*中断服务程序,用于中断
原创力文档

文档评论(0)