|
-
April 22nd, 1999, 12:37 AM
#1
How to set the UART's Divisor Register in NT using API
I have a question about how to change the Divisor Latch in the serial port. In win98, _inp() and _outp() can work, but in NT it don't work. The source is as following:
unsigned char result;
unsigned short ppport = 0x2EB;
result = _inp( ppport );
_outp( ppport, (result | 0x80));
_outp( 0x2E8, 21 );
_outp( 0x2E9, 0x00 );
_outp( 0x2EB, (result & 0x7F));
Roy Wang
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|