www.pudn.com > ASYNC13.rar > SETMCR.C


/* A module of ASYNCx.LIB version 1.02 */ 
 
#include  
#include "asyncdef.h" 
 
/************************************************************** 
 Set the value of the Modem Control Register. If the UART's 
 interrupt is enabled, do not let the programmer disable it. 
 **************************************************************/ 
 
void a_setmcr(ASYNC *p,int newval) 
{newval|=inportb(p->base+MCR) & 8; 
 if (p) 
   outportb(p->base+MCR,newval); 
} /* a_setmcr(p,newval) */