Rsdemo.c
上传用户:keruier
上传日期:2013-02-04
资源大小:57k
文件大小:6k
- /* RSDEMO.C */
- #include "rs232.h"
- #include <string.h>
- #include <conio.h>
- #include <stdio.h>
- #include <dos.h>
- #define ESC 27
- /* prototypes */
- void interroge(void);
- void main(void);
- void terminal(void);
- void testorphy(void);
- int cherche_orphy(void);
- char typo[10];
- int valcom;
- void main(void)
- {
- char rep[100];
- int n, type_orphy,reponse;
- long debit;
- clrscr(); /* efface l'俢ran */
- if ((type_orphy=cherche_orphy())==0) /* ORPHY sur COM1 ou COM2*/
- {
- reponse=init_rs(0,9600,'n',8,1);
- ecris_rs_rc("XSTOPS 0");
- debit=9600L;
- do
- { clrscr();
- gotoxy(60,2);
- textcolor(LIGHTRED);
- cprintf("vitesse: ");
- gotoxy(60,3);
- cprintf("%6ld Bauds",debit);
- textcolor(WHITE);
- gotoxy(1,1);
- printf("n communication avec ORPHY %s sur COM%d nn",typo,valcom);
- printf("n C. RELLIER pour EVARISTE nn");
- printf(" 赏屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯籠n");
- printf("