Mail Archives: djgpp/2001/05/02/04:15:39
| From: | "Jean-Pierre GHYS" <ghys AT terre DOT inrets DOT fr>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | _bios serialcom ?????
|
| Date: | Wed, 2 May 2001 08:26:13 +0200
|
| Organization: | I.N.R.E.T.S.
|
| Lines: | 33
|
| Message-ID: | <9co92b$fs7$1@orion.inrets.fr>
|
| NNTP-Posting-Host: | pc-ghys.inrets.fr
|
| X-Priority: | 3
|
| X-MSMail-Priority: | Normal
|
| X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
help anyone i try this code but without succes on my serial com2 where is
the bugg !!!! thanks for all
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <bios.h>
#include <pc.h>
#include "allegro.h"
int main ()
{
int i,v;
unsigned char buff[1,'1','1','z','z','z','z','z'];
clrscr();
allegro_init();
// 9600 baud, no parity, one stop, 8 bits sur COM2 */
v = _bios_serialcom(_COM_INIT,1,
_COM_9600|_COM_NOPARITY|_COM_STOP1|_COM_CHR8);
printf("test init %X\n",v);
for(i= 0; buff[i]; i++)
{
v = _bios_serialcom(_COM_SEND,1,buff[i]);
printf("testTX %X\n",v);
}
return(0);
- Raw text -